[clang-tools-extra] [clang-tidy] Add check 'bugprone-unsafe-to-allow-exceptions' (PR #176430)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 9 03:58:08 PST 2026
=?utf-8?q?Balázs_Kéri?= <balazs.keri at ericsson.com>,
=?utf-8?q?Balázs_Kéri?= <balazs.keri at ericsson.com>,
=?utf-8?q?Balázs_Kéri?= <balazs.keri at ericsson.com>,
=?utf-8?q?Balázs_Kéri?= <balazs.keri at ericsson.com>,
=?utf-8?q?Balázs_Kéri?= <balazs.keri at ericsson.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/176430 at github.com>
github-actions[bot] wrote:
<!--LLVM CODE LINT COMMENT: clang-tidy-->
:warning: C/C++ code linter, clang-tidy found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
```bash
git diff -U0 origin/main...HEAD -- clang-tools-extra/clang-tidy/bugprone/UnsafeToAllowExceptionsCheck.cpp clang-tools-extra/clang-tidy/bugprone/UnsafeToAllowExceptionsCheck.h clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp |
python3 clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py -path build -p1 -quiet
```
</details>
<details>
<summary>
View the output from clang-tidy here.
</summary>
```
clang-tools-extra/clang-tidy/bugprone/UnsafeToAllowExceptionsCheck.h:13:1: warning: included header StringSet.h is not used directly [misc-include-cleaner]
13 | #include "llvm/ADT/StringSet.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14 |
```
</details>
https://github.com/llvm/llvm-project/pull/176430
More information about the cfe-commits
mailing list