================
@@ -589,6 +589,12 @@ class DiagnosticsEngine : public
RefCountedBase<DiagnosticsEngine> {
return GetDiagStateForLoc(Loc);
}
+ /// Returns whether \p Loc is in a system header and/or a system macro, as a
+ /// value in [0, 4). Severity depends on this through
+ /// DiagnosticIDs::shouldSuppressAsSystemWarning(), so a cache keyed on
+ /// getDiagStateKeyForLoc() must take it into account as well.
+ unsigned getDiagStateSystemClassForLoc(SourceLocation Loc) const;
----------------
AnonMiraj wrote:
Didn't think of it
https://github.com/llvm/llvm-project/pull/221605
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits