reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/clang/include/clang/ASTMatchers/ASTMatchers.h
 2138     floatLiteral;

References

tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp
  218   REGISTER_MATCHER(floatLiteral);
tools/clang/tools/extra/clang-tidy/abseil/DurationFactoryFloatCheck.cpp
   39                                     floatLiteral())))
tools/clang/tools/extra/clang-tidy/abseil/DurationFactoryScaleCheck.cpp
  129                   integerLiteral(equals(0)), floatLiteral(equals(0.0)),
  132                                      anyOf(integerLiteral(), floatLiteral()))))
  134                   binaryOperator(hasOperatorName("/"), hasRHS(floatLiteral()))
tools/clang/tools/extra/clang-tidy/abseil/DurationRewriter.cpp
  162       anyOf(integerLiteral(equals(0)), floatLiteral(equals(0.0)));
tools/clang/tools/extra/clang-tidy/bugprone/IncorrectRoundingsCheck.cpp
   35   auto FloatHalf = floatLiteral(floatHalf());
tools/clang/tools/extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp
  200             floatLiteral(),
  202                           hasUnaryOperand(floatLiteral())),
tools/clang/tools/extra/clang-tidy/readability/MagicNumbersCheck.cpp
  102     Finder->addMatcher(floatLiteral().bind("float"), this);
tools/clang/tools/extra/clang-tidy/readability/UppercaseLiteralSuffixCheck.cpp
  201                   floatLiteral().bind(FloatingLiteralCheck::Name)),
tools/clang/unittests/AST/ASTImporterTest.cpp
  515           floatLiteral(equals(1.0), hasType(asString("double"))))));
  520           floatLiteral(equals(1.0e-5f), hasType(asString("float"))))));
  689                   hasDescendant(floatLiteral(equals(1.0))),
  693                   hasDescendant(floatLiteral(equals(2.0))),
  697                   hasDescendant(floatLiteral(equals(1.0))),
  731                       has(floatLiteral(equals(1.0))),
  737                       has(floatLiteral(equals(2.0))),
  738                       has(floatLiteral(equals(1.0)))))))));
tools/clang/unittests/AST/DataCollectionTest.cpp
  140   ASSERT_TRUE(isStmtHashEqual(floatLiteral().bind("id"), "double x = .0;",
  142   ASSERT_TRUE(isStmtHashEqual(floatLiteral().bind("id"), "double x = .10;",
  144   ASSERT_TRUE(isStmtHashEqual(floatLiteral().bind("id"), "double x = .1;",
  146   ASSERT_FALSE(isStmtHashEqual(floatLiteral().bind("id"), "double x = .0;",
tools/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
  735   StatementMatcher HasFloatLiteral = floatLiteral();
  741   EXPECT_TRUE(matches("double i = 5.0;", floatLiteral(equals(5.0))));
  742   EXPECT_TRUE(matches("double i = 5.0;", floatLiteral(equals(5.0f))));
  744     matches("double i = 5.0;", floatLiteral(equals(llvm::APFloat(5.0)))));
  747   EXPECT_TRUE(notMatches("double i = 5.0;", floatLiteral(equals(6.0))));
  748   EXPECT_TRUE(notMatches("double i = 5.0;", floatLiteral(equals(6.0f))));
  750     notMatches("double i = 5.0;", floatLiteral(equals(llvm::APFloat(6.0)))));
  784           has(floatLiteral(equals(1.0))),
  790           has(floatLiteral(equals(2.0))),
  791           has(floatLiteral(equals(1.0)))))
  801                                    hasDescendant(floatLiteral(
  808                                    hasDescendant(floatLiteral(
  815                                    hasDescendant(floatLiteral(