[clang] Make -frewrite-includes put an endif at the end of the included text (PR #67613)
Paul T Robinson via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 29 09:55:08 PDT 2023
================
@@ -332,12 +346,14 @@ void InclusionRewriter::CommentOutDirective(Lexer &DirectiveLex,
// OutputContentUpTo() would not output anything anyway.
return;
}
- OS << "#if 0 /* expanded by -frewrite-includes */" << MainEOL;
+ OS << "#if 0 /* " << getIncludedFileName(Inc)
----------------
pogo59 wrote:
Aha, `-MM` has the same problem, so I'm less concerned about that now. I'll add the toggle for "system" headers later today.
https://github.com/llvm/llvm-project/pull/67613
More information about the cfe-commits
mailing list