[clang-tools-extra] [clang-tidy] Rename hicpp-exception-baseclass to bugprone-exception-baseclass (PR #183474)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 5 08:35:25 PST 2026
================
@@ -0,0 +1,31 @@
+.. title:: clang-tidy - bugprone-std-exception-baseclass
+
+bugprone-std-exception-baseclass
+================================
+
+Ensure that every value that in a ``throw`` expression is an instance of
+``std::exception``.
+
+Exception types should inherit from ``std::exception`` so they can be
+handled consistently and caught as ``std::exception``.
+Exception objects exist to propagate error information
+and must not be created without being thrown.
----------------
vbvictor wrote:
This is not what this check about. It is enforced by https://clang.llvm.org/extra/clang-tidy/checks/bugprone/throw-keyword-missing.html
https://github.com/llvm/llvm-project/pull/183474
More information about the cfe-commits
mailing list