[libcxx-commits] [libcxx] a77d3d9 - [libc++] Disables -Wweak-vtables diagnostics. (#85577)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Apr 3 08:36:03 PDT 2024


Author: Mark de Wever
Date: 2024-04-03T17:36:00+02:00
New Revision: a77d3d9a2e5decc814119dc4e0a7b4625a6f6490

URL: https://github.com/llvm/llvm-project/commit/a77d3d9a2e5decc814119dc4e0a7b4625a6f6490
DIFF: https://github.com/llvm/llvm-project/commit/a77d3d9a2e5decc814119dc4e0a7b4625a6f6490.diff

LOG: [libc++] Disables -Wweak-vtables diagnostics. (#85577)

This is a preparation to use Clang HEAD in the CI.

Added: 
    

Modified: 
    libcxx/include/__expected/bad_expected_access.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__expected/bad_expected_access.h b/libcxx/include/__expected/bad_expected_access.h
index 27f01d9350eea6..585b4ec9a053bb 100644
--- a/libcxx/include/__expected/bad_expected_access.h
+++ b/libcxx/include/__expected/bad_expected_access.h
@@ -27,6 +27,8 @@ _LIBCPP_BEGIN_NAMESPACE_STD
 template <class _Err>
 class bad_expected_access;
 
+_LIBCPP_DIAGNOSTIC_PUSH
+_LIBCPP_CLANG_DIAGNOSTIC_IGNORED("-Wweak-vtables")
 template <>
 class bad_expected_access<void> : public exception {
 protected:
@@ -44,6 +46,7 @@ class bad_expected_access<void> : public exception {
   // it adds deployment target restrictions.
   _LIBCPP_HIDE_FROM_ABI_VIRTUAL const char* what() const noexcept override { return "bad access to std::expected"; }
 };
+_LIBCPP_DIAGNOSTIC_POP
 
 template <class _Err>
 class bad_expected_access : public bad_expected_access<void> {


        


More information about the libcxx-commits mailing list