Home
last modified time | relevance | path

Searched refs:IntegerLiteral (Results 1 – 25 of 86) 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()
168 const StringRef IntegerLiteral, int DigitsPerGroup) const { in checkSeparator() argument
172 for (auto C : llvm::reverse(IntegerLiteral)) { in checkSeparator()
187 std::string IntegerLiteralSeparatorFixer::format(const StringRef IntegerLiteral, in format() argument
196 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.cpp212 const IntegerLiteral *IntLiteral = dyn_cast<IntegerLiteral>(B->getRHS()); in checkBranchCondition()
215 IntLiteral = dyn_cast<IntegerLiteral>(B->getLHS()); in checkBranchCondition()
H A DIdenticalExprChecker.cpp467 const IntegerLiteral *IntLit1 = cast<IntegerLiteral>(Stmt1); in isIdenticalStmt()
468 const IntegerLiteral *IntLit2 = cast<IntegerLiteral>(Stmt2); in isIdenticalStmt()
H A DUnreachableCodeChecker.cpp152 if (const auto *I = dyn_cast<IntegerLiteral>(S)) in checkEndAnalysis()
/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.h37 IntegerLiteral *IntegerLiteralExpr(ASTContext &C, uint64_t Val);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMIParser.cpp651 if (Token.is(MIToken::IntegerLiteral)) { in parseSectionID()
678 if (Token.is(MIToken::IntegerLiteral)) { in parseBBID()
1684 if (Token.isNot(MIToken::IntegerLiteral)) in parseRegisterTiedDefIndex()
1826 assert(Token.is(MIToken::IntegerLiteral)); in parseImmediateOperand()
1848 if (Token.is(MIToken::IntegerLiteral)) { in parseTargetImmMnemonic()
1961 if (Token.isNot(MIToken::IntegerLiteral)) in parseLowLevelType()
2458 if (Token.isNot(MIToken::IntegerLiteral)) in parseCFIOffset()
2484 if (Token.isNot(MIToken::IntegerLiteral)) in parseCFIAddressSpace()
2907 case MIToken::IntegerLiteral: in parseMachineOperand()
3045 if (Token.isNot(MIToken::IntegerLiteral)) in parseOffset()
[all …]
H A DMILexer.h166 IntegerLiteral, enumerator
239 return Kind == IntegerLiteral || Kind == MachineBasicBlock || in hasIntegerValue()
/freebsd/contrib/llvm-project/llvm/include/llvm/Demangle/
H A DMicrosoftDemangleNodes.h249 IntegerLiteral, enumerator
553 IntegerLiteralNode() : Node(NodeKind::IntegerLiteral) {} in IntegerLiteralNode()
555 : Node(NodeKind::IntegerLiteral), Value(Value), IsNegative(IsNegative) {} in IntegerLiteralNode()
H A DItaniumNodes.def92 NODE(IntegerLiteral)
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DLoopUnrolling.cpp265 Matches[0].getNodeAs<IntegerLiteral>("boundNum")->getValue(); in shouldCompletelyUnroll()
267 Matches[0].getNodeAs<IntegerLiteral>("initNum")->getValue(); in shouldCompletelyUnroll()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedCallArgsChecker.cpp106 if (isa<IntegerLiteral>(ArgOrigin.first)) { in visitCallExpr()
/freebsd/contrib/llvm-project/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp774 if (!isa<IntegerLiteral>(literalE) && !isa<FloatingLiteral>(literalE)) in rewriteToNumberLiteral()
856 if (const IntegerLiteral *IntE = dyn_cast<IntegerLiteral>(literalE)) in rewriteToNumberLiteral()
1113 if (isa<ParenExpr>(OrigArg) || isa<IntegerLiteral>(OrigArg)) in rewriteToNumericBoxedExpression()
1152 if (isa<ParenExpr>(OrigArg) || isa<IntegerLiteral>(OrigArg)) in doRewriteToUTF8StringBoxedExpressionHelper()
/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()
H A DCloneDetection.cpp215 SKIP(IntegerLiteral)
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExpr.cpp936 IntegerLiteral::IntegerLiteral(const ASTContext &C, const llvm::APInt &V, in IntegerLiteral() function in IntegerLiteral
946 IntegerLiteral *
949 return new (C) IntegerLiteral(C, V, type, l); in Create()
952 IntegerLiteral *
954 return new (C) IntegerLiteral(Empty); in Create()
2437 const IntegerLiteral *Lit = dyn_cast<IntegerLiteral>(getInit(0)->IgnoreImplicit()); in isIdiomaticZeroInitializer()
2637 if (IntegerLiteral *IE = in isUnusedResultAWarning()
3968 const IntegerLiteral *Lit = dyn_cast<IntegerLiteral>(this); in isNullPointerConstant()
3983 if (isa<IntegerLiteral>(this)) in isNullPointerConstant()
4170 const auto Integer1 = dyn_cast<IntegerLiteral>(Idx1); in isSameComparisonOperand()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DHLSLExternalSemaSource.cpp144 return IntegerLiteral::Create( in emitResourceClassExpr()
435 IntegerLiteral::Create(AST, llvm::APInt(AST.getIntWidth(AST.IntTy), 4), in defineHLSLVectorAlias()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmtDataCollectors.td80 class IntegerLiteral {
H A DTextNodeDumper.h268 void VisitIntegerLiteral(const IntegerLiteral *Node);
H A DJSONNodeDumper.h321 void VisitIntegerLiteral(const IntegerLiteral *IL);
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DModuleMap.cpp1467 IntegerLiteral, enumerator
1499 return Kind == IntegerLiteral ? IntegerValue : 0; in getInteger()
1503 return Kind == IntegerLiteral ? StringRef() in getString()
1717 Tok.Kind = MMToken::IntegerLiteral; in consumeToken()
2461 if (!Tok.is(MMToken::IntegerLiteral)) { in parseHeaderDecl()
2474 if (!Tok.is(MMToken::IntegerLiteral)) { in parseHeaderDecl()
3100 case MMToken::IntegerLiteral: in parseModuleMapFile()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSValBuilder.h286 nonloc::ConcreteInt makeIntVal(const IntegerLiteral* integer) { in makeIntVal()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DByteCodeExprGen.h62 bool VisitIntegerLiteral(const IntegerLiteral *E);

1234