summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-07 16:18:28 +0200
committerNoel Grandin <noel@peralex.com>2015-04-09 11:01:06 +0200
commit14505bb67eb671ebcb91c81cbefbbc1aab930b44 (patch)
tree0ad2166f5c6c95d01f2f7204b13aaa0ca8119acc /compilerplugins
parent6ea42ddf8f06b7551e80a906908dbad0766a68c6 (diff)
loplugin:staticmethods
Change-Id: I715374b531da2850434b2436633b6042ecb9ebe0
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/staticmethods.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/compilerplugins/clang/staticmethods.cxx b/compilerplugins/clang/staticmethods.cxx
index 243666d6937b..5ac9da42f9aa 100644
--- a/compilerplugins/clang/staticmethods.cxx
+++ b/compilerplugins/clang/staticmethods.cxx
@@ -133,8 +133,13 @@ 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") {
+ // classes that have static data and some kind of weird reference-counting trick in it's constructor
+ if (aParentName == "LinguOptions" || aParentName == "svtools::EditableExtendedColorConfig"
+ || aParentName == "svtools::ExtendedColorConfig" || aParentName == "SvtMiscOptions"
+ || aParentName == "SvtAccessibilityOptions" || aParentName == "svtools::ColorConfig"
+ || aParentName == "SvtOptionsDrawinglayer" || aParentName == "SvtMenuOptions"
+ || aParentName == "SvtToolPanelOptions" || aParentName == "SvtSlideSorterBarOptions")
+ {
return true;
}