loplugin:staticmethods

Change-Id: I4d19f868a618cb135aa7a949222972dc35b47d2a
This commit is contained in:
Noel Grandin
2015-05-05 13:11:02 +02:00
parent 7d426e6fd6
commit 0a442d3815
40 changed files with 88 additions and 110 deletions

View File

@@ -181,11 +181,14 @@ bool StaticMethods::TraverseCXXMethodDecl(const CXXMethodDecl * pCXXMethodDecl)
return true;
}
// template magic
if (fqn == "ColumnBatch::getValue") {
if (fqn == "ColumnBatch::getValue" || startsWith(fqn, "TitleImpl::")
|| fqn == "ooo::vba::DefaultReturnHelper::getDefaultPropertyName") {
return true;
}
// depends on config options
if (fqn == "psp::PrintFontManager::autoInstallFontLangSupport") {
if (fqn == "psp::PrintFontManager::autoInstallFontLangSupport"
|| fqn == "GtkSalFrame::AllocateFrame"
|| fqn == "GtkSalFrame::TriggerPaintEvent") {
return true;
}
@@ -203,7 +206,7 @@ bool StaticMethods::TraverseCXXMethodDecl(const CXXMethodDecl * pCXXMethodDecl)
return true;
}
loplugin::Plugin::Registration<StaticMethods> X("staticmethods", true);
loplugin::Plugin::Registration<StaticMethods> X("staticmethods", false);
}