Searched refs:NamedX (Results 1 – 1 of 1) sorted by relevance
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersNodeTest.cpp | 41 DeclarationMatcher NamedX = namedDecl(hasName("X")); in TEST() local 42 EXPECT_TRUE(matches("typedef int X;", NamedX)); in TEST() 43 EXPECT_TRUE(matches("int X;", NamedX)); in TEST() 44 EXPECT_TRUE(matches("class foo { virtual void X(); };", NamedX)); in TEST() 45 EXPECT_TRUE(matches("void foo() try { } catch(int X) { }", NamedX)); in TEST() 46 EXPECT_TRUE(matches("void foo() { int X; }", NamedX)); in TEST() 47 EXPECT_TRUE(matches("namespace X { }", NamedX)); in TEST() 48 EXPECT_TRUE(matches("enum X { A, B, C };", NamedX)); in TEST() 50 EXPECT_TRUE(notMatches("#define X 1", NamedX)); in TEST() 54 DeclarationMatcher NamedX = namedDecl(matchesName("::X")); in TEST() local [all …]
|