17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-18 04:29:18 +02:00

hoist standard includes above everything else

Ordering them before the imports in the same file was not enough: a
project header on line 1 can import a module several levels down whose
global module fragment already pulled in the same standard header, and
that include guard does not cross the module boundary. Putting them
first means the guard is set before anything can import.

Skips vendored single-header libraries and anything inside an #if.
This commit is contained in:
maj00r
2026-09-10 01:02:17 +02:00
parent cfd1c1f318
commit 26501b0fd7
52 changed files with 154 additions and 155 deletions

View File

@@ -1,17 +1,17 @@
#include <filesystem>
#include <memory>
#include <optional>
#include <sstream>
#include <string>
#include <utility>
#include "materialparser.h"
#include "nvrenderer/nvrenderer.h"
#include "utilities/Globals_macros.h"
#include <memory>
#include <optional>
#include <sstream>
#include <utility>
#include <fmt/format.h>
#include "utilities/utilities_macros.h"
#include <yaml-cpp/yaml.h>
#include <string>
#include <filesystem>
import eu07.utilities.globals;
import eu07.utilities.logs;