<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/70195>70195</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-tidy: bugprone-exception-escape.IgnoredExceptions uses not full names
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Dushistov
</td>
</tr>
</table>
<pre>
I use clang-tidy from d2ce3e9621411f3391def327f89e3a650918989f
With attached config (with ` bugprone-exception-escape.IgnoredExceptions: '::std::bad_variant_access'`) it produces warning
for such code:
```
#include <variant>
void f(int v) noexcept {
if (v == 17)
throw std::bad_variant_access();
}
```
```
/tmp/test.cpp:3:6: warning: an exception may be thrown in function 'f' which should not throw exceptions [bugprone-exception-escape]
3 | void f(int v) noexcept {
| ^
```
though `std::bad_variant_access` is in list of ignored exceptions.
If change config to ` bugprone-exception-escape.IgnoredExceptions: 'bad_variant_access'`
the exception would be ignored,
but I can understand that only after I build clang-tidy from source, so I thing that would be good,
if list of types accept full qualified names like other options of clang-tidy.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVMuO6ygQ_ZryptSRDX7ECy_SnY6UL5jlFYbCZsYBj4Fk8vcj7HR3pLm3NTeKHAfqcc6pA8J7M1iiDqpXqI6ZiGF0S3eMfjQ-uGvWO3Xvzhg9oZyEHV6CUXfUi7ugYpI4tTUryqLQnLeFIs1Zo_ctcVFXeVvs232rEfIj5Ift-YcJI4oQhBxJoXRWmwGB7W9pHeocsY_DvDhLL_SPpDkYZ1_ISzHT7jxYt5B6_1j3wA8IrAF-AH7wQW0vvVA_rmIxwoYfQkryPsXUObAWTcB5cSpK8ngTizV22HBpt6CPckTpFKU6T5hT7vbd_jJurJyiIgT-9ugE_P055eqMQg1sb2zAa-ps3cYHoXndYtDoxPyKwI_Aj1g0Ke6xh4hhXNwNv6W1B9YCf9SD5vhzvD8ncQqXOT3Jh52cZ-AHDvxQJ00_lOEHFBY_54AXcceeNmAWjUUdrVx3gDUaWIO30cgR_ejipNC68CDxWcIjVK-_nDBUxy_6HKF5w_8l5PpJ0dtL9f6NDmF0cVit9p2ydY7GJ4aT8QGdRrN574nJ7rnqWaMchR3ow9LBrW7-fTP_0r0P9PQ0j9sqc08f6IC9PYPqY8AzSmExWkWLD8IqDKMI6Ox0R6EDLXjGPppJ_ed0excXScDe0Ds8YxiNHbbkz66Dc18tjf7UKtxn8pjAzwF1nCb8O4rJaEMKrbiQx8n8RejCSAu6hy-cfoKwy1THVctbkVFX1O2ecdaWTTZ2tcyVrnLiJSvzvmzKVqta9ZUm3uha88x0LGe8yFlVFIyxeqcpb8qyqJRqe96TgDKnizDTbpqul51bhsx4H6lr8qKtskn0NPn1OmTsCxAwlq7HpUtJL30cPJR54uu_ygQTJuqecvjhd-af7li_nplVslWoLC5TN4YwJ3cAOwE7DSaMsd9JdwF2Sr0fPy_z4v4kGYCdVj4e2Gml9G8AAAD__zly26I">