loplugin:unusedfields in tools/

Change-Id: Ic460bf42cbcf356cdcebbd5060a0dad3d3caa4ef
This commit is contained in:
Noel Grandin
2015-11-24 08:09:24 +02:00
parent 872d209bc6
commit acc4acb9ca
2 changed files with 31 additions and 31 deletions

View File

@@ -169,6 +169,7 @@ gotfunc:
bool UnusedFields::VisitFieldDecl( const FieldDecl* fieldDecl )
{
fieldDecl = fieldDecl->getCanonicalDecl();
const FieldDecl* canonicalDecl = fieldDecl;
if( ignoreLocation( fieldDecl ))
return true;
@@ -212,7 +213,7 @@ bool UnusedFields::VisitFieldDecl( const FieldDecl* fieldDecl )
return true;
}
definitionSet.insert(niceName(fieldDecl));
definitionSet.insert(niceName(canonicalDecl));
return true;
}