diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-13 23:14:26 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-18 15:30:06 +0200 |
commit | d9adda92cc6328cd44bf09753caefe23b028a81b (patch) | |
tree | a93e7de1dc32528e02d4c5b5ffe0b6ba1d851e9b /compilerplugins | |
parent | e88136701a7f6e573b8c05ee209e8142f2e20ad6 (diff) |
Ignore external code
Change-Id: Ie527703e9687a42bfc39439952b9d1a83d7cad24
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/plugin.cxx | 3 |
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 ) |