Skip to content

Commit 6be3225

Browse files
committed
detect-clang: add 21, 22, and 23
1 parent cf5f393 commit 6be3225

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

simde/simde-detect-clang.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,13 @@
6060
*/
6161

6262
#if defined(__clang__) && !defined(SIMDE_DETECT_CLANG_VERSION)
63-
# if __has_warning("-Warray-compare-cxx26")
63+
# if __has_warning("-Wlifetime-safety")
64+
# define SIMDE_DETECT_CLANG_VERSION 230000
65+
# elif __has_builtin(__builtin_elementwise_fshl)
66+
# define SIMDE_DETECT_CLANG_VERSION 220000
67+
# elif __has_builtin(__builtin_structured_binding_size)
68+
# define SIMDE_DETECT_CLANG_VERSION 210000
69+
# elif __has_warning("-Warray-compare-cxx26")
6470
# define SIMDE_DETECT_CLANG_VERSION 200000
6571
# elif __has_warning("-Wmissing-designated-field-initializers")
6672
# define SIMDE_DETECT_CLANG_VERSION 190000

0 commit comments

Comments
 (0)