loplugin:singlevalfields in l10ntools..sax

and ignore URE headers in the plugin

Change-Id: I939df744c1173cf0f67d515f6c3fb4ac4cb25588
This commit is contained in:
Noel Grandin
2016-09-15 12:43:01 +02:00
parent f7ae11ce60
commit 27be818190
50 changed files with 53 additions and 239 deletions

View File

@@ -123,7 +123,9 @@ bool SingleValFields::VisitFieldDecl( const FieldDecl* fieldDecl )
fieldDecl = fieldDecl->getCanonicalDecl();
const FieldDecl* canonicalDecl = fieldDecl;
if( ignoreLocation( fieldDecl ) || !isInterestingType(fieldDecl->getType()) )
if( ignoreLocation( fieldDecl )
|| isInUnoIncludeFile( compiler.getSourceManager().getSpellingLoc(fieldDecl->getLocation()))
|| !isInterestingType(fieldDecl->getType()) )
return true;
MyFieldInfo aInfo;