| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | DataCollectionTest.cpp | 140 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()
|
| H A D | ASTImporterTest.cpp | 342 floatLiteral(equals(1.0), hasType(asString("double")))))); in TEST_P() 346 floatLiteral(equals(1.0e-5f), hasType(asString("float")))))); in TEST_P() 495 hasDescendant(floatLiteral(equals(1.0))), in TEST_P() 498 hasDescendant(floatLiteral(equals(2.0))), in TEST_P() 501 hasDescendant(floatLiteral(equals(1.0))), in TEST_P() 526 hasType(asString("struct point")), has(floatLiteral(equals(1.0))), in TEST_P() 529 has(floatLiteral(equals(2.0))), in TEST_P() 530 has(floatLiteral(equals(1.0))))))))); in TEST_P()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/ |
| H A D | DurationFactoryScaleCheck.cpp | 124 integerLiteral(equals(0)), floatLiteral(equals(0.0)), in registerMatchers() 127 anyOf(integerLiteral(), floatLiteral())))) in registerMatchers() 129 binaryOperator(hasOperatorName("/"), hasRHS(floatLiteral())) in registerMatchers()
|
| H A D | DurationFactoryFloatCheck.cpp | 40 floatLiteral()))) in registerMatchers()
|
| H A D | DurationRewriter.cpp | 162 anyOf(integerLiteral(equals(0)), floatLiteral(equals(0.0))); in isLiteralZero()
|
| /llvm-project-15.0.7/clang/test/Index/ |
| H A D | comment-to-html-xml-conversion-with-original-literals.cpp | 24 , floatLiteral = value(0.25e3) //!< f enumerator
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersNodeTest.cpp | 959 StatementMatcher HasFloatLiteral = floatLiteral(); in TEST_P() 965 EXPECT_TRUE(matches("double i = 5.0;", floatLiteral(equals(5.0)))); in TEST_P() 966 EXPECT_TRUE(matches("double i = 5.0;", floatLiteral(equals(5.0f)))); in TEST_P() 968 matches("double i = 5.0;", floatLiteral(equals(llvm::APFloat(5.0))))); in TEST_P() 971 EXPECT_TRUE(notMatches("double i = 5.0;", floatLiteral(equals(6.0)))); in TEST_P() 972 EXPECT_TRUE(notMatches("double i = 5.0;", floatLiteral(equals(6.0f)))); in TEST_P() 1016 hasDescendant(floatLiteral(equals(1.0))), in TEST_P() 1019 hasDescendant(floatLiteral(equals(2.0))), in TEST_P() 1022 designatorCountIs(2), hasDescendant(floatLiteral(equals(1.0))), in TEST_P() 1041 has(floatLiteral(equals(2.0))), in TEST_P() [all …]
|
| H A D | ASTMatchersTraversalTest.cpp | 2319 auto Matcher = varDecl(hasInitializer(floatLiteral())); in TEST() 2325 auto ParentMatcher = floatLiteral(hasParent(varDecl(hasName("i")))); in TEST() 2336 floatLiteral(traverse(TK_AsIs, hasParent(implicitCastExpr()))))); in TEST() 2357 varDecl(has(traverse(TK_AsIs, floatLiteral())))))); in TEST() 2385 hasArgument(0, floatLiteral()))))); in TEST() 2389 hasAnyArgument(floatLiteral()))))); in TEST() 2413 Code, traverse(TK_AsIs, floatLiteral(hasParent(callExpr( in TEST() 2416 floatLiteral(hasParent(callExpr(callee( in TEST() 3527 has(floatLiteral()))))))))))); in TEST() 3532 traverse(TK_AsIs, implicitCastExpr(has(floatLiteral())))))); in TEST() [all …]
|
| H A D | ASTMatchersNarrowingTest.cpp | 503 notMatches(Code, floatLiteral(hasAncestor(mapAnyOf(ifStmt, forStmt))))); in TEST_P()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | IncorrectRoundingsCheck.cpp | 35 auto FloatHalf = floatLiteral(floatHalf()); in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | UseDefaultMemberInitCheck.cpp | 203 floatLiteral(), in registerMatchers() 205 hasUnaryOperand(floatLiteral())), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | MagicNumbersCheck.cpp | 126 Finder->addMatcher(floatLiteral().bind("float"), this); in registerMatchers()
|
| H A D | UppercaseLiteralSuffixCheck.cpp | 207 floatLiteral().bind(FloatingLiteralCheck::Name)), in registerMatchers()
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | StencilTest.cpp | 211 floatLiteral().bind("float"), anything())); in selectMatcher()
|
| /llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/ |
| H A D | Registry.cpp | 242 REGISTER_MATCHER(floatLiteral); in RegistryMaps()
|
| /llvm-project-15.0.7/clang/lib/ASTMatchers/ |
| H A D | ASTMatchersInternal.cpp | 925 const internal::VariadicDynCastAllOfMatcher<Stmt, FloatingLiteral> floatLiteral; variable
|
| /llvm-project-15.0.7/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchers.h | 2401 floatLiteral;
|