[clang-tools-extra] [clang-tidy] Fix FP in bugprone-exception-escape with unevaluated exception specs (PR #190593)

Zeyi Xu via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 6 03:22:20 PDT 2026


================
@@ -68,19 +68,6 @@ struct Member {
 };
 
 struct S {
-  // CHECK-MESSAGES-ALL: :[[@LINE-1]]:8: warning: an exception may be thrown in function 'S' which should not throw exceptions
----------------
zeyi2 wrote:

IMO there is no need to add a new testcase in this file, the original bug report:

```c++
struct S
{
  S() noexcept {}
  ~S() noexcept {}
};

void f()
{
    S s;
}
```

is essentially the same as the one here.

https://github.com/llvm/llvm-project/pull/190593


More information about the cfe-commits mailing list