diff options
Diffstat (limited to 'compilerplugins/clang/compileplugin.cxx')
-rw-r--r-- | compilerplugins/clang/compileplugin.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compilerplugins/clang/compileplugin.cxx b/compilerplugins/clang/compileplugin.cxx index e5d34a32ccd5..a61a3bab66a4 100644 --- a/compilerplugins/clang/compileplugin.cxx +++ b/compilerplugins/clang/compileplugin.cxx @@ -43,6 +43,11 @@ DiagnosticBuilder Plugin::report( DiagnosticsEngine::Level level, StringRef mess return diag.Report( loc, diag.getCustomDiagID( level, message )); } +bool Plugin::ignoreLocation( SourceLocation loc ) + { + return context.getSourceManager().isInSystemHeader( context.getSourceManager().getExpansionLoc( loc )); + } + /** Class that manages all LO modules. */ |