| Issue |
184781
|
| Summary |
[clang-tidy] no frames shown for `bugprone-exception-escape.TreatFunctionsWithoutSpecificationAsThrowing` warnings
|
| Labels |
enhancement,
clang-tidy
|
| Assignees |
|
| Reporter |
firewave
|
```cpp
#include <string>
struct S
{
std::string s;
};
```
No frames are shown so it is not clear where the exception is coming from.
```
<source>:3:8: warning: an exception may be thrown in function 'S' which should not throw exceptions [bugprone-exception-escape]
3 | struct S
| ^
<source>:3:8: warning: an exception may be thrown in function 'operator=' which should not throw exceptions [bugprone-exception-escape]
<source>:3:8: warning: an exception may be thrown in function '~S' which should not throw exceptions [bugprone-exception-escape]
```
This might not be related to the option but rather caused by the code though.
https://godbolt.org/z/hT8cEK58x
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs