Home
last modified time | relevance | path

Searched refs:IntegerLiteral (Results 1 – 25 of 95) sorted by relevance

1234

/freebsd/contrib/llvm-project/clang/lib/Format/
H A DIntegerLiteralSeparatorFixer.cpp22 static Base getBase(const StringRef IntegerLiteral) { in getBase() argument
23 assert(IntegerLiteral.size() > 1); in getBase()
25 if (IntegerLiteral[0] > '0') { in getBase()
26 assert(IntegerLiteral[0] <= '9'); in getBase()
30 assert(IntegerLiteral[0] == '0'); in getBase()
32 switch (IntegerLiteral[1]) { in getBase()
171 const StringRef IntegerLiteral, int DigitsPerGroup) const { in checkSeparator() argument
175 for (auto C : llvm::reverse(IntegerLiteral)) { in checkSeparator()
190 std::string IntegerLiteralSeparatorFixer::format(const StringRef IntegerLiteral, in format() argument
199 for (auto C : IntegerLiteral) in format()
[all …]
H A DIntegerLiteralSeparatorFixer.h29 bool checkSeparator(const StringRef IntegerLiteral, int DigitsPerGroup) const;
30 std::string format(const StringRef IntegerLiteral, int DigitsPerGroup,
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCStringSyntaxChecker.cpp67 if (const auto *IL = dyn_cast<IntegerLiteral>(E)) in isOne()
181 if (const auto *IL = dyn_cast<IntegerLiteral>(LenArg->IgnoreParenImpCasts())) { in containsBadStrlcpyStrlcatPattern()
192 if ((IL = dyn_cast<IntegerLiteral>(BE->getRHS()->IgnoreParenImpCasts()))) { in containsBadStrlcpyStrlcatPattern()
H A DTestAfterDivZeroChecker.cpp209 const IntegerLiteral *IntLiteral = dyn_cast<IntegerLiteral>(B->getRHS()); in checkBranchCondition()
212 IntLiteral = dyn_cast<IntegerLiteral>(B->getLHS()); in checkBranchCondition()
H A DUnreachableCodeChecker.cpp152 if (const auto *I = dyn_cast<IntegerLiteral>(S)) in checkEndAnalysis()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMIParser.cpp659 if (Token.is(MIToken::IntegerLiteral)) { in parseSectionID()
686 if (Token.is(MIToken::IntegerLiteral)) { in parseBBID()
875 if (Token.isNot(MIToken::IntegerLiteral) && in parseBasicBlockLiveins()
907 if (Token.isNot(MIToken::IntegerLiteral) && in parseBasicBlockSuccessors()
1112 if (Token.isNot(MIToken::IntegerLiteral)) in parse()
1126 if (Token.isNot(MIToken::IntegerLiteral)) in parse()
1292 if (Token.isNot(MIToken::IntegerLiteral) || Token.integerValue().isSigned()) in parseMachineMetadata()
1380 if (Token.isNot(MIToken::IntegerLiteral) || Token.integerValue().isSigned()) in parseMetadata()
1698 if (Token.isNot(MIToken::IntegerLiteral)) in parseRegisterTiedDefIndex()
1841 assert(Token.is(MIToken::IntegerLiteral)); in parseImmediateOperand()
[all …]
H A DMILexer.h172 IntegerLiteral, enumerator
245 return Kind == IntegerLiteral || Kind == MachineBasicBlock || in hasIntegerValue()
/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DInterpreterUtils.cpp17 IntegerLiteral *IntegerLiteralExpr(ASTContext &C, uint64_t Val) { in IntegerLiteralExpr()
18 return IntegerLiteral::Create(C, llvm::APSInt::getUnsigned(Val), in IntegerLiteralExpr()
H A DInterpreterUtils.h36 IntegerLiteral *IntegerLiteralExpr(ASTContext &C, uint64_t Val);
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DModuleMapFile.cpp53 IntegerLiteral, enumerator
85 return Kind == IntegerLiteral ? IntegerValue : 0; in getInteger()
89 return Kind == IntegerLiteral ? StringRef() in getString()
217 case MMToken::IntegerLiteral: in parseTopLevelDecls()
737 if (!Tok.is(MMToken::IntegerLiteral)) { in parseHeaderDecl()
751 if (!Tok.is(MMToken::IntegerLiteral)) { in parseHeaderDecl()
944 Tok.Kind = MMToken::IntegerLiteral; in consumeToken()
/freebsd/contrib/llvm-project/llvm/include/llvm/Demangle/
H A DMicrosoftDemangleNodes.h267 IntegerLiteral, enumerator
657 IntegerLiteralNode() : Node(NodeKind::IntegerLiteral) {} in IntegerLiteralNode()
659 : Node(NodeKind::IntegerLiteral), Value(Value), IsNegative(IsNegative) {} in IntegerLiteralNode()
664 return N->kind() == NodeKind::IntegerLiteral; in classof()
H A DItaniumNodes.def92 NODE(IntegerLiteral)
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseHLSL.cpp276 ArgExprs.push_back(IntegerLiteral::Create( in ParseHLSLAnnotations()
278 ArgExprs.push_back(IntegerLiteral::Create( in ParseHLSLAnnotations()
H A DParseInit.cpp391 Res = IntegerLiteral::Create( in createEmbedExpr()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DLoopUnrolling.cpp282 Matches[0].getNodeAs<IntegerLiteral>("boundNum")->getValue(); in shouldCompletelyUnroll()
284 Matches[0].getNodeAs<IntegerLiteral>("initNum")->getValue(); in shouldCompletelyUnroll()
/freebsd/contrib/llvm-project/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp770 if (!isa<IntegerLiteral>(literalE) && !isa<FloatingLiteral>(literalE)) in rewriteToNumberLiteral()
852 if (const IntegerLiteral *IntE = dyn_cast<IntegerLiteral>(literalE)) in rewriteToNumberLiteral()
1116 if (isa<ParenExpr>(OrigArg) || isa<IntegerLiteral>(OrigArg)) in rewriteToNumericBoxedExpression()
1155 if (isa<ParenExpr>(OrigArg) || isa<IntegerLiteral>(OrigArg)) in doRewriteToUTF8StringBoxedExpressionHelper()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DHLSLExternalSemaSource.cpp198 IntegerLiteral *rhs = IntegerLiteral::Create( in constructStructuredBufferConstraintExpr()
H A DSemaHLSL.cpp3656 IntegerLiteral *RangeSize = IntegerLiteral::Create( in initGlobalResourceDecl()
3658 IntegerLiteral *Index = IntegerLiteral::Create( in initGlobalResourceDecl()
3660 IntegerLiteral *Space = in initGlobalResourceDecl()
3661 IntegerLiteral::Create(AST, llvm::APInt(UIntTySize, SpaceNo), in initGlobalResourceDecl()
3671 IntegerLiteral *RegSlot = IntegerLiteral::Create( in initGlobalResourceDecl()
3679 IntegerLiteral *OrderId = IntegerLiteral::Create( in initGlobalResourceDecl()
3839 auto *Idx = IntegerLiteral::Create(Ctx, llvm::APInt(SizeTySize, I), in buildInitializerListImpl()
3857 auto *Idx = IntegerLiteral::Create(Ctx, llvm::APInt(SizeTySize, I), in buildInitializerListImpl()
4054 Expr *IdExpr = IntegerLiteral::Create(Context, IDVal, Context.IntTy, in handleInitialization()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DBodyFarm.cpp104 IntegerLiteral *makeIntegerLiteral(uint64_t Value, QualType Ty);
220 IntegerLiteral *ASTMaker::makeIntegerLiteral(uint64_t Value, QualType Ty) { in makeIntegerLiteral()
222 return IntegerLiteral::Create(C, APValue, Ty, SourceLocation()); in makeIntegerLiteral()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExpr.cpp963 IntegerLiteral::IntegerLiteral(const ASTContext &C, const llvm::APInt &V, in IntegerLiteral() function in IntegerLiteral
973 IntegerLiteral *
974 IntegerLiteral::Create(const ASTContext &C, const llvm::APInt &V, in Create()
976 return new (C) IntegerLiteral(C, V, type, l); in Create()
979 IntegerLiteral *
980 IntegerLiteral::Create(const ASTContext &C, EmptyShell Empty) { in Create()
981 return new (C) IntegerLiteral(Empty); in Create()
2400 FakeChildNode = IntegerLiteral::Create( in EmbedExpr()
2490 const IntegerLiteral *Lit = dyn_cast<IntegerLiteral>(getInit(0)->IgnoreImplicit()); in isIdiomaticZeroInitializer()
2690 if (IntegerLiteral *IE = in isUnusedResultAWarning()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmtDataCollectors.td79 class IntegerLiteral {
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DForwardDeclChecker.cpp275 if (isa<CXXNullPtrLiteralExpr>(ArgExpr) || isa<IntegerLiteral>(ArgExpr) || in visitCallArg()
H A DRawPtrRefLocalVarsChecker.cpp301 if (isa<IntegerLiteral>(InitArgOrigin)) in visitVarDecl()
H A DRawPtrRefCallArgsChecker.cpp224 if (isa<IntegerLiteral>(ArgOrigin)) { in isPtrOriginSafe()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSValBuilder.h277 nonloc::ConcreteInt makeIntVal(const IntegerLiteral* integer) { in makeIntVal()

1234