Home
last modified time | relevance | path

Searched refs:IntegerLiteral (Results 1 – 25 of 85) 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 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()
874 if (Token.isNot(MIToken::IntegerLiteral) && in parseBasicBlockLiveins()
906 if (Token.isNot(MIToken::IntegerLiteral) && in parseBasicBlockSuccessors()
1111 if (Token.isNot(MIToken::IntegerLiteral)) in parse()
1125 if (Token.isNot(MIToken::IntegerLiteral)) in parse()
1291 if (Token.isNot(MIToken::IntegerLiteral) || Token.integerValue().isSigned()) in parseMachineMetadata()
1378 if (Token.isNot(MIToken::IntegerLiteral) || Token.integerValue().isSigned()) in parseMetadata()
1690 if (Token.isNot(MIToken::IntegerLiteral)) in parseRegisterTiedDefIndex()
1832 assert(Token.is(MIToken::IntegerLiteral)); in parseImmediateOperand()
[all …]
H A DMILexer.h170 IntegerLiteral, enumerator
243 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/Parse/
H A DParseHLSL.cpp271 ArgExprs.push_back(IntegerLiteral::Create( in ParseHLSLAnnotations()
273 ArgExprs.push_back(IntegerLiteral::Create( in ParseHLSLAnnotations()
H A DParseInit.cpp439 Res = IntegerLiteral::Create(Context, 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()
1114 if (isa<ParenExpr>(OrigArg) || isa<IntegerLiteral>(OrigArg)) in rewriteToNumericBoxedExpression()
1153 if (isa<ParenExpr>(OrigArg) || isa<IntegerLiteral>(OrigArg)) in doRewriteToUTF8StringBoxedExpressionHelper()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExpr.cpp966 IntegerLiteral::IntegerLiteral(const ASTContext &C, const llvm::APInt &V, in IntegerLiteral() function in IntegerLiteral
976 IntegerLiteral *
977 IntegerLiteral::Create(const ASTContext &C, const llvm::APInt &V, in Create()
979 return new (C) IntegerLiteral(C, V, type, l); in Create()
982 IntegerLiteral *
983 IntegerLiteral::Create(const ASTContext &C, EmptyShell Empty) { in Create()
984 return new (C) IntegerLiteral(Empty); in Create()
2383 FakeChildNode = IntegerLiteral::Create( in EmbedExpr()
2473 const IntegerLiteral *Lit = dyn_cast<IntegerLiteral>(getInit(0)->IgnoreImplicit()); in isIdiomaticZeroInitializer()
2673 if (IntegerLiteral *IE = in isUnusedResultAWarning()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedLocalVarsChecker.cpp211 if (isa<IntegerLiteral>(InitArgOrigin)) in visitVarDecl()
H A DUncountedCallArgsChecker.cpp137 if (isa<IntegerLiteral>(ArgOrigin)) { in isPtrOriginSafe()
H A DPtrTypesSemantics.cpp539 bool VisitIntegerLiteral(const IntegerLiteral *E) { return true; } in VisitIntegerLiteral()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmtDataCollectors.td80 class IntegerLiteral {
H A DExpr.h1499 class IntegerLiteral : public Expr, public APIntStorage {
1503 explicit IntegerLiteral(EmptyShell Empty) in IntegerLiteral() function
1509 IntegerLiteral(const ASTContext &C, const llvm::APInt &V, QualType type,
1516 static IntegerLiteral *Create(const ASTContext &C, const llvm::APInt &V,
1519 static IntegerLiteral *Create(const ASTContext &C, EmptyShell Empty);
4859 IntegerLiteral *FakeChildNode = nullptr;
4890 std::conditional_t<Const, const IntegerLiteral *,
4891 IntegerLiteral *>> {
4908 IntegerLiteral *N = EExpr->FakeChildNode;
4972 if (!std::invoke(std::forward<Call>(C), const_cast<IntegerLiteral *>(It), in doForEachDataElement()
H A DTextNodeDumper.h277 void VisitIntegerLiteral(const IntegerLiteral *Node);
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DModuleMap.cpp1472 IntegerLiteral, enumerator
1504 return Kind == IntegerLiteral ? IntegerValue : 0; in getInteger()
1508 return Kind == IntegerLiteral ? StringRef() in getString()
1721 Tok.Kind = MMToken::IntegerLiteral; in consumeToken()
2468 if (!Tok.is(MMToken::IntegerLiteral)) { in parseHeaderDecl()
2481 if (!Tok.is(MMToken::IntegerLiteral)) { in parseHeaderDecl()
3107 case MMToken::IntegerLiteral: in parseModuleMapFile()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSValBuilder.h290 nonloc::ConcreteInt makeIntVal(const IntegerLiteral* integer) { in makeIntVal()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DCloneDetection.cpp215 SKIP(IntegerLiteral)

1234