[PATCH] D50610: Disable -Wnoexcept-type wholesale
Kim Gräsman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 12 08:21:16 PDT 2018
kimgr created this revision.
kimgr added reviewers: llvm-commits, thakis.
Herald added a subscriber: mgorny.
The LLVM libraries have no stable C++ API, so the warning is not useful.
Repository:
rL LLVM
https://reviews.llvm.org/D50610
Files:
cmake/modules/HandleLLVMOptions.cmake
Index: cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- cmake/modules/HandleLLVMOptions.cmake
+++ cmake/modules/HandleLLVMOptions.cmake
@@ -584,6 +584,10 @@
check_cxx_compiler_flag("-Wclass-memaccess" CXX_SUPPORTS_CLASS_MEMACCESS_FLAG)
append_if(CXX_SUPPORTS_CLASS_MEMACCESS_FLAG "-Wno-class-memaccess" CMAKE_CXX_FLAGS)
+ # The LLVM libraries have no stable C++ API, so -Wnoexcept-type is not useful.
+ check_cxx_compiler_flag("-Wnoexcept-type" CXX_SUPPORTS_NOEXCEPT_TYPE_FLAG)
+ append_if(CXX_SUPPORTS_NOEXCEPT_TYPE_FLAG "-Wno-noexcept-type" CMAKE_CXX_FLAGS)
+
# Check if -Wnon-virtual-dtor warns even though the class is marked final.
# If it does, don't add it. So it won't be added on clang 3.4 and older.
# This also catches cases when -Wnon-virtual-dtor isn't supported by
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50610.160257.patch
Type: text/x-patch
Size: 860 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180812/b8503a35/attachment.bin>
More information about the llvm-commits
mailing list