Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/unittests/AST/
H A 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()
H A DASTImporterTest.cpp342 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 DDurationFactoryScaleCheck.cpp124 integerLiteral(equals(0)), floatLiteral(equals(0.0)), in registerMatchers()
127 anyOf(integerLiteral(), floatLiteral())))) in registerMatchers()
129 binaryOperator(hasOperatorName("/"), hasRHS(floatLiteral())) in registerMatchers()
H A DDurationFactoryFloatCheck.cpp40 floatLiteral()))) in registerMatchers()
H A DDurationRewriter.cpp162 anyOf(integerLiteral(equals(0)), floatLiteral(equals(0.0))); in isLiteralZero()
/llvm-project-15.0.7/clang/test/Index/
H A Dcomment-to-html-xml-conversion-with-original-literals.cpp24 , floatLiteral = value(0.25e3) //!< f enumerator
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersNodeTest.cpp959 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 DASTMatchersTraversalTest.cpp2319 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 DASTMatchersNarrowingTest.cpp503 notMatches(Code, floatLiteral(hasAncestor(mapAnyOf(ifStmt, forStmt))))); in TEST_P()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DIncorrectRoundingsCheck.cpp35 auto FloatHalf = floatLiteral(floatHalf()); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseDefaultMemberInitCheck.cpp203 floatLiteral(), in registerMatchers()
205 hasUnaryOperand(floatLiteral())), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DMagicNumbersCheck.cpp126 Finder->addMatcher(floatLiteral().bind("float"), this); in registerMatchers()
H A DUppercaseLiteralSuffixCheck.cpp207 floatLiteral().bind(FloatingLiteralCheck::Name)), in registerMatchers()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DStencilTest.cpp211 floatLiteral().bind("float"), anything())); in selectMatcher()
/llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp242 REGISTER_MATCHER(floatLiteral); in RegistryMaps()
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp925 const internal::VariadicDynCastAllOfMatcher<Stmt, FloatingLiteral> floatLiteral; variable
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2401 floatLiteral;