[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:53:44 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 besides this if statement is just a clang-format change

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


More information about the cfe-commits mailing list