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

put audit --fix includes in the fragment, not the purview

The inserter aimed at the spot before the first import, which in a module
unit is past the module declaration - so the includes landed in the
purview, attaching those declarations to the module, and re-running piled
up duplicates. It now targets the global module fragment for module units
and keeps the before-first-import rule only for ordinary units.
This commit is contained in:
maj00r
2026-09-10 14:37:03 +02:00
parent 9ea57e0525
commit 3daf984a64
5 changed files with 76 additions and 6 deletions

View File

@@ -1,4 +1,16 @@
module;
#include <array>
#include <chrono>
#include <cstddef>
#include <deque>
#include <limits>
#include <mutex>
#include <ostream>
#include <sstream>
#include <type_traits>
#include <unordered_map>
#include <utility>
#include <vector>
#include "winheaders.h" // HINSTANCE
#include <string>