================ @@ -898,7 +899,8 @@ Preprocessor::EvaluateDirectiveExpression(IdentifierInfo *&IfNDefMacro, // to recursively expand in order to get more gcc-list behavior, so we force // DisableMacroExpansion to false and restore it when we're done parsing the // expression. - bool DisableMacroExpansionAtStartOfDirective = DisableMacroExpansion; + llvm::scope_exit RestoreMacroExpansion( ---------------- ChenMiaoi wrote:
`DisableMacroExpansion` is a bit-field and cannot be bound to a T& (`llvm::SaveAndRestore`)? https://github.com/llvm/llvm-project/pull/239918 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
