compilerplugins/clang/unusedmethods.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 07645b443a276da2ee8853c84fbf61a59d59b4bd
Author: Noel Grandin <n...@peralex.com>
Date:   Tue Jul 21 14:39:05 2015 +0200

    workaround clang-3.5 issue in unusedmethods loplugin
    
    Change-Id: Ie67518536932e24e9cff7a8b75b42e90e9f67673

diff --git a/compilerplugins/clang/unusedmethods.cxx 
b/compilerplugins/clang/unusedmethods.cxx
index 848f0bf..ad5582e 100644
--- a/compilerplugins/clang/unusedmethods.cxx
+++ b/compilerplugins/clang/unusedmethods.cxx
@@ -268,9 +268,11 @@ bool UnusedMethods::VisitVarDecl( const VarDecl* varDecl )
     const CXXRecordDecl* recordDecl = varDecl->getType()->getAsCXXRecordDecl();
     if (!recordDecl)
         return true;
+// workaround clang-3.5 issue
+#if __clang_major__ < 3 || __clang_major__ == 3 && __clang_minor__ < 6
     if (!recordDecl->getTemplateInstantiationPattern())
         return true;
-
+#endif
     for( CXXRecordDecl::ctor_iterator it = recordDecl->ctor_begin(); it != 
recordDecl->ctor_end(); ++it)
         TraverseCXXConstructorDecl(*it);
     for( CXXRecordDecl::method_iterator it = recordDecl->method_begin(); it != 
recordDecl->method_end(); ++it)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to