Home
last modified time | relevance | path

Searched refs:__has_cpp_attribute (Results 1 – 21 of 21) sorted by relevance

/llvm-project-15.0.7/clang/test/CXX/drs/
H A Ddr2390.cpp11 #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 Dhas_attribute.cpp4 #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 Dhas_attribute_errors.cpp13 __has_cpp_attribute(__clang__::fallthrough) // expected-error {{missing ')' after <numeric_constant…
H A Dhas_attribute.c57 #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 DDemangleConfig.h22 #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 DDemangleConfig.h27 #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 Dlldb-private-defines.h20 #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 Dopenmp_attribute.cpp14 #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 Dcompiler.h28 #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 Dattr-gnu.cpp58 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 Dsanitizer_internal_defs.h128 #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 Dmacro-expansions.cpp28 #if __has_cpp_attribute(clang::fallthrough)
/llvm-project-15.0.7/clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.unused/
H A Dp3.cpp4 static_assert(__has_cpp_attribute(maybe_unused) == 201603, "");
/llvm-project-15.0.7/libcxx/test/support/
H A Dtest_macros.h412 #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 DCompiler.h49 #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 Dkmp_os.h44 #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__config193 # 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 Dompt-tsan.cpp43 #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 Dittnotify_static.cpp39 #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 DLanguageExtensions.rst123 ``__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 DSemaExpr.cpp18998 #ifdef __has_cpp_attribute in operator TemplateArgumentListInfo*()
18999 #if __has_cpp_attribute(clang::lifetimebound) in operator TemplateArgumentListInfo*()