Ignore external code

Change-Id: Ie527703e9687a42bfc39439952b9d1a83d7cad24
This commit is contained in:
Stephan Bergmann
2016-04-13 23:14:26 +02:00
parent e88136701a
commit d9adda92cc

View File

@@ -42,7 +42,8 @@ bool Plugin::ignoreLocation( SourceLocation loc )
return true;
const char* bufferName = compiler.getSourceManager().getPresumedLoc( expansionLoc ).getFilename();
if( bufferName == NULL
|| strncmp( bufferName, WORKDIR, strlen( WORKDIR )) == 0 )
|| strncmp( bufferName, WORKDIR, strlen( WORKDIR )) == 0
|| strncmp( bufferName, SRCDIR "/external/", strlen( SRCDIR "/external/" )) == 0 )
return true;
if( strncmp( bufferName, BUILDDIR, strlen( BUILDDIR )) == 0
|| strncmp( bufferName, SRCDIR, strlen( SRCDIR )) == 0 )