-
Notifications
You must be signed in to change notification settings - Fork 12.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a matcher for the name of a DependentScopeDeclRefExpr
#121610
Comments
@llvm/issue-subscribers-clang-frontend Author: Nathan Ridge (HighCommander4)
In https://github.com//issues/120937 we added a new `dependentScopeDeclRefExpr()` matcher, for matching expression node of type `DependentScopeDeclRefExpr`.
To make this matcher more useful, it would be nice to have a matcher that can go inside We have such a matcher for We'll need to figure out what to name it. |
@AmrDeveloper you might find this an interesting follow-up to #120937 to work on. |
Cool, interested to work on it @HighCommander4, Thank you |
In #120937 we added a new
dependentScopeDeclRefExpr()
matcher, for matching expression node of typeDependentScopeDeclRefExpr
.To make this matcher more useful, it would be nice to have a matcher that can go inside
dependentScopeDeclRefExpr()
to narrow down the match to expressions referencing a particular name.We have such a matcher for
CXXDependentScopeMemberExpr
, calledhasMemberName()
. I'm proposing we add something similar forDependentScopeDeclRefExpr
.We'll need to figure out what to name it.
hasMemberName
is not appropriate here, asDependentScopeDeclRefExpr
does not necessarily name a class member.hasName
sounds good but is already used forNamedDecl
and I don't know how easy it would be to overload it.hasDependentName
perhaps?The text was updated successfully, but these errors were encountered: