|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
gen/tools/clang/include/clang/AST/StmtNodes.inc 1059 INTEGERLITERAL(IntegerLiteral, Expr)
tools/clang/include/clang/Sema/Sema.h 131 class IntegerLiteral;
tools/lldb/include/lldb/Core/ClangForward.h 70 class IntegerLiteral;
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;
366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
tools/clang/include/clang/AST/ASTTypeTraits.h 65 return ASTNodeKind(KindToKindId<T>::Id);
234 static DynTypedNode create(const T &Node) {
235 return BaseConverter<T>::create(Node);
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 1438 static IntegerLiteral *Create(const ASTContext &C, const llvm::APInt &V,
1441 static IntegerLiteral *Create(const ASTContext &C, EmptyShell Empty);
tools/clang/include/clang/AST/JSONNodeDumper.h 295 void VisitIntegerLiteral(const IntegerLiteral *IL);
tools/clang/include/clang/AST/TextNodeDumper.h 238 void VisitIntegerLiteral(const IntegerLiteral *Node);
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 110 const T *getNodeAs(StringRef ID) const {
111 return MyBoundNodes.getNodeAs<T>(ID);
2127 extern const internal::VariadicDynCastAllOfMatcher<Stmt, IntegerLiteral>
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>();
454 template <typename T> Matcher<T> unconditionalConvertTo() const;
479 class WrapperMatcherInterface : public MatcherInterface<T> {
499 explicit Matcher(MatcherInterface<T> *Implementation)
507 typename std::enable_if<std::is_base_of<From, T>::value &&
508 !std::is_same<From, T>::value>::type * = nullptr)
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) {
1026 bool matchesAncestorOf(const T &Node,
1030 static_assert(std::is_base_of<Decl, T>::value ||
1031 std::is_base_of<NestedNameSpecifierLoc, T>::value ||
1032 std::is_base_of<Stmt, T>::value ||
1033 std::is_base_of<TypeLoc, T>::value,
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;
1146 template <typename To> operator Matcher<To>() const {
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 {
1335 template <typename T> operator Matcher<T>() const {
1337 Op, ast_type_traits::ASTNodeKind::getFromNodeKind<T>(),
1338 getMatchers<T>(std::index_sequence_for<Ps...>()))
1339 .template unconditionalConvertTo<T>();
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) {
1438 class HasParentMatcher : public WrapperMatcherInterface<T> {
1446 bool matches(const T &Node, ASTMatchFinder *Finder,
1458 class HasAncestorMatcher : public WrapperMatcherInterface<T> {
1466 bool matches(const T &Node, ASTMatchFinder *Finder,
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 ||
1503 std::is_base_of<IntegerLiteral, T>::value,
1503 std::is_base_of<IntegerLiteral, T>::value,
1510 bool matchesNode(const T &Node) const override {
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/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h 278 nonloc::ConcreteInt makeIntVal(const IntegerLiteral* integer) {
tools/clang/lib/AST/ASTDiagnostic.cpp 1806 if (isa<IntegerLiteral>(E)) return false;
1810 if (isa<IntegerLiteral>(UO->getSubExpr()))
tools/clang/lib/AST/ASTImporter.cpp 553 ExpectedStmt VisitIntegerLiteral(IntegerLiteral *E);
6340 ExpectedStmt ASTNodeImporter::VisitIntegerLiteral(IntegerLiteral *E) {
6349 return IntegerLiteral::Create(
tools/clang/lib/AST/Expr.cpp 924 IntegerLiteral *
927 return new (C) IntegerLiteral(C, V, type, l);
930 IntegerLiteral *
932 return new (C) IntegerLiteral(Empty);
2316 const IntegerLiteral *Lit = dyn_cast<IntegerLiteral>(getInit(0)->IgnoreImplicit());
2316 const IntegerLiteral *Lit = dyn_cast<IntegerLiteral>(getInit(0)->IgnoreImplicit());
2456 if (IntegerLiteral *IE =
2457 dyn_cast<IntegerLiteral>(BO->getRHS()->IgnoreParens()))
3781 const IntegerLiteral *Lit = dyn_cast<IntegerLiteral>(this);
3781 const IntegerLiteral *Lit = dyn_cast<IntegerLiteral>(this);
3796 if (isa<IntegerLiteral>(this))
3985 const auto Integer1 = dyn_cast<IntegerLiteral>(Idx1);
3986 const auto Integer2 = dyn_cast<IntegerLiteral>(Idx2);
tools/clang/lib/AST/ExprConstant.cpp 9709 bool VisitIntegerLiteral(const IntegerLiteral *E) {
13421 if (const IntegerLiteral *L = dyn_cast<IntegerLiteral>(Exp)) {
13421 if (const IntegerLiteral *L = dyn_cast<IntegerLiteral>(Exp)) {
tools/clang/lib/AST/Interp/ByteCodeExprGen.cpp 129 bool ByteCodeExprGen<Emitter>::VisitIntegerLiteral(const IntegerLiteral *LE) {
tools/clang/lib/AST/Interp/ByteCodeExprGen.h 70 bool VisitIntegerLiteral(const IntegerLiteral *E);
tools/clang/lib/AST/ItaniumMangle.cpp 4259 llvm::APSInt Value(cast<IntegerLiteral>(E)->getValue());
4280 llvm::APSInt Value(cast<IntegerLiteral>(IE->getSubExpr())->getValue());
tools/clang/lib/AST/JSONNodeDumper.cpp 1386 void JSONNodeDumper::VisitIntegerLiteral(const IntegerLiteral *IL) {
tools/clang/lib/AST/StmtPrinter.cpp 1116 void StmtPrinter::VisitIntegerLiteral(IntegerLiteral *Node) {
1807 const auto *Int = cast<IntegerLiteral>(Node->getCookedLiteral());
1807 const auto *Int = cast<IntegerLiteral>(Node->getCookedLiteral());
tools/clang/lib/AST/StmtProfile.cpp 1054 void StmtProfiler::VisitIntegerLiteral(const IntegerLiteral *S) {
tools/clang/lib/AST/TextNodeDumper.cpp 766 void TextNodeDumper::VisitIntegerLiteral(const IntegerLiteral *Node) {
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp 720 const internal::VariadicDynCastAllOfMatcher<Stmt, IntegerLiteral>
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/Analysis/BodyFarm.cpp 99 IntegerLiteral *makeIntegerLiteral(uint64_t Value, QualType Ty);
208 IntegerLiteral *ASTMaker::makeIntegerLiteral(uint64_t Value, QualType Ty) {
210 return IntegerLiteral::Create(C, APValue, Ty, SourceLocation());
tools/clang/lib/Analysis/CFG.cpp 93 return isa<IntegerLiteral>(E);
925 const IntegerLiteral *IntLiteral = dyn_cast<IntegerLiteral>(LHSExpr);
925 const IntegerLiteral *IntLiteral = dyn_cast<IntegerLiteral>(LHSExpr);
929 IntLiteral = dyn_cast<IntegerLiteral>(RHSExpr);
964 const IntegerLiteral *IntLiteral = dyn_cast<IntegerLiteral>(LHSExpr);
964 const IntegerLiteral *IntLiteral = dyn_cast<IntegerLiteral>(LHSExpr);
968 IntLiteral = dyn_cast<IntegerLiteral>(RHSExpr);
981 const IntegerLiteral *IntLiteral2 = dyn_cast<IntegerLiteral>(LHSExpr2);
981 const IntegerLiteral *IntLiteral2 = dyn_cast<IntegerLiteral>(LHSExpr2);
984 IntLiteral2 = dyn_cast<IntegerLiteral>(RHSExpr2);
tools/clang/lib/Analysis/ReachableCode.cpp 42 return isa<IntegerLiteral>(Ex) || isa<StringLiteral>(Ex) ||
tools/clang/lib/Analysis/ThreadSafety.cpp 1390 else if (const auto *ILE = dyn_cast_or_null<IntegerLiteral>(BrE))
1390 else if (const auto *ILE = dyn_cast_or_null<IntegerLiteral>(BrE))
1413 } else if (const auto *ILE = dyn_cast<IntegerLiteral>(E)) {
1413 } else if (const auto *ILE = dyn_cast<IntegerLiteral>(E)) {
tools/clang/lib/Analysis/ThreadSafetyCommon.cpp 43 return cast<IntegerLiteral>(CE)->getValue().toString(10, true);
tools/clang/lib/CodeGen/Address.h 108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGExprAgg.cpp 1365 if (const IntegerLiteral *IL = dyn_cast<IntegerLiteral>(E))
1365 if (const IntegerLiteral *IL = dyn_cast<IntegerLiteral>(E))
tools/clang/lib/CodeGen/CGExprScalar.cpp 455 Value *VisitIntegerLiteral(const IntegerLiteral *E) {
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp 3469 ChunkExpr = IntegerLiteral::Create(
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp 296 IntegerLiteral::Create(C, Align,
4840 ChunkExpr = IntegerLiteral::Create(CGF.getContext(), ChunkSize,
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp 3271 IntegerLiteral IfCond(getContext(), TrueOrFalse,
tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp 773 if (!isa<IntegerLiteral>(literalE) && !isa<FloatingLiteral>(literalE))
855 if (const IntegerLiteral *IntE = dyn_cast<IntegerLiteral>(literalE))
855 if (const IntegerLiteral *IntE = dyn_cast<IntegerLiteral>(literalE))
1109 if (isa<ParenExpr>(OrigArg) || isa<IntegerLiteral>(OrigArg))
1148 if (isa<ParenExpr>(OrigArg) || isa<IntegerLiteral>(OrigArg))
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp 871 Expr *Zero = IntegerLiteral::Create(*Context,
2600 Expr *FlagExp = IntegerLiteral::Create(*Context,
2721 Expr *count = IntegerLiteral::Create(*Context,
2776 Expr *cnt = IntegerLiteral::Create(*Context,
2844 Expr *count = IntegerLiteral::Create(*Context,
2920 Expr *cnt = IntegerLiteral::Create(*Context,
5382 Expr *FlagExp = IntegerLiteral::Create(*Context, llvm::APInt(IntSize, flag),
7513 Expr *Zero = IntegerLiteral::Create(*Context,
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp 2988 IntegerLiteral *limit = IntegerLiteral::Create(*Context,
2988 IntegerLiteral *limit = IntegerLiteral::Create(*Context,
4518 Expr *FlagExp = IntegerLiteral::Create(*Context, llvm::APInt(IntSize, flag),
tools/clang/lib/Sema/SemaChecking.cpp 8384 if (const IntegerLiteral *IL = dyn_cast<IntegerLiteral>(E)) {
8384 if (const IntegerLiteral *IL = dyn_cast<IntegerLiteral>(E)) {
9270 const auto *Num = dyn_cast<IntegerLiteral>(MTE->GetTemporaryExpr());
9270 const auto *Num = dyn_cast<IntegerLiteral>(MTE->GetTemporaryExpr());
9532 return isa<IntegerLiteral>(E) && cast<IntegerLiteral>(E)->getValue() == 0;
9532 return isa<IntegerLiteral>(E) && cast<IntegerLiteral>(E)->getValue() == 0;
9779 if (isa<IntegerLiteral>(RHS))
9781 else if (isa<IntegerLiteral>(LHS))
10314 if (IntegerLiteral *I
10315 = dyn_cast<IntegerLiteral>(BO->getLHS()->IgnoreParenCasts())) {
11448 if (auto *IntLit = dyn_cast<IntegerLiteral>(E->IgnoreParenImpCasts())) {
11448 if (auto *IntLit = dyn_cast<IntegerLiteral>(E->IgnoreParenImpCasts())) {
11467 static const IntegerLiteral *getIntegerLiteral(Expr *E) {
11468 const auto *IL = dyn_cast<IntegerLiteral>(E);
11468 const auto *IL = dyn_cast<IntegerLiteral>(E);
11472 return dyn_cast<IntegerLiteral>(UO->getSubExpr());
11514 const auto *LHS = getIntegerLiteral(BO->getLHS());
11515 const auto *RHS = getIntegerLiteral(BO->getRHS());
11529 const auto *LHS = getIntegerLiteral(CO->getTrueExpr());
11530 const auto *RHS = getIntegerLiteral(CO->getFalseExpr());
13209 const Expr *SizeExpr = dyn_cast<IntegerLiteral>(CTL.getSizeExpr());
14405 const IntegerLiteral *IL = cast<IntegerLiteral>(TypeExpr);
14405 const IntegerLiteral *IL = cast<IntegerLiteral>(TypeExpr);
tools/clang/lib/Sema/SemaDecl.cpp16388 Expr * BW = IntegerLiteral::Create(Context, Zero, Context.IntTy, DeclLoc);
17183 IntegerLiteral *IL = dyn_cast<IntegerLiteral>(BO->getRHS());
17183 IntegerLiteral *IL = dyn_cast<IntegerLiteral>(BO->getRHS());
tools/clang/lib/Sema/SemaDeclAttr.cpp 694 const auto *IL = dyn_cast<IntegerLiteral>(ArgExp);
694 const auto *IL = dyn_cast<IntegerLiteral>(ArgExp);
tools/clang/lib/Sema/SemaDeclCXX.cpp12072 To, From, IntegerLiteral::Create(S.Context, Size, SizeType, Loc)
12248 IterationVar->setInit(IntegerLiteral::Create(S.Context, Zero, SizeType, Loc));
12282 IntegerLiteral::Create(S.Context, Upper, SizeType, Loc),
14490 && !isa<IntegerLiteral>(InnerCond)) {
tools/clang/lib/Sema/SemaExpr.cpp 1733 IntegerLiteral *LenArg = IntegerLiteral::Create(Context, Len, SizeType,
1733 IntegerLiteral *LenArg = IntegerLiteral::Create(Context, Len, SizeType,
3327 return IntegerLiteral::Create(Context, llvm::APInt(IntSize, Val),
3468 Lit = IntegerLiteral::Create(Context, ResultVal, CookedTy,
3715 Res = IntegerLiteral::Create(Context, ResultVal, Ty, Tok.getLocation());
11173 const auto *LHSInt = dyn_cast<IntegerLiteral>(XorLHS.get());
11173 const auto *LHSInt = dyn_cast<IntegerLiteral>(XorLHS.get());
11174 const auto *RHSInt = dyn_cast<IntegerLiteral>(XorRHS.get());
11174 const auto *RHSInt = dyn_cast<IntegerLiteral>(XorRHS.get());
11184 RHSInt = dyn_cast<IntegerLiteral>(UO->getSubExpr());
12702 if (ObjCPointerExpr && isa<IntegerLiteral>(OtherExpr->IgnoreParenCasts())) {
tools/clang/lib/Sema/SemaExprCXX.cpp 1878 ArraySize = IntegerLiteral::Create(Context, Array->getSize(),
2155 ArraySize = IntegerLiteral::Create(
2369 IntegerLiteral Size(Context, llvm::APInt::getNullValue(
tools/clang/lib/Sema/SemaExprObjC.cpp 423 if (isa<IntegerLiteral>(OrigElement) ||
tools/clang/lib/Sema/SemaInit.cpp 2881 Expr *Init = new (Context) IntegerLiteral(
2903 Expr *Init = new (Context) IntegerLiteral(
tools/clang/lib/Sema/SemaOpenMP.cpp13440 Init = IntegerLiteral::Create(Context, InitValue, IntTy, ELoc);
13466 Init = IntegerLiteral::Create(Context, InitValue, IntTy, ELoc);
tools/clang/lib/Sema/SemaOverload.cpp12552 Args[1] = IntegerLiteral::Create(Context, Zero, Context.IntTy,
12998 IntegerLiteral::Create(Context, Zero, Context.IntTy, OpLoc);
tools/clang/lib/Sema/SemaPseudoObject.cpp 518 Expr *one = IntegerLiteral::Create(S.Context, oneV, S.Context.IntTy,
tools/clang/lib/Sema/SemaStmt.cpp 1427 void VisitIntegerLiteral(IntegerLiteral *E) { }
2459 BoundExpr = IntegerLiteral::Create(
tools/clang/lib/Sema/SemaTemplate.cpp 3102 !isa<IntegerLiteral>(InnerBinOp->getRHS()))
3167 isa<IntegerLiteral>(TermAsWritten))
7103 E = IntegerLiteral::Create(Context, Arg.getAsIntegral(), T, Loc);
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp 174 Expr *Param = IntegerLiteral::Create(
tools/clang/lib/Sema/TreeTransform.h10707 ArraySize = IntegerLiteral::Create(SemaRef.Context, ConsArrayT->getSize(),
12926 IntegerLiteral *ArraySize
12927 = IntegerLiteral::Create(SemaRef.Context, *Size, SizeType,
13009 IntegerLiteral *VectorSize
13010 = IntegerLiteral::Create(SemaRef.Context, numElements, SemaRef.Context.IntTy,
tools/clang/lib/Serialization/ASTReaderStmt.cpp 591 void ASTStmtReader::VisitIntegerLiteral(IntegerLiteral *E) {
2619 S = IntegerLiteral::Create(Context, Empty);
tools/clang/lib/Serialization/ASTWriterStmt.cpp 519 void ASTStmtWriter::VisitIntegerLiteral(IntegerLiteral *E) {
tools/clang/lib/StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp 67 if (const auto *IL = dyn_cast<IntegerLiteral>(E))
67 if (const auto *IL = dyn_cast<IntegerLiteral>(E))
181 if (const auto *IL = dyn_cast<IntegerLiteral>(LenArg->IgnoreParenImpCasts())) {
181 if (const auto *IL = dyn_cast<IntegerLiteral>(LenArg->IgnoreParenImpCasts())) {
192 if ((IL = dyn_cast<IntegerLiteral>(BE->getRHS()->IgnoreParenImpCasts()))) {
tools/clang/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp 465 const IntegerLiteral *IntLit1 = cast<IntegerLiteral>(Stmt1);
465 const IntegerLiteral *IntLit1 = cast<IntegerLiteral>(Stmt1);
466 const IntegerLiteral *IntLit2 = cast<IntegerLiteral>(Stmt2);
466 const IntegerLiteral *IntLit2 = cast<IntegerLiteral>(Stmt2);
tools/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp 1266 if (IntegerLiteral *IL = dyn_cast_or_null<IntegerLiteral>(
1266 if (IntegerLiteral *IL = dyn_cast_or_null<IntegerLiteral>(
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp 73 return isa<IntegerLiteral>(E) ||
tools/clang/lib/StaticAnalyzer/Checkers/TestAfterDivZeroChecker.cpp 216 const IntegerLiteral *IntLiteral = dyn_cast<IntegerLiteral>(B->getRHS());
216 const IntegerLiteral *IntLiteral = dyn_cast<IntegerLiteral>(B->getRHS());
219 IntLiteral = dyn_cast<IntegerLiteral>(B->getLHS());
tools/clang/lib/StaticAnalyzer/Checkers/UnreachableCodeChecker.cpp 153 if (const auto *I = dyn_cast<IntegerLiteral>(S))
153 if (const auto *I = dyn_cast<IntegerLiteral>(S))
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp 2329 isa<CXXBoolLiteralExpr>(Ex) || isa<IntegerLiteral>(Ex) ||
2371 if (const auto *IL = dyn_cast<IntegerLiteral>(Ex)) {
2371 if (const auto *IL = dyn_cast<IntegerLiteral>(Ex)) {
tools/clang/lib/StaticAnalyzer/Core/LoopUnrolling.cpp 213 Matches[0].getNodeAs<IntegerLiteral>("boundNum")->getValue();
215 Matches[0].getNodeAs<IntegerLiteral>("initNum")->getValue();
tools/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp 324 return makeIntVal(cast<IntegerLiteral>(E));
tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp 453 if (auto *I = dyn_cast<IntegerLiteral>(S)) {
tools/clang/tools/extra/clang-tidy/abseil/DurationFactoryScaleCheck.cpp 43 static double GetValue(const IntegerLiteral *IntLit,
178 const auto *IntLit = llvm::dyn_cast<IntegerLiteral>(MultBinOp->getLHS());
178 const auto *IntLit = llvm::dyn_cast<IntegerLiteral>(MultBinOp->getLHS());
188 IntLit = llvm::dyn_cast<IntegerLiteral>(MultBinOp->getRHS());
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp 236 (CommentIntegerLiterals && isa<IntegerLiteral>(Arg)) ||
tools/clang/tools/extra/clang-tidy/bugprone/MisplacedWideningCastCheck.cpp 89 } else if (const auto *I = dyn_cast<IntegerLiteral>(E)) {
89 } else if (const auto *I = dyn_cast<IntegerLiteral>(E)) {
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp 77 if (const auto *LengthIL = dyn_cast<IntegerLiteral>(E))
77 if (const auto *LengthIL = dyn_cast<IntegerLiteral>(E))
279 if (Result.Nodes.getNodeAs<IntegerLiteral>(WrongLengthExprName))
309 if (const auto *LengthIL = dyn_cast<IntegerLiteral>(LengthExpr)) {
309 if (const auto *LengthIL = dyn_cast<IntegerLiteral>(LengthExpr)) {
330 if (const auto *LhsIL = dyn_cast<IntegerLiteral>(LhsExpr)) {
330 if (const auto *LhsIL = dyn_cast<IntegerLiteral>(LhsExpr)) {
339 if (const auto *RhsIL = dyn_cast<IntegerLiteral>(RhsExpr)) {
339 if (const auto *RhsIL = dyn_cast<IntegerLiteral>(RhsExpr)) {
tools/clang/tools/extra/clang-tidy/bugprone/StringConstructorCheck.cpp 135 const auto *Lit = Result.Nodes.getNodeAs<IntegerLiteral>("int");
135 const auto *Lit = Result.Nodes.getNodeAs<IntegerLiteral>("int");
tools/clang/tools/extra/clang-tidy/bugprone/StringIntegerAssignmentCheck.cpp 158 if (const auto *Literal = dyn_cast<IntegerLiteral>(Argument)) {
158 if (const auto *Literal = dyn_cast<IntegerLiteral>(Argument)) {
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousEnumUsageCheck.cpp 71 return isa<IntegerLiteral>(InitExpr->IgnoreImpCasts());
84 isa<IntegerLiteral>(InitExpr->IgnoreImpCasts());
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousMemsetUsageCheck.cpp 73 else if (const auto *NumFill =
74 Result.Nodes.getNodeAs<IntegerLiteral>("num-fill")) {
tools/clang/tools/extra/clang-tidy/bugprone/TooSmallLoopVariableCheck.cpp 127 isa<IntegerLiteral>(RHSE);
130 isa<IntegerLiteral>(LHSE);
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProTypeVarargCheck.cpp 40 const auto *IntLit =
41 dyn_cast<IntegerLiteral>(C->getArg(N)->IgnoreParenImpCasts());
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp 91 llvm::APInt LeftLit = cast<IntegerLiteral>(Left)->getValue();
92 llvm::APInt RightLit = cast<IntegerLiteral>(Right)->getValue();
tools/clang/tools/extra/clang-tidy/modernize/UseBoolLiteralsCheck.cpp 50 const auto *Literal = Result.Nodes.getNodeAs<IntegerLiteral>("literal");
50 const auto *Literal = Result.Nodes.getNodeAs<IntegerLiteral>("literal");
tools/clang/tools/extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp 120 return !cast<IntegerLiteral>(E)->getValue();
165 return cast<IntegerLiteral>(E1)->getValue() ==
166 cast<IntegerLiteral>(E2)->getValue();
tools/clang/tools/extra/clang-tidy/readability/ContainerSizeEmptyCheck.cpp 135 !llvm::isa<IntegerLiteral>(BinaryOp->getLHS()->IgnoreImpCasts());
139 if (const auto *Literal = llvm::dyn_cast<IntegerLiteral>(
139 if (const auto *Literal = llvm::dyn_cast<IntegerLiteral>(
146 llvm::dyn_cast<IntegerLiteral>(BinaryOp->getLHS()->IgnoreImpCasts())
tools/clang/tools/extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp 157 if (const auto *IntLit = dyn_cast<IntegerLiteral>(Expression)) {
157 if (const auto *IntLit = dyn_cast<IntegerLiteral>(Expression)) {
tools/clang/tools/extra/clang-tidy/readability/MagicNumbersCheck.cpp 106 checkBoundMatch<IntegerLiteral>(Result, "integer");
122 bool MagicNumbersCheck::isIgnoredValue(const IntegerLiteral *Literal) const {
156 const IntegerLiteral *Literal) const {
tools/clang/tools/extra/clang-tidy/readability/MagicNumbersCheck.h 36 bool isIgnoredValue(const IntegerLiteral *Literal) const;
45 const IntegerLiteral *Literal) 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 26 using type = clang::IntegerLiteral;
112 const auto &L = cast<typename LiteralType::type>(Literal);
211 const auto *Literal =
tools/clang/tools/extra/clang-tidy/utils/ASTUtils.cpp 46 if (isa<IntegerLiteral>(Flags)) {
tools/clang/unittests/AST/DeclMatcher.h 22 NodeType *Node = nullptr;
26 Node = const_cast<NodeType *>(Result.Nodes.getNodeAs<NodeType>(""));
32 NodeType *match(const Decl *D, const MatcherType &AMatcher) {
tools/clang/unittests/Tooling/ASTSelectionTest.cpp 107 typename std::enable_if<std::is_base_of<Stmt, T>::value, T>::type
107 typename std::enable_if<std::is_base_of<Stmt, T>::value, T>::type
109 checkNodeImpl(isa<T>(StmtNode.Node.get<Stmt>()), StmtNode, SelectionKind,
612 checkNode<IntegerLiteral>(BinOp.Children[1],
635 checkNode<IntegerLiteral>(SRE.Children[1],
tools/clang/unittests/Tooling/RecursiveASTVisitorTestPostOrderVisitor.cpp 43 bool VisitIntegerLiteral(IntegerLiteral *Lit) {
tools/clang/unittests/Tooling/RecursiveASTVisitorTests/IntegerLiteral.cpp 19 bool VisitIntegerLiteral(const IntegerLiteral *IL) {
tools/clang/unittests/Tooling/SourceCodeTest.cpp 27 bool VisitIntegerLiteral(IntegerLiteral *Expr) {
32 std::function<void(IntegerLiteral *, ASTContext *Context)> OnIntLit;
tools/lldb/source/Symbol/ClangASTContext.cpp 7887 clang::IntegerLiteral(*clang_ast, bitfield_bit_size_apint,
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>
2157 { typedef _Tp type; };