[Libreoffice-commits] core.git: compilerplugins/clang
Noel Grandin
noel at peralex.com
Wed Aug 10 11:02:45 UTC 2016
compilerplugins/clang/unnecessaryvirtual.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit e5d24f50b7e527a5991a1d21f40edcb537eeb72d
Author: Noel Grandin <noel at peralex.com>
Date: Wed Aug 10 10:35:58 2016 +0200
clang3.9 compatibility
Change-Id: Idbba88f1a890c068c9813aff2287f0983d1b8742
diff --git a/compilerplugins/clang/unnecessaryvirtual.cxx b/compilerplugins/clang/unnecessaryvirtual.cxx
index 2964748..9403213 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
More information about the Libreoffice-commits
mailing list