Repository navigation
Commit a65a52c
committed
prepare.cppm: un-anonymize the preamble helpers ahead of the file split
The preamble's internal helpers (warn_unknown_xpkg_keys through
with_index_cause, and the ToolPurpose enum among them) sat in an
anonymous namespace, giving them TU-local (internal) linkage. That was
fine while every phase using them lived in the same file; once the
phases move to their own implementation units, an internal-linkage
name is invisible outside the file that declares it (anonymous-
namespace scoping is per translation unit, modules or not). Dropped
the wrapper: these are now plain module-linkage declarations in
prepare.cppm, which -- like pending_flag_words_notes(), already
declared that way -- every implementation unit of the module can see
without needing to be exported. No behaviour change: nothing outside
the module could name these either way.
Golden fixture diff against the baseline is empty; mcpp test: 129/129.1 parent 827ddf9 commit a65a52c
1 file changed
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1526 | 1526 | | |
1527 | 1527 | | |
1528 | 1528 | | |
1529 | | - | |
1530 | 1529 | | |
1531 | 1530 | | |
1532 | 1531 | | |
| |||
2334 | 2333 | | |
2335 | 2334 | | |
2336 | 2335 | | |
2337 | | - | |
2338 | 2336 | | |
2339 | 2337 | | |
2340 | 2338 | | |
| |||
0 commit comments