loplugin:unusedmethods
Change-Id: Ifafdaf6da0225f244853a0042a6458643b570623
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user