[clang] [Clang][ASTMatcher] Add `dependentTemplateSpecializationType` AST mat… (PR #121435)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 1 13:20:04 PST 2025


================
@@ -1926,6 +1926,21 @@ TEST_P(ASTMatchersTest, DependentNameType) {
       dependentNameType()));
 }
 
+TEST_P(ASTMatchersTest, DependentTemplateSpecializationType) {
+  if (!GetParam().isCXX()) {
+    return;
+  }
+
+  EXPECT_TRUE(matches(
+      R"(
+      template<typename T> struct A;
----------------
HighCommander4 wrote:

nit: please indent the contents of the code one level (two spaces) relative to the beginning of the string (`R"(`), and the end of the string (`)"`) the same as the beginning

https://github.com/llvm/llvm-project/pull/121435


More information about the cfe-commits mailing list