| /llvm-project-15.0.7/clang/test/CXX/drs/ |
| H A D | dr2390.cpp | 11 #if __has_cpp_attribute(F) 16 #if __has_cpp_attribute(C::F) 21 #if __has_cpp_attribute(clang::F) 26 #if __has_cpp_attribute(C::fallthrough) 31 #if __has_cpp_attribute(CF) 37 #if __has_cpp_attribute(FUNCLIKE1(fallthrough)) 43 #if __has_cpp_attribute(FUNCLIKE2(fallthrough))
|
| /llvm-project-15.0.7/clang/test/Preprocessor/ |
| H A D | has_attribute.cpp | 4 #define CXX11(x) x: __has_cpp_attribute(x) 69 #if __has_cpp_attribute(F) 74 #if __has_cpp_attribute(C::F) 79 #if __has_cpp_attribute(clang::F) 84 #if __has_cpp_attribute(C::fallthrough) 89 #if __has_cpp_attribute(CF) 95 #if __has_cpp_attribute(FUNCLIKE1(fallthrough)) 101 #if __has_cpp_attribute(FUNCLIKE2(fallthrough))
|
| H A D | has_attribute_errors.cpp | 13 __has_cpp_attribute(__clang__::fallthrough) // expected-error {{missing ')' after <numeric_constant…
|
| H A D | has_attribute.c | 57 #if __has_cpp_attribute(selectany) // expected-error {{function-like macro '__has_cpp_attribute' is…
|
| /llvm-project-15.0.7/llvm/include/llvm/Demangle/ |
| H A D | DemangleConfig.h | 22 #ifndef __has_cpp_attribute 23 #define __has_cpp_attribute(x) 0 macro 75 #if __cplusplus > 201402L && __has_cpp_attribute(fallthrough) 77 #elif __has_cpp_attribute(gnu::fallthrough) 83 #elif __has_cpp_attribute(clang::fallthrough)
|
| /llvm-project-15.0.7/libcxxabi/src/demangle/ |
| H A D | DemangleConfig.h | 27 #ifndef __has_cpp_attribute 28 #define __has_cpp_attribute(x) 0 macro 80 #if __cplusplus > 201402L && __has_cpp_attribute(fallthrough) 82 #elif __has_cpp_attribute(gnu::fallthrough) 88 #elif __has_cpp_attribute(clang::fallthrough)
|
| /llvm-project-15.0.7/lldb/include/lldb/ |
| H A D | lldb-private-defines.h | 20 #ifndef __has_cpp_attribute 21 #define __has_cpp_attribute(x) 0 macro 26 #if __has_cpp_attribute(clang::fallthrough)
|
| /llvm-project-15.0.7/clang/test/OpenMP/ |
| H A D | openmp_attribute.cpp | 14 #if __has_cpp_attribute(omp::sequence) != SUPPORTED 18 #if __has_cpp_attribute(omp::directive) != SUPPORTED 22 #if __has_cpp_attribute(omp::totally_bogus)
|
| /llvm-project-15.0.7/compiler-rt/lib/orc/ |
| H A D | compiler.h | 28 #if defined(__cplusplus) && defined(__has_cpp_attribute) 29 #define ORC_RT_HAS_CPP_ATTRIBUTE(x) __has_cpp_attribute(x)
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | attr-gnu.cpp | 58 static_assert(__has_cpp_attribute(gnu::__const__)); 59 static_assert(__has_cpp_attribute(__gnu__::__const__));
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_internal_defs.h | 128 #if !defined(__has_cpp_attribute) 129 # define __has_cpp_attribute(x) 0 macro 262 #if __has_cpp_attribute(clang::fallthrough) 264 #elif __has_cpp_attribute(fallthrough)
|
| /llvm-project-15.0.7/clang/test/ClangScanDeps/ |
| H A D | macro-expansions.cpp | 28 #if __has_cpp_attribute(clang::fallthrough)
|
| /llvm-project-15.0.7/clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.unused/ |
| H A D | p3.cpp | 4 static_assert(__has_cpp_attribute(maybe_unused) == 201603, "");
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | test_macros.h | 412 #if __has_cpp_attribute(msvc::no_unique_address) 414 #elif __has_cpp_attribute(no_unique_address)
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | Compiler.h | 49 #if defined(__cplusplus) && defined(__has_cpp_attribute) 50 # define LLVM_HAS_CPP_ATTRIBUTE(x) __has_cpp_attribute(x)
|
| /llvm-project-15.0.7/openmp/runtime/src/ |
| H A D | kmp_os.h | 44 #ifndef __has_cpp_attribute 45 #define __has_cpp_attribute(x) 0 macro 346 #if __cplusplus > 201402L && __has_cpp_attribute(fallthrough) 351 #elif __has_cpp_attribute(clang::fallthrough)
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | __config | 193 # ifndef __has_cpp_attribute 194 # define __has_cpp_attribute(__x) 0 852 # if __has_cpp_attribute(nodiscard) || defined(_LIBCPP_COMPILER_MSVC) 1054 # if __has_cpp_attribute(fallthrough) 1176 # if __has_cpp_attribute(msvc::no_unique_address) 1186 # elif __has_cpp_attribute(no_unique_address)
|
| /llvm-project-15.0.7/openmp/tools/archer/ |
| H A D | ompt-tsan.cpp | 43 #if __cplusplus > 201402L && __has_cpp_attribute(fallthrough) 48 #elif __has_cpp_attribute(clang::fallthrough)
|
| /llvm-project-15.0.7/openmp/runtime/src/thirdparty/ittnotify/ |
| H A D | ittnotify_static.cpp | 39 #if defined(__cplusplus) && defined(__has_cpp_attribute) 40 #define HAS_CPP_ATTR(X) __has_cpp_attribute(X)
|
| /llvm-project-15.0.7/clang/docs/ |
| H A D | LanguageExtensions.rst | 123 ``__has_cpp_attribute`` 140 #ifndef __has_cpp_attribute // For backwards compatibility 141 #define __has_cpp_attribute(x) 0 145 #if __has_cpp_attribute(clang::fallthrough)
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaExpr.cpp | 18998 #ifdef __has_cpp_attribute in operator TemplateArgumentListInfo*() 18999 #if __has_cpp_attribute(clang::lifetimebound) in operator TemplateArgumentListInfo*()
|