loplugin:staticmethods

Change-Id: I97160fc51dc16ff92b06d44570298eeec637e132
This commit is contained in:
Noel Grandin
2015-05-05 10:33:52 +02:00
parent aa06ce15fd
commit 7d426e6fd6
4 changed files with 9 additions and 5 deletions

View File

@@ -184,6 +184,10 @@ bool StaticMethods::TraverseCXXMethodDecl(const CXXMethodDecl * pCXXMethodDecl)
if (fqn == "ColumnBatch::getValue") {
return true;
}
// depends on config options
if (fqn == "psp::PrintFontManager::autoInstallFontLangSupport") {
return true;
}
bVisitedThis = false;
TraverseStmt(pCXXMethodDecl->getBody());
@@ -199,7 +203,7 @@ bool StaticMethods::TraverseCXXMethodDecl(const CXXMethodDecl * pCXXMethodDecl)
return true;
}
loplugin::Plugin::Registration<StaticMethods> X("staticmethods", false);
loplugin::Plugin::Registration<StaticMethods> X("staticmethods", true);
}