[clang] Reapply "[Clang] Profile singly-resolved UnresolvedLookupExpr with the declaration" (PR #140680)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Mon May 19 22:57:20 PDT 2025
================
@@ -2189,8 +2189,14 @@ StmtProfiler::VisitCXXPseudoDestructorExpr(const CXXPseudoDestructorExpr *S) {
void StmtProfiler::VisitOverloadExpr(const OverloadExpr *S) {
VisitExpr(S);
- VisitNestedNameSpecifier(S->getQualifier());
- VisitName(S->getName(), /*TreatAsDecl*/ true);
+ bool DescribingDependentVarTemplate =
+ S->getNumDecls() == 1 && isa<VarTemplateDecl>(*S->decls_begin());
----------------
zyn0217 wrote:
Instead of OverloadExpr, I'm thinking if it would be better to invent a new Expr node to describe dependent cases (we use DeclRefExpr for non-dependent uses), just like ConceptSpecializationExpr.
https://github.com/llvm/llvm-project/pull/140680
More information about the cfe-commits
mailing list