Could swear I'd seen this produce a bogus compiler error

...but now it apparently works

Change-Id: Iac1b4e49788ac620ed55dec7a52c839ba2937f5b
This commit is contained in:
Stephan Bergmann
2016-06-14 08:42:42 +02:00
parent 5338ee66e8
commit a94a0b148c

View File

@@ -58,7 +58,7 @@ public:
private:
template<typename T> bool traverseAnyFunctionDecl(
T * decl, bool (RecursiveASTVisitor<PassStuffByRef>::* fn)(T *));
T * decl, bool (RecursiveASTVisitor::* fn)(T *));
void checkParams(const FunctionDecl * functionDecl);
void checkReturnValue(const FunctionDecl * functionDecl, const CXXMethodDecl * methodDecl);
bool isFat(QualType type);
@@ -103,7 +103,7 @@ bool PassStuffByRef::TraverseCXXConversionDecl(CXXConversionDecl * decl) {
}
template<typename T> bool PassStuffByRef::traverseAnyFunctionDecl(
T * decl, bool (RecursiveASTVisitor<PassStuffByRef>::* fn)(T *))
T * decl, bool (RecursiveASTVisitor::* fn)(T *))
{
if (ignoreLocation(decl)) {
return true;