[clang] [clang][analyzer] Add OpaqueSTLFunctionsModeling (PR #178910)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 2 07:14:50 PST 2026
================
@@ -0,0 +1,60 @@
+//===--- OpaqueSTLFunctionsModeling.cpp -----------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// Forces conservative evaluation for STL internal implementation functions
+// (prefixed with '__') known to cause false positives. This prevents inlining
+// of complex STL internals and avoids wasting analysis time spent in
+// `BugReporterVisitor`s.
+//
+//===----------------------------------------------------------------------===//
----------------
steakhal wrote:
```suggestion
//===----------------------------------------------------------------------===//
```
https://github.com/llvm/llvm-project/pull/178910
More information about the cfe-commits
mailing list