[clang-tools-extra] [clang-tidy] Rename 'cert-err52-cpp' to 'bugprone-avoid-setjmp-longjmp' (PR #159813)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 21 14:53:57 PDT 2025


https://github.com/vbvictor commented:

After looking at the rule, I think we should place in "modernize" category: `modernize-avoud-setjmp-longjmp`. "bugprone" checks in general are expected to give only warnings for real problems: `setjmp` can be perfectly fine but it's not how exceptions should be modelled in C++, hence "modernize" category.

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


More information about the cfe-commits mailing list