summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-04 10:29:18 +0200
committerNoel Grandin <noel@peralex.com>2015-05-05 09:30:41 +0200
commit259820af718fe15ea5080711f77918dad8f14fbb (patch)
treea80039fad41dfbfaeaa8fe0b7403c29336f37861 /compilerplugins
parent03e6cc9130864adcea5a1ae5440f24a9c128e8d6 (diff)
loplugin:staticmethods
Change-Id: I90dd921077bbfc57200e398e7959306f26c65cfe
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/staticmethods.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/compilerplugins/clang/staticmethods.cxx b/compilerplugins/clang/staticmethods.cxx
index 4c5ecaf0d307..562694bbf720 100644
--- a/compilerplugins/clang/staticmethods.cxx
+++ b/compilerplugins/clang/staticmethods.cxx
@@ -169,13 +169,21 @@ bool StaticMethods::TraverseCXXMethodDecl(const CXXMethodDecl * pCXXMethodDecl)
return true;
}
// used in a function-pointer-table
- if (startsWith(fqn, "SbiRuntime::Step")) {
+ if (startsWith(fqn, "SbiRuntime::Step") || startsWith(fqn, "oox::xls::OoxFormulaParserImpl::")
+ || startsWith(fqn, "SwTableFormula::")
+ || startsWith(fqn, "oox::xls::BiffFormulaParserImpl::")
+ || fqn == "SwWW8ImplReader::Read_F_Shape"
+ || fqn == "SwWW8ImplReader::Read_Majority") {
return true;
}
// have no idea why this can't be static, but 'make check' fails with it so...
if (fqn == "oox::drawingml::Shape::resolveRelationshipsOfTypeFromOfficeDoc") {
return true;
}
+ // template magic
+ if (fqn == "ColumnBatch::getValue") {
+ return true;
+ }
bVisitedThis = false;
TraverseStmt(pCXXMethodDecl->getBody());