diff options
-rw-r--r-- | compilerplugins/clang/plugin.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compilerplugins/clang/plugin.cxx b/compilerplugins/clang/plugin.cxx index 38308128d6aa..4a936e4d4166 100644 --- a/compilerplugins/clang/plugin.cxx +++ b/compilerplugins/clang/plugin.cxx @@ -54,10 +54,10 @@ bool Plugin::ignoreLocation( SourceLocation loc ) if( compiler.getSourceManager().isInSystemHeader( expansionLoc )) return true; const char* bufferName = compiler.getSourceManager().getPresumedLoc( expansionLoc ).getFilename(); - if( bufferName == NULL ) + if( bufferName == NULL + || strncmp( bufferName, WORKDIR, strlen( WORKDIR )) == 0 ) return true; - if( strncmp( bufferName, WORKDIR, strlen( WORKDIR )) == 0 - || strncmp( bufferName, BUILDDIR, strlen( BUILDDIR )) == 0 + if( strncmp( bufferName, BUILDDIR, strlen( BUILDDIR )) == 0 || strncmp( bufferName, SRCDIR, strlen( SRCDIR )) == 0 ) return false; // ok return true; |