diff options
Diffstat (limited to 'compilerplugins/clang/postfixincrementfix.cxx')
-rw-r--r-- | compilerplugins/clang/postfixincrementfix.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compilerplugins/clang/postfixincrementfix.cxx b/compilerplugins/clang/postfixincrementfix.cxx index c5c17fb14b5d..bfaf77cefa6c 100644 --- a/compilerplugins/clang/postfixincrementfix.cxx +++ b/compilerplugins/clang/postfixincrementfix.cxx @@ -28,8 +28,7 @@ void PostfixIncrementFix::run() bool PostfixIncrementFix::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; |