[clang] [clang][analyzer] Add OpaqueSTLFunctionsModeling (PR #178910)

Endre Fülöp via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 3 01:16:56 PST 2026


================
@@ -130,8 +133,7 @@ class shared_ptr
     // Fake error trigger.
     // No warning is expected as we are suppressing warning coming
     // out of std::shared_ptr.
-    int z = 0;
-    z = 5/z;
+    TRIGGER_DIV_BY_ZERO
----------------
gamesh411 wrote:

Fixed.

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


More information about the cfe-commits mailing list