summaryrefslogtreecommitdiffstats
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-13 23:14:26 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-18 15:30:06 +0200
commitd9adda92cc6328cd44bf09753caefe23b028a81b (patch)
treea93e7de1dc32528e02d4c5b5ffe0b6ba1d851e9b /compilerplugins
parentAvoid reserved identifier (diff)
downloadcore-d9adda92cc6328cd44bf09753caefe23b028a81b.tar.gz
core-d9adda92cc6328cd44bf09753caefe23b028a81b.zip
Ignore external code
Change-Id: Ie527703e9687a42bfc39439952b9d1a83d7cad24
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/plugin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/compilerplugins/clang/plugin.cxx b/compilerplugins/clang/plugin.cxx
index c11c6eccee2d..04dcceb07e68 100644
--- a/compilerplugins/clang/plugin.cxx
+++ b/compilerplugins/clang/plugin.cxx
@@ -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 )