summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-05-26 13:49:23 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-05-27 08:47:59 +0200
commit63be55de0223e4cbfcf3bcb180dfb6cd2156e61d (patch)
tree5431cf492fbcf3beab20ea629d3babcb781fa5a5
parenttdf#125103 Writer: input fields will be exported to docx (diff)
downloadcore-63be55de0223e4cbfcf3bcb180dfb6cd2156e61d.tar.gz
core-63be55de0223e4cbfcf3bcb180dfb6cd2156e61d.zip
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@redhat.com>
-rw-r--r--compilerplugins/clang/compat.hxx4
1 files changed, 2 insertions, 2 deletions
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();