Skip to content

Commit

Permalink
ClangPlugins: Add -Wno-unqualified-std-cast-call to test compile options
Browse files Browse the repository at this point in the history
We globally export std::move and std::forward in StdLibExtraDetails.h.
  • Loading branch information
trflynn89 committed Aug 26, 2024
1 parent 660e846 commit f52bb43
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Tests/ClangPlugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ include(AddLLVM)
find_package(Python3 REQUIRED COMPONENTS Interpreter)

get_property(CLANG_PLUGINS_COMPILE_OPTIONS_FOR_TESTS GLOBAL PROPERTY CLANG_PLUGINS_COMPILE_OPTIONS_FOR_TESTS)
list(APPEND CLANG_PLUGINS_COMPILE_OPTIONS_FOR_TESTS -std=c++23 -Wno-user-defined-literals -Wno-literal-range -Wno-unknown-warning-option)

list(APPEND CLANG_PLUGINS_COMPILE_OPTIONS_FOR_TESTS
-std=c++23
-Wno-user-defined-literals
-Wno-literal-range
-Wno-unknown-warning-option
-Wno-unqualified-std-cast-call
)

# Ensure we always check for invalid function field types regardless of the value of ENABLE_CLANG_PLUGINS_INVALID_FUNCTION_MEMBERS
# FIXME: Enabling this with lit and llvm 18 seems to not work as expected
Expand Down

0 comments on commit f52bb43

Please sign in to comment.