diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-10 10:35:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-10 13:02:02 +0200 |
commit | e5d24f50b7e527a5991a1d21f40edcb537eeb72d (patch) | |
tree | caa482d3c360a962a009aef3389fa869802659a2 /compilerplugins/clang/unnecessaryvirtual.cxx | |
parent | 583e41b9c8f734cb403b9ba9ffe2d0844fab981f (diff) |
clang3.9 compatibility
Change-Id: Idbba88f1a890c068c9813aff2287f0983d1b8742
Diffstat (limited to 'compilerplugins/clang/unnecessaryvirtual.cxx')
-rw-r--r-- | compilerplugins/clang/unnecessaryvirtual.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/unnecessaryvirtual.cxx b/compilerplugins/clang/unnecessaryvirtual.cxx index 2964748a771c..940321309bae 100644 --- a/compilerplugins/clang/unnecessaryvirtual.cxx +++ b/compilerplugins/clang/unnecessaryvirtual.cxx @@ -74,7 +74,7 @@ std::string niceName(const CXXMethodDecl* functionDecl) functionDecl->getParent()->getQualifiedNameAsString() + "::" + compat::getReturnType(*functionDecl).getAsString() + "-" + functionDecl->getNameAsString() + "("; - for (const ParmVarDecl *pParmVarDecl : functionDecl->params()) { + for (const ParmVarDecl *pParmVarDecl : compat::parameters(*functionDecl)) { s += pParmVarDecl->getType().getAsString(); s += ","; } @@ -96,7 +96,7 @@ std::string UnnecessaryVirtual::fullyQualifiedName(const FunctionDecl* functionD } ret += functionDecl->getNameAsString() + "("; bool bFirst = true; - for (const ParmVarDecl *pParmVarDecl : functionDecl->params()) { + for (const ParmVarDecl *pParmVarDecl : compat::parameters(*functionDecl)) { if (bFirst) bFirst = false; else |