llvm.org GIT mirror llvm / 21ea5fb
Un-break the bots Some bots can't find is_final despite it being in C++14. Leave the code as it was for now, fix it later when the bots are happy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368896 91177308-0d34-0410-b5e6-96231b3b80d8 JF Bastien a month ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
191191 // If the compiler supports detecting whether a class is final, define
192192 // an LLVM_IS_FINAL macro. If it cannot be defined properly, this
193193 // macro will be left undefined.
194 #if defined(__cplusplus) || defined(_MSC_VER)
194 //
195 // FIXME we should just use std::is_final directly, but some bots are currently
196 // broken.
197 #if __cplusplus >= 201402L || defined(_MSC_VER)
195198 #define LLVM_IS_FINAL(Ty) std::is_final()
196199 #elif __has_feature(is_final) || LLVM_GNUC_PREREQ(4, 7, 0)
197200 #define LLVM_IS_FINAL(Ty) __is_final(Ty)