[clang-tools-extra] [clang-tidy] Add AssumedNonThrowingFunctions option to bugprone-exception-escape (PR #193127)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 23 16:56:22 PDT 2026


================
@@ -154,6 +154,9 @@ class ExceptionAnalyzer {
   void ignoreExceptions(llvm::StringSet<> ExceptionNames) {
     IgnoredExceptions = std::move(ExceptionNames);
   }
+  void assumeNonThrowingFunctions(llvm::StringSet<> FunctionNames) {
+    AssumedNonThrowingFunctions = std::move(FunctionNames);
+  }
----------------
vbvictor wrote:

Can this be done purely in check's logic?
I'm against adding more options to analyzer unless absolutely necessary and here we seem to be able make decision inside call stack in check code

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


More information about the cfe-commits mailing list