[Libreoffice-commits] core.git: compilerplugins/clang

Stephan Bergmann sbergman at redhat.com
Tue Jun 14 06:43:31 UTC 2016


 compilerplugins/clang/passstuffbyref.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a94a0b148ceef61004564599c381048658ddc151
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jun 14 08:42:42 2016 +0200

    Could swear I'd seen this produce a bogus compiler error
    
    ...but now it apparently works
    
    Change-Id: Iac1b4e49788ac620ed55dec7a52c839ba2937f5b

diff --git a/compilerplugins/clang/passstuffbyref.cxx b/compilerplugins/clang/passstuffbyref.cxx
index d245152..8c9814e 100644
--- a/compilerplugins/clang/passstuffbyref.cxx
+++ b/compilerplugins/clang/passstuffbyref.cxx
@@ -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;


More information about the Libreoffice-commits mailing list