Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/clang/test/AST/HLSL/
H A Dvector-constructors.hlsl18 // CHECK-NEXT: FloatingLiteral 0x{{[0-9a-fA-F]+}} <col:24> 'double' 1.000000e+00
20 // CHECK-NEXT: FloatingLiteral 0x{{[0-9a-fA-F]+}} <col:29> 'double' 2.000000e+00
38 // CHECK-NEXT: FloatingLiteral 0x{{[0-9a-fA-F]+}} <col:30> 'double' 3.000000e+00
44 // CHECK-NEXT: FloatingLiteral 0x{{[0-9a-fA-F]+}} <col:25> 'double' 1.000000e+00
46 // CHECK-NEXT: FloatingLiteral 0x{{[0-9a-fA-F]+}} <col:30> 'double' 2.000000e+00
48 // CHECK-NEXT: FloatingLiteral 0x{{[0-9a-fA-F]+}} <col:35> 'double' 3.000000e+00
131 // CHECK-NEXT: FloatingLiteral 0x{{[0-9a-fA-F]+}} <col:42> 'float' 1.000000e+00
132 // CHECK-NEXT: FloatingLiteral 0x{{[0-9a-fA-F]+}} <col:48> 'float' 2.000000e+00
140 // CHECK-NEXT: FloatingLiteral 0x{{[0-9a-fA-F]+}} <col:42> 'float' 1.000000e+00
141 // CHECK-NEXT: FloatingLiteral 0x{{[0-9a-fA-F]+}} <col:48> 'float' 2.000000e+00
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DMagicNumbersCheck.h37 bool isIgnoredValue(const FloatingLiteral *Literal) const;
40 const FloatingLiteral *) const { in isSyntheticValue() argument
47 const FloatingLiteral &) const { in isBitFieldWidth() argument
H A DMagicNumbersCheck.cpp134 checkBoundMatch<FloatingLiteral>(Result, "float"); in check()
185 bool MagicNumbersCheck::isIgnoredValue(const FloatingLiteral *Literal) const { in isIgnoredValue()
H A DUppercaseLiteralSuffixCheck.cpp41 using type = clang::FloatingLiteral;
H A DImplicitBoolConversionCheck.cpp161 if (const auto *FloatLit = dyn_cast<FloatingLiteral>(Expression)) { in getEquivalentBoolLiteralForExpr()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DIdenticalExprChecker.cpp227 const FloatingLiteral *FloatLit1 = dyn_cast<FloatingLiteral>(LHS); in checkComparisonOp()
228 const FloatingLiteral *FloatLit2 = dyn_cast<FloatingLiteral>(RHS); in checkComparisonOp()
477 const FloatingLiteral *FloatLit1 = cast<FloatingLiteral>(Stmt1); in isIdenticalStmt()
478 const FloatingLiteral *FloatLit2 = cast<FloatingLiteral>(Stmt2); in isIdenticalStmt()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DDurationFactoryScaleCheck.cpp39 const FloatingLiteral *FloatLit) { in getValue()
174 const auto *FloatLit = llvm::dyn_cast<FloatingLiteral>(MultBinOp->getLHS()); in check()
184 FloatLit = llvm::dyn_cast<FloatingLiteral>(MultBinOp->getRHS()); in check()
195 const auto *FloatLit = llvm::cast<FloatingLiteral>(DivBinOp->getRHS()); in check()
H A DDurationRewriter.cpp28 truncateIfIntegral(const FloatingLiteral &FloatLiteral) { in truncateIfIntegral()
208 if (const auto *LitFloat = llvm::dyn_cast<FloatingLiteral>(&Node)) in stripFloatLiteralFraction()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseDefaultMemberInitCheck.cpp128 llvm::APFloat Value = cast<FloatingLiteral>(E)->getValue(); in isZero()
174 return cast<FloatingLiteral>(E1)->getValue().bitwiseIsEqual( in sameValue()
175 cast<FloatingLiteral>(E2)->getValue()); in sameValue()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DIncorrectRoundingsCheck.cpp23 AST_MATCHER(FloatingLiteral, floatHalf) { in AST_MATCHER() argument
H A DArgumentCommentCheck.cpp256 (CommentFloatLiterals && isa<FloatingLiteral>(Arg)) || in shouldAddComment()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchersInternal.h1749 std::is_base_of<FloatingLiteral, T>::value ||
1768 inline bool ValueEqualsMatcher<FloatingLiteral, double>::matchesNode(
1769 const FloatingLiteral &Node) const {
1777 inline bool ValueEqualsMatcher<FloatingLiteral, float>::matchesNode(
1778 const FloatingLiteral &Node) const {
1786 inline bool ValueEqualsMatcher<FloatingLiteral, llvm::APFloat>::matchesNode(
1787 const FloatingLiteral &Node) const {
/llvm-project-15.0.7/clang/include/clang/AST/
H A DStmtDataCollectors.td85 class FloatingLiteral {
H A DTextNodeDumper.h261 void VisitFloatingLiteral(const FloatingLiteral *Node);
H A DJSONNodeDumper.h310 void VisitFloatingLiteral(const FloatingLiteral *FL);
H A DExpr.h1639 class FloatingLiteral : public Expr, private APFloatStorage {
1642 FloatingLiteral(const ASTContext &C, const llvm::APFloat &V, bool isexact,
1646 explicit FloatingLiteral(const ASTContext &C, EmptyShell Empty);
1649 static FloatingLiteral *Create(const ASTContext &C, const llvm::APFloat &V,
1651 static FloatingLiteral *Create(const ASTContext &C, EmptyShell Empty);
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DPreferMemberInitializerCheck.cpp38 return isa<StringLiteral, CharacterLiteral, IntegerLiteral, FloatingLiteral, in isLiteral()
/llvm-project-15.0.7/clang/lib/AST/
H A DExpr.cpp985 FloatingLiteral::FloatingLiteral(const ASTContext &C, const llvm::APFloat &V, in FloatingLiteral() function in FloatingLiteral
994 FloatingLiteral::FloatingLiteral(const ASTContext &C, EmptyShell Empty) in FloatingLiteral() function in FloatingLiteral
1000 FloatingLiteral *
1001 FloatingLiteral::Create(const ASTContext &C, const llvm::APFloat &V, in Create()
1003 return new (C) FloatingLiteral(C, V, isexact, Type, L); in Create()
1006 FloatingLiteral *
1007 FloatingLiteral::Create(const ASTContext &C, EmptyShell Empty) { in Create()
1008 return new (C) FloatingLiteral(C, Empty); in Create()
1014 double FloatingLiteral::getValueAsApproximateDouble() const { in getValueAsApproximateDouble()
H A DStmtPrinter.cpp1320 static void PrintFloatingLiteral(raw_ostream &OS, FloatingLiteral *Node, in PrintFloatingLiteral()
1344 void StmtPrinter::VisitFloatingLiteral(FloatingLiteral *Node) { in VisitFloatingLiteral()
2022 auto *Float = cast<FloatingLiteral>(Node->getCookedLiteral()); in VisitUserDefinedLiteral()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DCloneDetection.cpp216 SKIP(FloatingLiteral)
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DDumpAST.cpp245 if (isa<IntegerLiteral, FloatingLiteral, FixedPointLiteral, in getDetail()
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DOpcodes.td51 def ArgFloatingLiteral : ArgType { let Name = "const FloatingLiteral *"; }
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp99 return cast<FloatingLiteral>(Left)->getValue().bitwiseIsEqual( in areEquivalentExpr()
100 cast<FloatingLiteral>(Right)->getValue()); in areEquivalentExpr()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DStmtNodes.td64 def FloatingLiteral : StmtNode<Expr>;
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountDiagnostics.cpp76 return isa<IntegerLiteral, CharacterLiteral, FloatingLiteral, in isNumericLiteralExpression()

123