diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-15 12:23:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-16 07:26:27 +0100 |
commit | a2751c0795cdac9d78f8919aab319a418b6e0bbc (patch) | |
tree | 1396e27bd0e86536b9a29f08192f3d7eaeff2c8a /compilerplugins | |
parent | a04340a08c9f2a0e7208f3109fbcc97ab19fccb3 (diff) |
loplugin:staticmethods improvement
Change-Id: I8889ce8a7d2309b54454cfe4c6421282e1c6e755
Reviewed-on: https://gerrit.libreoffice.org/63434
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/staticmethods.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compilerplugins/clang/staticmethods.cxx b/compilerplugins/clang/staticmethods.cxx index 7d9b28d956da..157c2190a3ec 100644 --- a/compilerplugins/clang/staticmethods.cxx +++ b/compilerplugins/clang/staticmethods.cxx @@ -83,9 +83,8 @@ bool StaticMethods::TraverseCXXMethodDecl(const CXXMethodDecl * pCXXMethodDecl) if (isInUnoIncludeFile(pCXXMethodDecl)) { return true; } - if ( pCXXMethodDecl != pCXXMethodDecl->getCanonicalDecl() ) { + if (pCXXMethodDecl->getTemplateSpecializationKind() == TSK_ExplicitSpecialization) return true; - } // the CppUnit stuff uses macros and methods that can't be changed if (isDerivedFromTestFixture(pCXXMethodDecl->getParent())) { |