Lines Matching defs:DNT
22 template <typename T> static ASTNodeKind DNT() {
27 EXPECT_TRUE(DNT<Decl>().isBaseOf(DNT<VarDecl>()));
28 EXPECT_FALSE(DNT<Decl>().isSame(DNT<VarDecl>()));
29 EXPECT_FALSE(DNT<VarDecl>().isBaseOf(DNT<Decl>()));
31 EXPECT_TRUE(DNT<Decl>().isSame(DNT<Decl>()));
35 EXPECT_TRUE(DNT<Expr>().isBaseOf(DNT<CallExpr>()));
36 EXPECT_TRUE(DNT<Expr>().isBaseOf(DNT<BinaryOperator>()));
37 EXPECT_FALSE(DNT<CallExpr>().isBaseOf(DNT<BinaryOperator>()));
38 EXPECT_FALSE(DNT<BinaryOperator>().isBaseOf(DNT<CallExpr>()));
42 EXPECT_FALSE(DNT<Expr>().isBaseOf(DNT<ArrayType>()));
43 EXPECT_FALSE(DNT<QualType>().isBaseOf(DNT<FunctionDecl>()));
44 EXPECT_FALSE(DNT<Type>().isSame(DNT<QualType>()));
51 EXPECT_FALSE(DNT<Foo>().isSame(DNT<Foo>()));
55 EXPECT_EQ("Decl", DNT<Decl>().asStringRef());
56 EXPECT_EQ("CallExpr", DNT<CallExpr>().asStringRef());
57 EXPECT_EQ("ConstantArrayType", DNT<ConstantArrayType>().asStringRef());