diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-04 09:36:32 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-04 09:36:32 +0200 |
commit | c15b4cf39a74176cee64795129d76f411d2c0a69 (patch) | |
tree | cf03416c9dd4762553e1dc66fdec5ded319c7353 /compilerplugins/clang/vclwidgets.cxx | |
parent | f17f89aadc5e88880df0c852289e2fa5b04254ba (diff) |
Adapt to current Clang trunk towards 3.7
Change-Id: Ibb2c641d49a1773be789c9259f53a040db6f605f
Diffstat (limited to 'compilerplugins/clang/vclwidgets.cxx')
-rw-r--r-- | compilerplugins/clang/vclwidgets.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/compilerplugins/clang/vclwidgets.cxx b/compilerplugins/clang/vclwidgets.cxx index 7be617ff0316..032dc937a3df 100644 --- a/compilerplugins/clang/vclwidgets.cxx +++ b/compilerplugins/clang/vclwidgets.cxx @@ -57,7 +57,13 @@ static bool startsWith(const std::string& s, const char* other) return s.compare(0, strlen(other), other) == 0; } -bool BaseCheckNotWindowSubclass(const CXXRecordDecl *BaseDefinition, void *) { +bool BaseCheckNotWindowSubclass( + const CXXRecordDecl *BaseDefinition +#if __clang_major__ == 3 && __clang_minor__ < 7 + , void * +#endif + ) +{ if (BaseDefinition && BaseDefinition->getQualifiedNameAsString() == "OutputDevice") { return false; } @@ -75,7 +81,7 @@ bool isDerivedFromWindow(const CXXRecordDecl *decl) { if (// not sure what hasAnyDependentBases() does, // but it avoids classes we don't want, e.g. WeakAggComponentImplHelper1 !decl->hasAnyDependentBases() && - !decl->forallBases(BaseCheckNotWindowSubclass, nullptr, true)) { + !compat::forallBases(*decl, BaseCheckNotWindowSubclass, true)) { return true; } return false; |