================
@@ -803,17 +803,26 @@ void 
StoreDiags::HandleDiagnostic(DiagnosticsEngine::Level DiagLevel,
       }
       // Otherwise, follow clang's behavior: no fixits in macros.
       if (FixIt.RemoveRange.getBegin().isMacroID() ||
-          FixIt.RemoveRange.getEnd().isMacroID())
+          FixIt.RemoveRange.getEnd().isMacroID() ||
+          !isInsideMainFile(FixIt.RemoveRange.getBegin(), SM))
----------------
zeyi2 wrote:

Nit: Could we keep the main-file check separate from the macro guard? It is 
unrelated to the preceding comment.

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

Reply via email to