Tests: Update ClangPlugins to use C++23 when running Clang

This commit is contained in:
Matthew Olsson 2024-05-18 06:12:34 -07:00 committed by Andrew Kaster
parent a98ad191c7
commit 573bbd47ee
Notes: sideshowbarker 2024-07-17 01:53:23 +09:00

View file

@ -4,7 +4,7 @@ include(AddLLVM)
find_package(Python3 REQUIRED COMPONENTS Interpreter)
get_property(CLANG_PLUGINS_ALL_COMPILE_OPTIONS GLOBAL PROPERTY CLANG_PLUGINS_ALL_COMPILE_OPTIONS)
list(APPEND CLANG_PLUGINS_ALL_COMPILE_OPTIONS -std=c++20 -Wno-user-defined-literals -Wno-literal-range)
list(APPEND CLANG_PLUGINS_ALL_COMPILE_OPTIONS -std=c++23 -Wno-user-defined-literals -Wno-literal-range)
get_property(CLANG_PLUGINS_INCLUDE_DIRECTORIES TARGET AK PROPERTY INCLUDE_DIRECTORIES)
list(APPEND CLANG_PLUGINS_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})