clang3.9 compatibility

Change-Id: Idbba88f1a890c068c9813aff2287f0983d1b8742
This commit is contained in:
Noel Grandin 2016-08-10 10:35:58 +02:00
parent 583e41b9c8
commit e5d24f50b7

View File

@ -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