[PATCH] D144748: [clang-tidy] Add bugprone-empty-catch check

Eugene Zelenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 24 12:22:10 PST 2023


Eugene.Zelenko added inline comments.


================
Comment at: clang-tools-extra/clang-tidy/bugprone/EmptyCatchCheck.cpp:77
+void EmptyCatchCheck::registerMatchers(MatchFinder *Finder) {
+
+  auto AllowedNamedExceptionDecl =
----------------
Excessive newline.


================
Comment at: clang-tools-extra/docs/clang-tidy/checks/bugprone/empty-catch.rst:169
+    should be provided. If an exception type name in the list is caught in an
+    empty catch statement, no warning will be raised. Default value: `` (empty).
----------------
Mistake in default value formatting.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D144748



More information about the cfe-commits mailing list