loplugin:unusedmethods

Change-Id: Ifafdaf6da0225f244853a0042a6458643b570623
This commit is contained in:
Noel Grandin
2015-12-18 09:37:44 +02:00
parent 20ff8cc5c3
commit e18b08363a
57 changed files with 7 additions and 717 deletions

View File

@@ -255,7 +255,7 @@ bool UnusedMethods::VisitFunctionDecl( const FunctionDecl* functionDecl )
return true;
}
if( !ignoreLocation( functionDecl ))
if( functionDecl->getLocation().isValid() && !ignoreLocation( functionDecl ))
definitionSet.insert(niceName(functionDecl));
return true;
}