diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-26 16:01:56 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-30 10:34:38 +0200 |
commit | ec3f72415850bd865eb030cf2b7edb55b99d4756 (patch) | |
tree | e63a41091957725506cbb107a272a9872081e3e5 /compilerplugins | |
parent | d2df03574023b379ac09b1f71cae9e3ba3ac53e2 (diff) |
loplugin:unusedfields
Change-Id: Icac4ac1a2614e72bc9ff070819533e09eeb1a864
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/unusedfields.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/unusedfields.cxx b/compilerplugins/clang/unusedfields.cxx index d87c40e92a17..f7d76103e4e8 100644 --- a/compilerplugins/clang/unusedfields.cxx +++ b/compilerplugins/clang/unusedfields.cxx @@ -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; } |