Skip to content

Commit 6043270

Browse files
authored
Update simde-detect-clang.h for clang 17 detection
Verified with godbolt: - when using clang 17, it's 170000: https://godbolt.org/z/MTzb8va48 - when using clang 16, it's 160000: https://godbolt.org/z/8avxvq7rj
1 parent 684baa1 commit 6043270

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

simde/simde-detect-clang.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@
6060
*/
6161

6262
#if defined(__clang__) && !defined(SIMDE_DETECT_CLANG_VERSION)
63-
# if __has_attribute(nouwtable) // no new warnings in 16.0
63+
# if __has_attribute(unsafe_buffer_usage) // no new warnings in 17.0
64+
# define SIMDE_DETECT_CLANG_VERSION 170000
65+
# elif __has_attribute(nouwtable) // no new warnings in 16.0
6466
# define SIMDE_DETECT_CLANG_VERSION 160000
6567
# elif __has_warning("-Warray-parameter")
6668
# define SIMDE_DETECT_CLANG_VERSION 150000

0 commit comments

Comments
 (0)