summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/unnecessaryvirtual.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/unnecessaryvirtual.cxx')
-rw-r--r--compilerplugins/clang/unnecessaryvirtual.cxx4
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