================ @@ -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( ---------------- zwuis wrote:
Use `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
