Home
last modified time | relevance | path

Searched refs:HasFloatLiteral (Results 1 – 2 of 2) sorted by relevance

/external/clang/unittests/ASTMatchers/
DASTMatchersNodeTest.cpp667 StatementMatcher HasFloatLiteral = floatLiteral(); in TEST() local
668 EXPECT_TRUE(matches("float i = 10.0;", HasFloatLiteral)); in TEST()
669 EXPECT_TRUE(matches("float i = 10.0f;", HasFloatLiteral)); in TEST()
670 EXPECT_TRUE(matches("double i = 10.0;", HasFloatLiteral)); in TEST()
671 EXPECT_TRUE(matches("double i = 10.0L;", HasFloatLiteral)); in TEST()
672 EXPECT_TRUE(matches("double i = 1e10;", HasFloatLiteral)); in TEST()
678 EXPECT_TRUE(notMatches("float i = 10;", HasFloatLiteral)); in TEST()
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersNodeTest.cpp951 StatementMatcher HasFloatLiteral = floatLiteral(); in TEST_P() local
952 EXPECT_TRUE(matches("float i = 10.0;", HasFloatLiteral)); in TEST_P()
953 EXPECT_TRUE(matches("float i = 10.0f;", HasFloatLiteral)); in TEST_P()
954 EXPECT_TRUE(matches("double i = 10.0;", HasFloatLiteral)); in TEST_P()
955 EXPECT_TRUE(matches("double i = 10.0L;", HasFloatLiteral)); in TEST_P()
956 EXPECT_TRUE(matches("double i = 1e10;", HasFloatLiteral)); in TEST_P()
962 EXPECT_TRUE(notMatches("float i = 10;", HasFloatLiteral)); in TEST_P()