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

Declarations

gen/tools/clang/include/clang/AST/StmtNodes.inc
  997 FLOATINGLITERAL(FloatingLiteral, Expr)
tools/lldb/include/lldb/Core/ClangForward.h
   61 class FloatingLiteral;

References

include/llvm/ADT/STLExtras.h
   75       typename std::add_pointer<typename std::add_const<T>::type>::type;
include/llvm/Support/Casting.h
   58     return To::classof(&Val);
   77     return isa_impl<To, From>::doit(Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  168   using ret_type = const To &; // Normal case, return Ty&
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  258   return cast_convert_val<X, Y,
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
tools/clang/include/clang/AST/ASTTypeTraits.h
   65     return ASTNodeKind(KindToKindId<T>::Id);
  251   const T *get() const {
  252     return BaseConverter<T>::get(NodeKind, Storage.buffer);
  259   const T &getUnchecked() const {
  260     return BaseConverter<T>::getUnchecked(NodeKind, Storage.buffer);
  394     static const T *get(ASTNodeKind NodeKind, const char Storage[]) {
  395       if (ASTNodeKind::getFromNodeKind<T>().isBaseOf(NodeKind))
  399     static const T &getUnchecked(ASTNodeKind NodeKind, const char Storage[]) {
  401       return *cast<T>(static_cast<const BaseT *>(
  474     : public DynCastPtrConverter<T, Stmt> {};
tools/clang/include/clang/AST/Expr.h
 1568   static FloatingLiteral *Create(const ASTContext &C, const llvm::APFloat &V,
 1570   static FloatingLiteral *Create(const ASTContext &C, EmptyShell Empty);
tools/clang/include/clang/AST/JSONNodeDumper.h
  298   void VisitFloatingLiteral(const FloatingLiteral *FL);
tools/clang/include/clang/AST/TextNodeDumper.h
  240   void VisitFloatingLiteral(const FloatingLiteral *Node);
tools/clang/include/clang/ASTMatchers/ASTMatchers.h
  110   const T *getNodeAs(StringRef ID) const {
  111     return MyBoundNodes.getNodeAs<T>(ID);
 2137 extern const internal::VariadicDynCastAllOfMatcher<Stmt, FloatingLiteral>
tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h
  160   const T *getNodeAs(StringRef ID) const {
  165     return It->second.get<T>();
  302   virtual bool matches(const T &Node,
  309     return matches(DynNode.getUnchecked<T>(), Finder, Builder);
  316 class SingleNodeMatcherInterface : public MatcherInterface<T> {
  321   virtual bool matchesNode(const T &Node) const = 0;
  325   bool matches(const T &Node,
  345   DynTypedMatcher(MatcherInterface<T> *Implementation)
  346       : SupportedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()),
  436     return canConvertTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  445   template <typename T> Matcher<T> convertTo() const {
  447     return unconditionalConvertTo<T>();
  499   explicit Matcher(MatcherInterface<T> *Implementation)
  520             std::is_same<T, QualType>::value &&
  529     static_assert(std::is_base_of<To, T>::value, "Invalid dynCast call.");
  534   bool matches(const T &Node,
  581     return Other.dynCastTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  596 inline Matcher<T> makeMatcher(MatcherInterface<T> *Implementation) {
  596 inline Matcher<T> makeMatcher(MatcherInterface<T> *Implementation) {
 1067   using head = T1;
 1073   using tail = TypeList<Ts...>;
 1084       std::is_base_of<typename AnyTypeList::head, T>::value ||
 1085       TypeListContainsSuperOf<typename AnyTypeList::tail, T>::value;
 1202   operator Matcher<T>() const {
 1203     static_assert(TypeListContainsSuperOf<ReturnTypes, T>::value,
 1243   operator Matcher<T>() const {
 1245                ast_type_traits::ASTNodeKind::getFromNodeKind<T>())
 1246         .template unconditionalConvertTo<T>();
 1255 class BindableMatcher : public Matcher<T> {
 1257   explicit BindableMatcher(const Matcher<T> &M) : Matcher<T>(M) {}
 1258   explicit BindableMatcher(MatcherInterface<T> *Implementation)
 1265   Matcher<T> bind(StringRef ID) const {
 1370 inline Matcher<T> DynTypedMatcher::unconditionalConvertTo() const {
 1376 BindableMatcher<T> makeAllOfComposite(
 1377     ArrayRef<const Matcher<T> *> InnerMatchers) {
 1388   using PI = llvm::pointee_iterator<const Matcher<T> *const *>;
 1395           ast_type_traits::ASTNodeKind::getFromNodeKind<T>(),
 1397           .template unconditionalConvertTo<T>());
 1408     ArrayRef<const Matcher<InnerT> *> InnerMatchers) {
 1499 class ValueEqualsMatcher : public SingleNodeMatcherInterface<T> {
 1500   static_assert(std::is_base_of<CharacterLiteral, T>::value ||
 1501                 std::is_base_of<CXXBoolLiteralExpr, T>::value ||
 1502                 std::is_base_of<FloatingLiteral, T>::value ||
 1502                 std::is_base_of<FloatingLiteral, T>::value ||
 1503                 std::is_base_of<IntegerLiteral, T>::value,
 1510   bool matchesNode(const T &Node) const override {
 1522     const FloatingLiteral &Node) const {
 1531     const FloatingLiteral &Node) const {
 1540     const FloatingLiteral &Node) const {
 1557     : public VariadicFunction<BindableMatcher<SourceT>, Matcher<TargetT>,
 1558                               makeDynCastAllOfComposite<SourceT, TargetT>> {
tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h
  199   ast_matchers::internal::Matcher<T> getTypedMatcher() const {
  202         ->template convertTo<T>();
  227       : MatcherOps(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()) {}
  228   typedef ast_matchers::internal::Matcher<T> MatcherT;
  232     return DynTypedMatcher(Matcher.convertTo<T>());
tools/clang/lib/AST/ASTImporter.cpp
  554     ExpectedStmt VisitFloatingLiteral(FloatingLiteral *E);
 6354 ExpectedStmt ASTNodeImporter::VisitFloatingLiteral(FloatingLiteral *E) {
 6363   return FloatingLiteral::Create(
tools/clang/lib/AST/Expr.cpp
  980 FloatingLiteral *
  983   return new (C) FloatingLiteral(C, V, isexact, Type, L);
  986 FloatingLiteral *
  988   return new (C) FloatingLiteral(C, Empty);
tools/clang/lib/AST/ExprConstant.cpp
12393   bool VisitFloatingLiteral(const FloatingLiteral *E);
12566 bool FloatExprEvaluator::VisitFloatingLiteral(const FloatingLiteral *E) {
14130       if (const FloatingLiteral *FL
14131             = dyn_cast<FloatingLiteral>(SubExpr->IgnoreParenImpCasts())) {
tools/clang/lib/AST/ItaniumMangle.cpp
 4230     const FloatingLiteral *FL = cast<FloatingLiteral>(E);
 4230     const FloatingLiteral *FL = cast<FloatingLiteral>(E);
 4272     if (const FloatingLiteral *Imag =
 4273           dyn_cast<FloatingLiteral>(IE->getSubExpr())) {
tools/clang/lib/AST/JSONNodeDumper.cpp
 1401 void JSONNodeDumper::VisitFloatingLiteral(const FloatingLiteral *FL) {
tools/clang/lib/AST/StmtPrinter.cpp
 1161 static void PrintFloatingLiteral(raw_ostream &OS, FloatingLiteral *Node,
 1184 void StmtPrinter::VisitFloatingLiteral(FloatingLiteral *Node) {
 1813     auto *Float = cast<FloatingLiteral>(Node->getCookedLiteral());
 1813     auto *Float = cast<FloatingLiteral>(Node->getCookedLiteral());
tools/clang/lib/AST/StmtProfile.cpp
 1072 void StmtProfiler::VisitFloatingLiteral(const FloatingLiteral *S) {
tools/clang/lib/AST/TextNodeDumper.cpp
  777 void TextNodeDumper::VisitFloatingLiteral(const FloatingLiteral *Node) {
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
  722 const internal::VariadicDynCastAllOfMatcher<Stmt, FloatingLiteral> floatLiteral;
tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h
   75     return Value.isMatcher() && Value.getMatcher().hasTypedMatcher<T>();
   78   static ast_matchers::internal::Matcher<T> get(const VariantValue &Value) {
   79     return Value.getMatcher().getTypedMatcher<T>();
   83     return ArgKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  466       ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT> Func,
  469         DerivedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<DerivedT>()) {
  778     ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT>
tools/clang/lib/CodeGen/Address.h
  108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGExprAgg.cpp
 1368   if (const FloatingLiteral *FL = dyn_cast<FloatingLiteral>(E))
 1368   if (const FloatingLiteral *FL = dyn_cast<FloatingLiteral>(E))
tools/clang/lib/CodeGen/CGExprScalar.cpp
  461   Value *VisitFloatingLiteral(const FloatingLiteral *E) {
tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp
  773   if (!isa<IntegerLiteral>(literalE) && !isa<FloatingLiteral>(literalE))
tools/clang/lib/Sema/SemaChecking.cpp
10027   if (FloatingLiteral* FLL = dyn_cast<FloatingLiteral>(LeftExprSansParen)) {
10027   if (FloatingLiteral* FLL = dyn_cast<FloatingLiteral>(LeftExprSansParen)) {
10031     if (FloatingLiteral* FLR = dyn_cast<FloatingLiteral>(RightExprSansParen))
10031     if (FloatingLiteral* FLR = dyn_cast<FloatingLiteral>(RightExprSansParen))
11107       isa<FloatingLiteral>(E) || isa<FloatingLiteral>(InnerE);
11107       isa<FloatingLiteral>(E) || isa<FloatingLiteral>(InnerE);
tools/clang/lib/Sema/SemaExpr.cpp
 3360   return FloatingLiteral::Create(S.Context, Val, isExact, Ty, Loc);
tools/clang/lib/Sema/SemaExprObjC.cpp
  425         isa<FloatingLiteral>(OrigElement) ||
tools/clang/lib/Sema/SemaOpenMP.cpp
13434           Init = FloatingLiteral::Create(Context, InitValue, /*isexact=*/true,
13478           Init = FloatingLiteral::Create(Context, InitValue, /*isexact=*/true,
tools/clang/lib/Sema/SemaStmt.cpp
 1428     void VisitFloatingLiteral(FloatingLiteral *E) { }
tools/clang/lib/Serialization/ASTReaderStmt.cpp
  603 void ASTStmtReader::VisitFloatingLiteral(FloatingLiteral *E) {
 2623       S = FloatingLiteral::Create(Context, Empty);
tools/clang/lib/Serialization/ASTWriterStmt.cpp
  538 void ASTStmtWriter::VisitFloatingLiteral(FloatingLiteral *E) {
tools/clang/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp
  227   const FloatingLiteral *FloatLit1 = dyn_cast<FloatingLiteral>(LHS);
  227   const FloatingLiteral *FloatLit1 = dyn_cast<FloatingLiteral>(LHS);
  228   const FloatingLiteral *FloatLit2 = dyn_cast<FloatingLiteral>(RHS);
  228   const FloatingLiteral *FloatLit2 = dyn_cast<FloatingLiteral>(RHS);
  475     const FloatingLiteral *FloatLit1 = cast<FloatingLiteral>(Stmt1);
  475     const FloatingLiteral *FloatLit1 = cast<FloatingLiteral>(Stmt1);
  476     const FloatingLiteral *FloatLit2 = cast<FloatingLiteral>(Stmt2);
  476     const FloatingLiteral *FloatLit2 = cast<FloatingLiteral>(Stmt2);
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
   75          isa<FloatingLiteral>(E) ||
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
 2330       isa<FloatingLiteral>(Ex)) {
tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp
  458   if (auto *F = dyn_cast<FloatingLiteral>(S)) {
tools/clang/tools/extra/clang-tidy/abseil/DurationFactoryScaleCheck.cpp
   44                        const FloatingLiteral *FloatLit) {
  179     const auto *FloatLit = llvm::dyn_cast<FloatingLiteral>(MultBinOp->getLHS());
  179     const auto *FloatLit = llvm::dyn_cast<FloatingLiteral>(MultBinOp->getLHS());
  189       FloatLit = llvm::dyn_cast<FloatingLiteral>(MultBinOp->getRHS());
  200     const auto *FloatLit = llvm::dyn_cast<FloatingLiteral>(DivBinOp->getRHS());
  200     const auto *FloatLit = llvm::dyn_cast<FloatingLiteral>(DivBinOp->getRHS());
tools/clang/tools/extra/clang-tidy/abseil/DurationRewriter.cpp
   28 truncateIfIntegral(const FloatingLiteral &FloatLiteral) {
  208   if (const auto *LitFloat = llvm::dyn_cast<FloatingLiteral>(&Node))
  208   if (const auto *LitFloat = llvm::dyn_cast<FloatingLiteral>(&Node))
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp
  237          (CommentFloatLiterals && isa<FloatingLiteral>(Arg)) ||
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp
   97     return cast<FloatingLiteral>(Left)->getValue().bitwiseIsEqual(
   98         cast<FloatingLiteral>(Right)->getValue());
tools/clang/tools/extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp
  122     llvm::APFloat Value = cast<FloatingLiteral>(E)->getValue();
  168     return cast<FloatingLiteral>(E1)->getValue().bitwiseIsEqual(
  169         cast<FloatingLiteral>(E2)->getValue());
tools/clang/tools/extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp
  161   if (const auto *FloatLit = dyn_cast<FloatingLiteral>(Expression)) {
  161   if (const auto *FloatLit = dyn_cast<FloatingLiteral>(Expression)) {
tools/clang/tools/extra/clang-tidy/readability/MagicNumbersCheck.cpp
  107   checkBoundMatch<FloatingLiteral>(Result, "float");
  135 bool MagicNumbersCheck::isIgnoredValue(const FloatingLiteral *Literal) const {
tools/clang/tools/extra/clang-tidy/readability/MagicNumbersCheck.h
   37   bool isIgnoredValue(const FloatingLiteral *Literal) const;
   40                         const FloatingLiteral *) const {
   50     const L *MatchedLiteral = Result.Nodes.getNodeAs<L>(BoundName);
   50     const L *MatchedLiteral = Result.Nodes.getNodeAs<L>(BoundName);
tools/clang/tools/extra/clang-tidy/readability/UppercaseLiteralSuffixCheck.cpp
   40   using type = clang::FloatingLiteral;
  112   const auto &L = cast<typename LiteralType::type>(Literal);
  211   const auto *Literal =
usr/include/c++/7.4.0/type_traits
  215     : public __is_void_helper<typename remove_cv<_Tp>::type>::type
  326     : public __is_integral_helper<typename remove_cv<_Tp>::type>::type
  354     : public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type
  381     : public __is_pointer_helper<typename remove_cv<_Tp>::type>::type
  567     : public __is_null_pointer_helper<typename remove_cv<_Tp>::type>::type
  581     : public __or_<is_lvalue_reference<_Tp>,
  582                    is_rvalue_reference<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  602                           is_void<_Tp>>>::type
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  631     : public __is_member_pointer_helper<typename remove_cv<_Tp>::type>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  798       typedef decltype(__test<_Tp>(0)) type;
  811                remove_all_extents<_Tp>::type>::type
  825     : public __is_destructible_safe<_Tp>::type
 1447     : public __and_<is_destructible<_Tp>, integral_constant<bool,
 1554     { typedef _Tp     type; };
 1558     { typedef _Tp     type; };
 1563     { typedef _Tp     type; };
 1574       remove_const<typename remove_volatile<_Tp>::type>::type     type;
 1580     { typedef _Tp const     type; };
 1629     { typedef _Tp   type; };
 1659     { typedef _Tp&&   type; };
 1955     { typedef _Tp     type; };
 1999     { typedef typename remove_reference<_Tp>::type*     type; };
 2003     : public __add_pointer_helper<_Tp>