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

Luboš Luňák (via logerrit) logerrit at kemper.freedesktop.org
Mon May 27 06:48:52 UTC 2019


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

New commits:
commit 63be55de0223e4cbfcf3bcb180dfb6cd2156e61d
Author:     Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Sun May 26 13:49:23 2019 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon May 27 08:47:59 2019 +0200

    fix clang version check
    
    As 56f87dac69b4 says, this is about clang 9, not clang 8.
    
    Change-Id: I2978d2235c7eb3ad438082f7b08a1bd68977ed6f
    Reviewed-on: https://gerrit.libreoffice.org/72974
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/compilerplugins/clang/compat.hxx b/compilerplugins/clang/compat.hxx
index bdbcdcb46f0b..64ee9a8fd265 100644
--- a/compilerplugins/clang/compat.hxx
+++ b/compilerplugins/clang/compat.hxx
@@ -241,7 +241,7 @@ inline const clang::Expr *getSubExprAsWritten(const clang::CastExpr *This) {
 }
 
 inline bool isExplicitSpecified(clang::CXXConstructorDecl const * decl) {
-#if CLANG_VERSION >= 80000
+#if CLANG_VERSION >= 90000
     return decl->getExplicitSpecifier().isExplicit();
 #else
     return decl->isExplicitSpecified();
@@ -249,7 +249,7 @@ inline bool isExplicitSpecified(clang::CXXConstructorDecl const * decl) {
 }
 
 inline bool isExplicitSpecified(clang::CXXConversionDecl const * decl) {
-#if CLANG_VERSION >= 80000
+#if CLANG_VERSION >= 90000
     return decl->getExplicitSpecifier().isExplicit();
 #else
     return decl->isExplicitSpecified();


More information about the Libreoffice-commits mailing list