summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-05 10:33:52 +0200
committerNoel Grandin <noel@peralex.com>2015-05-05 14:05:20 +0200
commit7d426e6fd681c6f0fb45a69f3ac7076817495135 (patch)
tree6af4c99b75b145f990e1dda4e4c3503ccfce80c6 /compilerplugins
parentaa06ce15fdd68983001ef33d1931fbaf6b515282 (diff)
loplugin:staticmethods
Change-Id: I97160fc51dc16ff92b06d44570298eeec637e132
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/staticmethods.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/compilerplugins/clang/staticmethods.cxx b/compilerplugins/clang/staticmethods.cxx
index 562694bbf720..528dc0f003f1 100644
--- a/compilerplugins/clang/staticmethods.cxx
+++ b/compilerplugins/clang/staticmethods.cxx
@@ -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);
}