From 0a442d38157190c77eb04d53a90520913b93226c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 5 May 2015 13:11:02 +0200 Subject: loplugin:staticmethods Change-Id: I4d19f868a618cb135aa7a949222972dc35b47d2a --- compilerplugins/clang/staticmethods.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'compilerplugins') diff --git a/compilerplugins/clang/staticmethods.cxx b/compilerplugins/clang/staticmethods.cxx index 528dc0f003f1..a0d60997a274 100644 --- a/compilerplugins/clang/staticmethods.cxx +++ b/compilerplugins/clang/staticmethods.cxx @@ -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 X("staticmethods", true); +loplugin::Plugin::Registration X("staticmethods", false); } -- cgit