summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-07 13:16:24 +0200
committerNoel Grandin <noel@peralex.com>2015-04-09 10:13:18 +0200
commit35163715ead39eece619a5790903c88fa4216ec6 (patch)
tree68f657e8f4137d234d1b6b32835e3ff540b4b01a /compilerplugins
parente68c699b7e7efdf3678b450124b9e08ee227ddb9 (diff)
loplugin:staticmethods
Change-Id: Ie348778ea666c24e95e048386547f301083a0017
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/staticmethods.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/compilerplugins/clang/staticmethods.cxx b/compilerplugins/clang/staticmethods.cxx
index eb5c06bed5fc..243666d6937b 100644
--- a/compilerplugins/clang/staticmethods.cxx
+++ b/compilerplugins/clang/staticmethods.cxx
@@ -133,6 +133,11 @@ bool StaticMethods::TraverseCXXMethodDecl(const CXXMethodDecl * pCXXMethodDecl)
if (startsWith(getFilename(pCXXMethodDecl->getCanonicalDecl()->getLocStart()), SRCDIR "/include/svl")) {
return true;
}
+ // another one of those classes that has static data and some kind of weird reference-counting trick in it's constructor
+ if (aParentName == "LinguOptions") {
+ return true;
+ }
+
bVisitedThis = false;
TraverseStmt(pCXXMethodDecl->getBody());