================
@@ -877,13 +886,14 @@ bool Preprocessor::HandleIdentifier(Token &Identifier) {
   // Likewise if this is the standard C++ import keyword.
   if (((LastTokenWasAt && II.isModulesImport()) ||
        Identifier.is(tok::kw_import)) &&
-      !InMacroArgs && !DisableMacroExpansion &&
-      (getLangOpts().Modules || getLangOpts().DebuggerSupport) &&
+      // FIXME: Can we just ignore DisableMacroExpansion here?
+      // https://github.com/llvm/llvm-project/pull/137665 disable
+      // macro expansion when current input file is preprocessed.
+      !InMacroArgs &&
+      (!DisableMacroExpansion || MacroExpansionInDirectivesOverride) &&
----------------
yronglin wrote:

We can just ignore this, the comments out-of-date. I have removed it.

https://github.com/llvm/llvm-project/pull/107168
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to