Skip to content

Commit

Permalink
clang: detect versions 18 & 19
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Mar 20, 2024
1 parent 9605608 commit ed4a5cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion simde/simde-detect-clang.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@
*/

#if defined(__clang__) && !defined(SIMDE_DETECT_CLANG_VERSION)
# if __has_attribute(unsafe_buffer_usage) // no new warnings in 17.0
# if __has_warning("-Wmissing-designated-field-initializers")
# define SIMDE_DETECT_CLANG_VERSION 190000
# elif __has_warning("-Woverriding-option")
# define SIMDE_DETECT_CLANG_VERSION 180000
# elif __has_attribute(unsafe_buffer_usage) // no new warnings in 17.0
# define SIMDE_DETECT_CLANG_VERSION 170000
# elif __has_attribute(nouwtable) // no new warnings in 16.0
# define SIMDE_DETECT_CLANG_VERSION 160000
Expand Down

0 comments on commit ed4a5cd

Please sign in to comment.