Searched refs:HasIntLiteral (Results 1 – 2 of 2) sorted by relevance
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersNodeTest.cpp | 651 StatementMatcher HasIntLiteral = integerLiteral(); in TEST() local 652 EXPECT_TRUE(matches("int i = 10;", HasIntLiteral)); in TEST() 653 EXPECT_TRUE(matches("int i = 0x1AB;", HasIntLiteral)); in TEST() 654 EXPECT_TRUE(matches("int i = 10L;", HasIntLiteral)); in TEST() 655 EXPECT_TRUE(matches("int i = 10U;", HasIntLiteral)); in TEST() 659 HasIntLiteral)); // this is actually a character in TEST() 661 EXPECT_TRUE(notMatches("int i = 'a';", HasIntLiteral)); in TEST() 662 EXPECT_TRUE(notMatches("int i = 1e10;", HasIntLiteral)); in TEST() 663 EXPECT_TRUE(notMatches("int i = 10.0;", HasIntLiteral)); in TEST()
|
/external/llvm-project/clang/unittests/ASTMatchers/ |
D | ASTMatchersNodeTest.cpp | 929 StatementMatcher HasIntLiteral = integerLiteral(); in TEST_P() local 930 EXPECT_TRUE(matches("int i = 10;", HasIntLiteral)); in TEST_P() 931 EXPECT_TRUE(matches("int i = 0x1AB;", HasIntLiteral)); in TEST_P() 932 EXPECT_TRUE(matches("int i = 10L;", HasIntLiteral)); in TEST_P() 933 EXPECT_TRUE(matches("int i = 10U;", HasIntLiteral)); in TEST_P() 937 HasIntLiteral)); // this is actually a character in TEST_P() 939 EXPECT_TRUE(notMatches("int i = 'a';", HasIntLiteral)); in TEST_P() 940 EXPECT_TRUE(notMatches("int i = 1e10;", HasIntLiteral)); in TEST_P() 941 EXPECT_TRUE(notMatches("int i = 10.0;", HasIntLiteral)); in TEST_P()
|