[clang] [clang][static analyzer] ignore try statements in dead code checker (PR #91675)

Andrew Sukach via cfe-commits cfe-commits at lists.llvm.org
Thu May 9 15:51:46 PDT 2024


================
@@ -159,8 +159,10 @@ void UnreachableCodeChecker::checkEndAnalysis(ExplodedGraph &G,
       SL = DL.asLocation();
       if (SR.isInvalid() || !SL.isValid())
         continue;
-    }
-    else
+
+      if (isa<CXXTryStmt>(S))
----------------
soukatch wrote:

everything above this point is just clang-format changes

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


More information about the cfe-commits mailing list