[clang] [Clang][ASTMatcher] Extend `hasDependentName` to match DependentNameType name (PR #121975)
Amr Hesham via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 8 08:19:21 PST 2025
================
@@ -2251,6 +2251,14 @@ TEST_P(ASTMatchersTest, HasDependentName_DependentScopeDeclRefExpr) {
EXPECT_TRUE(matches("template <typename T> struct S { static T foo(); };"
"template <typename T> void x() { S<T>::foo(); }",
dependentScopeDeclRefExpr(hasDependentName("foo"))));
+
+ EXPECT_TRUE(matches(
----------------
AmrDeveloper wrote:
Done, thank you
https://github.com/llvm/llvm-project/pull/121975
More information about the cfe-commits
mailing list