Home
last modified time | relevance | path

Searched refs:floatLiteral (Results 1 – 25 of 25) sorted by relevance

/external/clang/unittests/AST/
DASTImporterTest.cpp167 floatLiteral( in TEST()
176 floatLiteral( in TEST()
383 has(floatLiteral( in TEST()
390 has(floatLiteral( in TEST()
397 has(floatLiteral( in TEST()
447 has(floatLiteral(equals(1.0))), in TEST()
453 has(floatLiteral(equals(2.0))), in TEST()
454 has(floatLiteral(equals(1.0))))) in TEST()
/external/llvm-project/clang/unittests/AST/
DDataCollectionTest.cpp140 ASSERT_TRUE(isStmtHashEqual(floatLiteral().bind("id"), "double x = .0;", in TEST()
142 ASSERT_TRUE(isStmtHashEqual(floatLiteral().bind("id"), "double x = .10;", in TEST()
144 ASSERT_TRUE(isStmtHashEqual(floatLiteral().bind("id"), "double x = .1;", in TEST()
146 ASSERT_FALSE(isStmtHashEqual(floatLiteral().bind("id"), "double x = .0;", in TEST()
DASTImporterTest.cpp296 floatLiteral(equals(1.0), hasType(asString("double")))))); in TEST_P()
300 floatLiteral(equals(1.0e-5f), hasType(asString("float")))))); in TEST_P()
449 hasDescendant(floatLiteral(equals(1.0))), in TEST_P()
452 hasDescendant(floatLiteral(equals(2.0))), in TEST_P()
455 hasDescendant(floatLiteral(equals(1.0))), in TEST_P()
480 hasType(asString("struct point")), has(floatLiteral(equals(1.0))), in TEST_P()
483 has(floatLiteral(equals(2.0))), in TEST_P()
484 has(floatLiteral(equals(1.0))))))))); in TEST_P()
/external/turbine/java/com/google/turbine/parse/
DStreamLexer.java316 return floatLiteral(); in next()
369 return floatLiteral(); in next()
523 return floatLiteral(); in decimalLiteral()
526 return floatLiteral(); in decimalLiteral()
557 private Token floatLiteral() { in floatLiteral() method in StreamLexer
/external/clang/unittests/ASTMatchers/
DASTMatchersNodeTest.cpp667 StatementMatcher HasFloatLiteral = floatLiteral(); in TEST()
673 EXPECT_TRUE(matches("double i = 5.0;", floatLiteral(equals(5.0)))); in TEST()
674 EXPECT_TRUE(matches("double i = 5.0;", floatLiteral(equals(5.0f)))); in TEST()
676 matches("double i = 5.0;", floatLiteral(equals(llvm::APFloat(5.0))))); in TEST()
679 EXPECT_TRUE(notMatches("double i = 5.0;", floatLiteral(equals(6.0)))); in TEST()
680 EXPECT_TRUE(notMatches("double i = 5.0;", floatLiteral(equals(6.0f)))); in TEST()
682 notMatches("double i = 5.0;", floatLiteral(equals(llvm::APFloat(6.0))))); in TEST()
711 has(floatLiteral(equals(1.0))), in TEST()
717 has(floatLiteral(equals(2.0))), in TEST()
718 has(floatLiteral(equals(1.0))))) in TEST()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/
DDurationFactoryScaleCheck.cpp124 integerLiteral(equals(0)), floatLiteral(equals(0.0)), in registerMatchers()
127 anyOf(integerLiteral(), floatLiteral())))) in registerMatchers()
129 binaryOperator(hasOperatorName("/"), hasRHS(floatLiteral())) in registerMatchers()
DDurationFactoryFloatCheck.cpp40 floatLiteral()))) in registerMatchers()
DDurationRewriter.cpp162 anyOf(integerLiteral(equals(0)), floatLiteral(equals(0.0))); in IsLiteralZero()
/external/llvm-project/clang/test/Index/
Dcomment-to-html-xml-conversion-with-original-literals.cpp24 , floatLiteral = value(0.25e3) //!< f enumerator
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersNodeTest.cpp951 StatementMatcher HasFloatLiteral = floatLiteral(); in TEST_P()
957 EXPECT_TRUE(matches("double i = 5.0;", floatLiteral(equals(5.0)))); in TEST_P()
958 EXPECT_TRUE(matches("double i = 5.0;", floatLiteral(equals(5.0f)))); in TEST_P()
960 matches("double i = 5.0;", floatLiteral(equals(llvm::APFloat(5.0))))); in TEST_P()
963 EXPECT_TRUE(notMatches("double i = 5.0;", floatLiteral(equals(6.0)))); in TEST_P()
964 EXPECT_TRUE(notMatches("double i = 5.0;", floatLiteral(equals(6.0f)))); in TEST_P()
966 notMatches("double i = 5.0;", floatLiteral(equals(llvm::APFloat(6.0))))); in TEST_P()
1003 hasDescendant(floatLiteral(equals(1.0))), in TEST_P()
1006 hasDescendant(floatLiteral(equals(2.0))), in TEST_P()
1009 designatorCountIs(2), hasDescendant(floatLiteral(equals(1.0))), in TEST_P()
[all …]
DASTMatchersTraversalTest.cpp1873 auto Matcher = varDecl(hasInitializer(floatLiteral())); in TEST()
1879 auto ParentMatcher = floatLiteral(hasParent(varDecl(hasName("i")))); in TEST()
1890 floatLiteral(traverse(TK_AsIs, hasParent(implicitCastExpr()))))); in TEST()
1893 matches(VarDeclCode, floatLiteral(traverse(TK_IgnoreUnlessSpelledInSource, in TEST()
1911 varDecl(has(traverse(TK_AsIs, floatLiteral())))))); in TEST()
1939 hasArgument(0, floatLiteral()))))); in TEST()
1943 hasAnyArgument(floatLiteral()))))); in TEST()
1952 traverse(TK_AsIs, hasDescendant(floatLiteral()))))); in TEST()
1955 Code, traverse(TK_AsIs, floatLiteral(hasParent(callExpr( in TEST()
1958 floatLiteral(hasParent(callExpr(callee( in TEST()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DIncorrectRoundingsCheck.cpp35 auto FloatHalf = floatLiteral(floatHalf()); in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DUseDefaultMemberInitCheck.cpp203 floatLiteral(), in registerMatchers()
205 hasUnaryOperand(floatLiteral())), in registerMatchers()
/external/turbine/javatests/com/google/turbine/parse/
DLexerTest.java291 public void floatLiteral() { in floatLiteral() method in LexerTest
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DMagicNumbersCheck.cpp125 Finder->addMatcher(floatLiteral().bind("float"), this); in registerMatchers()
DUppercaseLiteralSuffixCheck.cpp201 floatLiteral().bind(FloatingLiteralCheck::Name)), in registerMatchers()
/external/skqp/src/sksl/
DSkSLParser.h276 bool floatLiteral(double* dest);
DSkSLParser.cpp1937 if (this->floatLiteral(&f)) { in term()
1977 bool Parser::floatLiteral(double* dest) { in floatLiteral() function in SkSL::Parser
/external/skia/src/sksl/
DSkSLParser.h266 bool floatLiteral(SKSL_FLOAT* dest);
DSkSLParser.cpp2113 if (this->floatLiteral(&f)) { in term()
2162 bool Parser::floatLiteral(SKSL_FLOAT* dest) { in floatLiteral() function in SkSL::Parser
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp181 REGISTER_MATCHER(floatLiteral); in RegistryMaps()
/external/llvm-project/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp228 REGISTER_MATCHER(floatLiteral); in RegistryMaps()
/external/llvm-project/clang/lib/ASTMatchers/
DASTMatchersInternal.cpp897 const internal::VariadicDynCastAllOfMatcher<Stmt, FloatingLiteral> floatLiteral; variable
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h1693 FloatingLiteral> floatLiteral; variable
/external/llvm-project/clang/include/clang/ASTMatchers/
DASTMatchers.h2326 floatLiteral;