[clang] [Clang] Support libstdc++ workarounds when using `-E` (PR #210802)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 24 08:16:37 PDT 2026
================
@@ -2978,6 +2979,10 @@ class Preprocessor {
// Pragmas.
void HandlePragmaDirective(PragmaIntroducer Introducer);
+ // Cached identifiers used to implement __set_pp_state.
+ IdentifierInfo *Ident__set_pp_state;
+ IdentifierInfo *Ident__GLIBCXX__;
----------------
AaronBallman wrote:
I see it being used; we need an `IdentifierInfo *` for the macro names we care about and we don't want to re-create the `IdentifierInfo *` each time so we cache it.
I'd rather these were grouped with the rest of them towards the top of the class though.
https://github.com/llvm/llvm-project/pull/210802
More information about the cfe-commits
mailing list