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

Stephan Bergmann sbergman at redhat.com
Thu Nov 19 01:12:41 PST 2015


 compilerplugins/clang/compat.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 526bbbbd2f8eb227bc0dacd755a6c72511adf976
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Nov 19 10:11:32 2015 +0100

    isLookupContext already available in Clang 3.7.0
    
    Change-Id: Ia17a116b1f7605b5a8d572c6a6f4ef64adea8f94

diff --git a/compilerplugins/clang/compat.hxx b/compilerplugins/clang/compat.hxx
index 0a16a3c..9b352db 100644
--- a/compilerplugins/clang/compat.hxx
+++ b/compilerplugins/clang/compat.hxx
@@ -42,7 +42,7 @@
 namespace compat {
 
 inline bool isLookupContext(clang::DeclContext const & ctxt) {
-#if (__clang_major__ == 3 && __clang_minor__ > 7) || __clang_major__ > 3
+#if (__clang_major__ == 3 && __clang_minor__ >= 7) || __clang_major__ > 3
     return ctxt.isLookupContext();
 #else
     return !ctxt.isFunctionOrMethod()


More information about the Libreoffice-commits mailing list