mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 06:10:12 +00:00
[clang-tools-extra] Disable -Wsuggest-override for unittests/
This avoids massive warning spam due to the unit tests' use of gtest and gmock, which do not use the 'override' keyword in their sources. Differential Revision: https://reviews.llvm.org/D84213
This commit is contained in:
parent
f8b72fba86
commit
fa42b7cf29
@ -5,6 +5,10 @@ function(add_extra_unittest test_dirname)
|
||||
add_unittest(ExtraToolsUnitTests ${test_dirname} ${ARGN})
|
||||
endfunction()
|
||||
|
||||
if (CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG)
|
||||
add_definitions("-Wno-suggest-override")
|
||||
endif()
|
||||
|
||||
add_subdirectory(clang-apply-replacements)
|
||||
add_subdirectory(clang-change-namespace)
|
||||
add_subdirectory(clang-doc)
|
||||
|
Loading…
Reference in New Issue
Block a user