[clang] [Clang][ASTMatcher] Add `dependentScopeDeclRefExpr` Matcher (PR #120996)
Nathan Ridge via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 24 01:07:36 PST 2024
================
@@ -556,6 +556,22 @@ TEST_P(ASTMatchersTest, DeclRefExpr) {
Reference));
}
+TEST_P(ASTMatchersTest, DependentScopeDeclRefExpr) {
+ if (!GetParam().isCXX() || GetParam().hasDelayedTemplateParsing()) {
+ // FIXME: Add a test for `dependentScopeDeclRefExpr()` that does not depend
----------------
HighCommander4 wrote:
The concept of template-dependence (and thus `DependentScopeDeclRefExpr` nodes) only exist in C++, so it's expected that the test depends on C++.
Based on some other tests that check this condition, please revise the comment to instead say:
```
// FIXME: Fix this test to work with delayed template parsing.
```
https://github.com/llvm/llvm-project/pull/120996
More information about the cfe-commits
mailing list