From 6b975a48e8b6dba2853e8d7eb03fbd6f8aa1aad8 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 22 Jun 2021 08:10:58 +0200 Subject: Adapt compilerplugins to llvm::sys::fs::OF_None rename ...from F_None, which happened with "[FileSystem] Split up the OpenFlags enumeration" towards LLVM 7, originally leaving the alternative F_None spelling in for compatibility, but which was finally removed now with "Support: Remove F_{None,Text,Append} compatibility synonyms, NFC". Change-Id: Iea1192b5ee351c13ea5d6701887f3aba62133c20 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117609 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- compilerplugins/clang/compat.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'compilerplugins/clang/compat.hxx') diff --git a/compilerplugins/clang/compat.hxx b/compilerplugins/clang/compat.hxx index c9b2bc35b5f6..d04538e164b7 100644 --- a/compilerplugins/clang/compat.hxx +++ b/compilerplugins/clang/compat.hxx @@ -346,6 +346,12 @@ inline bool isPtrMemOp(clang::BinaryOperatorKind op) { #endif } +#if CLANG_VERSION >= 70000 +constexpr llvm::sys::fs::OpenFlags OF_None = llvm::sys::fs::OF_None; +#else +constexpr llvm::sys::fs::OpenFlags OF_None = llvm::sys::fs::F_None; +#endif + } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit