[PATCH] D148462: [clang-tidy] Ignore declarations in bugprone-exception-escape

Domján Dániel via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 19 16:04:36 PDT 2023


isuckatcs added a comment.

> No because indirectly_recursive called from recursion_helper is noexcept, so there will be std::terminate called.

I missed that in `noexcept` functions thrown exceptions are not propagated. In this case I agree that `recursion_helper()` shouldn't emit a warning.

As for the forward declaration part I think we should wait and see what others think about it.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D148462/new/

https://reviews.llvm.org/D148462



More information about the cfe-commits mailing list