=?utf-8?q?Balázs_Kéri?= <balazs.k...@ericsson.com>, =?utf-8?q?Balázs_Kéri?= <balazs.k...@ericsson.com> Message-ID: In-Reply-To: <llvm.org/llvm/llvm-project/pull/147...@github.com>
================ @@ -1022,6 +1022,23 @@ getStackOrCaptureRegionForDeclContext(const LocationContext *LC, return (const StackFrameContext *)nullptr; } +static bool isStdStreamVar(const VarDecl *D) { + const auto *ND = dyn_cast<NamedDecl>(D); + if (!ND) + return false; + DeclarationName DeclN = ND->getDeclName(); + if (!DeclN.isIdentifier()) + return false; ---------------- steakhal wrote: I think a NamedDecl has the memfn `getIdentifier` which either returns the II or NULL. Consequently, this code could be further simplified. https://github.com/llvm/llvm-project/pull/147766 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits