<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/108426>108426</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang warns on `throw()` specifiers in libcxxabi
</td>
</tr>
<tr>
<th>Labels</th>
<td>
libc++abi
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
hiraditya
</td>
</tr>
</table>
<pre>
```sh
clang/include/c++/v1/cxxabi.h:46:46: warning: dynamic exception specifications are deprecated [-Wdeprecated-dynamic-exception-s
pec]
46 | __cxa_allocate_exception(size_t thrown_size) throw();
| ^~~~~~~
clang/include/c++/v1/cxxabi.h:46:46: note: use 'noexcept' instead
46 | __cxa_allocate_exception(size_t thrown_size) throw();
| ^~~~~~~
| noexcept
clang/include/c++/v1/cxxabi.h:48:46: warning: dynamic exception specifications are deprecated [-Wdeprecated-dynamic-exception-s
pec]
48 | __cxa_free_exception(void *thrown_exception) throw();
| ^~~~~~~
clang/include/c++/v1/cxxabi.h:48:46: note: use 'noexcept' instead
48 | __cxa_free_exception(void *thrown_exception) throw();
| ^~~~~~~
| noexcept
clang/include/c++/v1/cxxabi.h:51:108: warning: dynamic exception specifications are deprecated [-Wdeprecated-dynamic-exception-
spec]
51 | __cxa_init_primary_exception(void* object, std::type_info* tinfo, void(_LIBCXXABI_DTOR_FUNC* dest)(void*)) throw();
| ^~~~~~~
clang/include/c++/v1/cxxabi.h:51:108: note: use 'noexcept' instead
51 | __cxa_init_primary_exception(void* object, std::type_info* tinfo, void(_LIBCXXABI_DTOR_FUNC* dest)(void*)) throw();
| ^~~~~~~
| noexcept
clang/include/c++/v1/cxxabi.h:65:48: warning: dynamic exception specifications are deprecated [-Wdeprecated-dynamic-exception-s
pec]
65 | __cxa_get_exception_ptr(void *exceptionObject) throw();
| ^~~~~~~
clang/include/c++/v1/cxxabi.h:65:48: note: use 'noexcept' instead
65 | __cxa_get_exception_ptr(void *exceptionObject) throw();
| ^~~~~~~
| noexcept
clang/include/c++/v1/cxxabi.h:67:42: warning: dynamic exception specifications are deprecated [-Wdeprecated-dynamic-exception-s
pec]
67 | __cxa_begin_catch(void *exceptionObject) throw();
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUls2OozgQx5-muFiJwICBAweSLFJLq21ptavtGzKmAl4Rg7CTTvawzz4y5IOemUtmOtMzCIErTpWrfvV3Yq61rBViCuEKwo3D96bphrSRA6-kOXGn7KpTCsydbt2AuwE3Ey1XNdBcKtHuKwSaC6Cr8c4PnjWPR17KZQN-FrDLg7zyQUlV22F1UnwnBcGjwN7IThHdo5BbKbi1NOEDkgr7AQU3WBEIV4t_bvbi7L-4-i_0lFqPAsLNNCaEBIxAtCZFIY684G3bWffi6gU01vI_LAwxzdC9qsJaQJPJBBoDTcBfXcMRMoaD8Lf_x-u7cKjOoH3vNRKgkeqmtIBGRCptkFePKcNGuuv6rNwbh2vK92OIP04VQTyDuR3wLchDJysCNDuTnE09UhXxN6nifQv5GXQReuBnnhs_XBhTavqNMEJvxlMqaYp-kDs-nL7gCjQjXfkvCgN0TbSpwM_Az8ypx0KqbWfnzTRYk8khLn5_Wq1fXrLVU7H56_nPIv_7j7X9XoXa2D5cI4_GA8U2Z3yH2n4BOl8B8x6iZOFli37EXxgLZ9xrNDfcRW-G2Ua_fv58Zv9ADc2Q3CGhH1bKu3Q9siXSD-k6i2agSqylKgQ3orkf0fl5OcE5VepXiZ9wB1MvosxjHmWu06QiKgUPSiHKMETP2wY8wUQEJYtikTAeODKlLg3cxKNe5AXUXTJkKNwo9Lc0Rr7dQuDijst22baH3bIbakdqvcfUc-OAMqflJbZ6PGhS2sryDJ6XEii1Z88htY6Lcl9rCNxWaqNvoYw0LaZj-8ZuaNIpAsydl8zcSy9w0EQqYlcZ--nshzZtjOm1_SWiOdC8lqbZl0vR7YDmdpnza9EP3cQzH9PXQPNzBYeUfgoAAP__h1hrgw">