[clang] [Clang] FunctionEffects: accept throw-only callees from noexcept callers (PR #238401)

Daniel Petrovic via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 3 10:46:12 PST 2026


================
@@ -484,6 +509,13 @@ class CompleteFunctionAnalysis {
     return InferrableEffectToFirstViolation.lookup(Effect);
   }
 
+  // True if every reason this function lacks Effect is an exception escaping
+  // it, i.e. it would have the effect but for throwing.
+  bool isThrowOnly(FunctionEffect Effect) {
----------------
daniel-petrovic wrote:

can be declared const

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


More information about the cfe-commits mailing list