[clang] [clang][analyzer] Add C standard streams to the internal memory space (PR #147766)

Balázs Kéri via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 14 06:48:22 PDT 2025


================
@@ -1022,6 +1022,23 @@ getStackOrCaptureRegionForDeclContext(const LocationContext *LC,
   return (const StackFrameContext *)nullptr;
 }
 
+static bool isStdStreamVar(const VarDecl *D) {
----------------
balazske wrote:

The current code should filter this out. Still it is not sure that it detects the `stdin` in C++ headers where it is defined as macro with implementation-defined content. (Check for macro expansion with appropriate macro name can be added.)

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


More information about the cfe-commits mailing list