[clang-tools-extra] [clang-tidy] Add options to throw unannotated functions in `bugprone-exception-escape` (PR #168324)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 7 05:07:29 PST 2026


================
@@ -154,6 +175,8 @@ class ExceptionAnalyzer {
   bool IgnoreBadAlloc = true;
   llvm::StringSet<> IgnoredExceptions;
   llvm::DenseMap<const FunctionDecl *, ExceptionInfo> FunctionCache{32U};
+  bool AssumeUnannotatedThrowing = false;
----------------
vbvictor wrote:

```suggestion
  bool AssumeUnannotatedFunctionsAsThrowing = false;
```

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


More information about the cfe-commits mailing list