We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-Wnon-virtual-dtor
1 parent 21f3a60 commit f02e074Copy full SHA for f02e074
llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -856,7 +856,9 @@ if (LLVM_ENABLE_WARNINGS AND (LLVM_COMPILER_IS_GCC_COMPATIBLE OR CLANG_CL))
856
# The LLVM libraries have no stable C++ API, so -Wnoexcept-type is not useful.
857
append("-Wno-noexcept-type" CMAKE_CXX_FLAGS)
858
859
- append("-Wnon-virtual-dtor" CMAKE_CXX_FLAGS)
+ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
860
+ append("-Wnon-virtual-dtor" CMAKE_CXX_FLAGS)
861
+ endif()
862
append("-Wdelete-non-virtual-dtor" CMAKE_CXX_FLAGS)
863
864
# Enable -Wsuggest-override if it's available, and only if it doesn't
0 commit comments