[clang] [clang][analyzer] Add C standard streams to the internal memory space (PR #147766)
Balazs Benics via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 13 00:58:00 PDT 2025
=?utf-8?q?Balázs_Kéri?= <balazs.keri at ericsson.com>,
=?utf-8?q?Balázs_Kéri?= <balazs.keri at ericsson.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/147766 at github.com>
================
@@ -1022,6 +1022,23 @@ getStackOrCaptureRegionForDeclContext(const LocationContext *LC,
return (const StackFrameContext *)nullptr;
}
+static bool isStdStreamVar(const VarDecl *D) {
----------------
steakhal wrote:
BTW wouldn't this code accept a `mynamespace::stdin`? I could not see any places that would expect a TU decl context (aka. global namespace).
https://github.com/llvm/llvm-project/pull/147766
More information about the cfe-commits
mailing list