loplugin:unusedfields

Change-Id: Icac4ac1a2614e72bc9ff070819533e09eeb1a864
This commit is contained in:
Noel Grandin
2015-11-26 16:01:56 +02:00
parent d2df035740
commit ec3f724158
86 changed files with 38 additions and 272 deletions

View File

@@ -180,7 +180,7 @@ bool UnusedFields::VisitFieldDecl( const FieldDecl* fieldDecl )
// unwrap array types
while (type->isArrayType())
type = type->getAsArrayTypeUnsafe()->getElementType();
/*
if( CXXRecordDecl* recordDecl = type->getAsCXXRecordDecl() )
{
bool warn_unused = recordDecl->hasAttr<WarnUnusedAttr>();
@@ -196,7 +196,7 @@ bool UnusedFields::VisitFieldDecl( const FieldDecl* fieldDecl )
if (!warn_unused)
return true;
}
*/
definitionSet.insert(niceName(canonicalDecl));
return true;
}