summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/bodynotinblock.cxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-10-09 16:39:49 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-10-09 17:25:28 +0200
commit7cd19a8f10881028bfaf4217e586955f1d435c31 (patch)
tree676f9a1592d2702465140b9eddaa1096cdefd31a /compilerplugins/clang/bodynotinblock.cxx
parent4d05099806fc6116fbd7abe992d7f2f31210dd4c (diff)
do not analyse system headers in the compiler plugin
Change-Id: Ica1e233b45cc778bfdc86cfd608ada7fc261c6c2
Diffstat (limited to 'compilerplugins/clang/bodynotinblock.cxx')
-rw-r--r--compilerplugins/clang/bodynotinblock.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/compilerplugins/clang/bodynotinblock.cxx b/compilerplugins/clang/bodynotinblock.cxx
index ce19a5f6477a..9e59896f892f 100644
--- a/compilerplugins/clang/bodynotinblock.cxx
+++ b/compilerplugins/clang/bodynotinblock.cxx
@@ -32,8 +32,7 @@ void BodyNotInBlock::run()
bool BodyNotInBlock::VisitFunctionDecl( FunctionDecl* declaration )
{
- // TODO also LO header files? or a subdir?
- if( !context.getSourceManager().isFromMainFile( declaration->getLocStart()))
+ if( ignoreLocation( declaration ))
return true;
if( !declaration->doesThisDeclarationHaveABody())
return true;