diff options
author | Naveen Seth Hanig <naveen.hanig@outlook.com> | 2025-07-19 09:47:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-19 09:47:37 +0200 |
commit | 6855b9c598b3258e8c0e3edffe5458630a0b0105 (patch) | |
tree | 1ecd4848486f9c11b7151acaa2835cfead4272b3 /llvm/lib/CodeGen/MachineModuleSlotTracker.cpp | |
parent | 6b371cab949e3ff9e903d6c3118f4b2be2bf3cc5 (diff) | |
download | llvm-6855b9c598b3258e8c0e3edffe5458630a0b0105.zip llvm-6855b9c598b3258e8c0e3edffe5458630a0b0105.tar.gz llvm-6855b9c598b3258e8c0e3edffe5458630a0b0105.tar.bz2 |
[clang][deps] Properly capture the global module and '\n' for all module directives (#148685)
Previously, the newline after a module directive was not properly
captured and printed by `clang::printDependencyDirectivesAsSource`.
According to P1857R3, each directive must, after skipping horizontal
whitespace, appear at the start of a logical line. Because the newline
after module directives was missing, this invalidated the following
line.
This fixes tests that were previously in violation of P1857R3,
including for Objective-C directives, which should also comply with
P1857R3.
This also ensures that the global module fragment `module;` is captured
by the dependency directives scanner.
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleSlotTracker.cpp')
0 files changed, 0 insertions, 0 deletions