summaryrefslogtreecommitdiffstats
path: root/compilerplugins/clang/staticmethods.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-08-04 09:36:32 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-08-04 09:36:32 +0200
commitc15b4cf39a74176cee64795129d76f411d2c0a69 (patch)
treecf03416c9dd4762553e1dc66fdec5ded319c7353 /compilerplugins/clang/staticmethods.cxx
parentinclude: inline some use-once typedefs (diff)
downloadcore-c15b4cf39a74176cee64795129d76f411d2c0a69.tar.gz
core-c15b4cf39a74176cee64795129d76f411d2c0a69.zip
Adapt to current Clang trunk towards 3.7
Change-Id: Ibb2c641d49a1773be789c9259f53a040db6f605f
Diffstat (limited to 'compilerplugins/clang/staticmethods.cxx')
-rw-r--r--compilerplugins/clang/staticmethods.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/compilerplugins/clang/staticmethods.cxx b/compilerplugins/clang/staticmethods.cxx
index 036662c3ea16..4fbddeb0d262 100644
--- a/compilerplugins/clang/staticmethods.cxx
+++ b/compilerplugins/clang/staticmethods.cxx
@@ -36,7 +36,13 @@ private:
std::string getFilename(SourceLocation loc);
};
-bool BaseCheckNotTestFixtureSubclass(const CXXRecordDecl *BaseDefinition, void *) {
+bool BaseCheckNotTestFixtureSubclass(
+ const CXXRecordDecl *BaseDefinition
+#if __clang_major__ == 3 && __clang_minor__ < 7
+ , void *
+#endif
+ )
+{
if (BaseDefinition->getQualifiedNameAsString().compare("CppUnit::TestFixture") == 0) {
return false;
}
@@ -49,7 +55,7 @@ bool isDerivedFromTestFixture(const CXXRecordDecl *decl) {
if (// not sure what hasAnyDependentBases() does,
// but it avoids classes we don't want, e.g. WeakAggComponentImplHelper1
!decl->hasAnyDependentBases() &&
- !decl->forallBases(BaseCheckNotTestFixtureSubclass, nullptr, true)) {
+ !compat::forallBases(*decl, BaseCheckNotTestFixtureSubclass, true)) {
return true;
}
return false;