|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
tools/clang/include/clang/AST/Expr.h 2678 assert(Arg < getNumArgs() && "Arg access out of range!");
2682 assert(Arg < getNumArgs() && "Arg access out of range!");
2688 assert(Arg < getNumArgs() && "Arg access out of range!");
2699 assert((NewNumArgs <= getNumArgs()) &&
2722 arg_iterator arg_end() { return arg_begin() + getNumArgs(); }
2727 const_arg_iterator arg_end() const { return arg_begin() + getNumArgs(); }
2735 PREARGS_START + getNumPreArgs() + getNumArgs());
2740 unsigned getNumCommas() const { return getNumArgs() ? getNumArgs() - 1 : 0; }
2740 unsigned getNumCommas() const { return getNumArgs() ? getNumArgs() - 1 : 0; }
2776 return getNumArgs() == 1 && FD && FD->isInStdNamespace() &&
2788 getNumPreArgs() + getNumArgs());
2794 getNumPreArgs() + getNumArgs());
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 3690 return Node.getNumArgs() == N;
3706 return (N < Node.getNumArgs() &&
4020 for (; ArgIndex < Node.getNumArgs(); ++ArgIndex) {
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h 516 unsigned getNumArgs() const override { return getOriginExpr()->getNumArgs(); }
551 unsigned getNumArgs() const override { return getOriginExpr()->getNumArgs(); }
692 return CE->getNumArgs();
734 return getOriginExpr()->getNumArgs() - 1;
tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp 433 for (unsigned e = callE->getNumArgs(); i != e; ++i) {
438 if (i < callE->getNumArgs() && i < FD->getNumParams()) {
tools/clang/lib/AST/ASTImporter.cpp 7156 SmallVector<Expr *, 4> ToArgs(E->getNumArgs());
7485 unsigned NumArgs = E->getNumArgs();
tools/clang/lib/AST/Expr.cpp 1533 if (begin.isInvalid() && getNumArgs() > 0 && getArg(0))
1542 if (end.isInvalid() && getNumArgs() > 0 && getArg(getNumArgs() - 1))
1542 if (end.isInvalid() && getNumArgs() > 0 && getArg(getNumArgs() - 1))
1543 end = getArg(getNumArgs() - 1)->getEndLoc();
2555 if (unsigned NumArgs = CE->getNumArgs())
tools/clang/lib/AST/ExprCXX.cpp 50 if (getNumArgs() != 2)
663 if (getNumArgs() == 1)
675 } else if (getNumArgs() == 1) {
677 } else if (getNumArgs() == 2) {
960 if (getNumArgs() == 0)
962 if (getNumArgs() == 2)
965 assert(getNumArgs() == 1 && "unexpected #args in literal operator call");
tools/clang/lib/AST/ExprConstant.cpp 5986 for (unsigned I = 1, N = E->getNumArgs(); I != N; ++I) {
6103 for (unsigned I = 1, N = E->getNumArgs(); I != N; ++I)
6848 auto Args = llvm::makeArrayRef(E->getArgs(), E->getNumArgs());
7708 if (Call->getNumArgs() <= SizeArgNo)
8154 if (E->getNumArgs() > 2) {
10092 if (E->getNumArgs() == 0)
tools/clang/lib/AST/ItaniumMangle.cpp 3779 unsigned CallArity = CE->getNumArgs();
4166 unsigned NumArgs = CE->getNumArgs();
tools/clang/lib/AST/OSLog.cpp 182 ArrayRef<const Expr *> Args(E->getArgs(), E->getArgs() + E->getNumArgs());
188 assert(E->getNumArgs() >= 1 &&
194 assert(E->getNumArgs() >= 2 &&
tools/clang/lib/AST/StmtPrinter.cpp 1335 for (unsigned i = 0, e = Call->getNumArgs(); i != e; ++i) {
1645 if (Node->getNumArgs() == 1) {
1657 for (unsigned ArgIdx = 1; ArgIdx < Node->getNumArgs(); ++ArgIdx) {
1669 } else if (Node->getNumArgs() == 1) {
1672 } else if (Node->getNumArgs() == 2) {
tools/clang/lib/AST/StmtProfile.cpp 1343 if (S->getNumArgs() == 1) {
1352 if (S->getNumArgs() == 1) {
1361 if (S->getNumArgs() == 1) {
1382 if (S->getNumArgs() == 1) {
1491 UnaryOp = S->getNumArgs() == 1? UO_PreInc
1496 UnaryOp = S->getNumArgs() == 1? UO_PreDec
1543 for (unsigned I = 0, N = S->getNumArgs(); I != N; ++I)
tools/clang/lib/Analysis/CFG.cpp 727 for (unsigned i = 0, e = E->getNumArgs(); i != e; ++i) {
tools/clang/lib/Analysis/Consumed.cpp 618 for (unsigned Index = Offset; Index < Call->getNumArgs(); ++Index) {
tools/clang/lib/Analysis/RetainSummaryManager.cpp 737 if (CE->getNumArgs() == 1 &&
tools/clang/lib/Analysis/ThreadSafety.cpp 2066 if (!(OEop == OO_Star && OE->getNumArgs() > 1)) {
tools/clang/lib/Analysis/ThreadSafetyCommon.cpp 113 Ctx.NumArgs = CE->getNumArgs();
116 Ctx.NumArgs = CE->getNumArgs();
385 LRCallCtx.NumArgs = CE->getNumArgs();
406 ME->getNumArgs() == 0) {
tools/clang/lib/CodeGen/CGBuiltin.cpp 1225 assert(E.getNumArgs() >= 2 &&
2046 (E->getNumArgs() > 2) ? EmitScalarExpr(E->getArg(2)) : nullptr;
2148 RW = (E->getNumArgs() > 1) ? EmitScalarExpr(E->getArg(1)) :
2150 Locality = (E->getNumArgs() > 2) ? EmitScalarExpr(E->getArg(2)) :
3577 if (2U == E->getNumArgs()) {
3590 assert(4 == E->getNumArgs() &&
3744 unsigned NumArgs = E->getNumArgs();
4159 for (unsigned i = 0, e = E->getNumArgs(); i != e; ++i) {
5242 const Expr *Arg = E->getArg(E->getNumArgs() - 1);
6069 assert(E->getNumArgs() == 2 && "__clear_cache takes 2 arguments");
6355 unsigned NumArgs = E->getNumArgs() - (HasExtraArg ? 1 : 0);
6625 const Expr *Arg = E->getArg(E->getNumArgs()-1);
6928 assert(E->getNumArgs() >= 3);
6932 const Expr *Arg = E->getArg(E->getNumArgs() - 1);
7141 assert(E->getNumArgs() == 2 && "__clear_cache takes 2 arguments");
7466 for (unsigned i = 0, e = E->getNumArgs() - 1; i != e; i++) {
7485 Ops.push_back(EmitScalarExpr(E->getArg(E->getNumArgs() - 1)));
7492 const Expr *Arg = E->getArg(E->getNumArgs()-1);
10173 for (unsigned i = 0, e = E->getNumArgs(); i != e; i++) {
12383 for (unsigned i = 0, e = E->getNumArgs(); i != e; i++)
12872 for (unsigned I = 0; I != E->getNumArgs(); ++I)
13021 unsigned NumArgs = E->getNumArgs() - 1;
tools/clang/lib/CodeGen/CGGPUBuiltin.cpp 73 assert(E->getNumArgs() >= 1); // printf always has at least one arg.
tools/clang/lib/Index/IndexBody.cpp 108 if (CXXOp->getNumArgs() > 0 && CXXOp->getArg(0)->IgnoreParenCasts() == E) {
tools/clang/lib/Sema/SemaChecking.cpp 111 unsigned argCount = call->getNumArgs();
158 if (TheCall->getNumArgs() < 1) {
160 << 0 << 1 << TheCall->getNumArgs()
346 SizeIndex = TheCall->getNumArgs() - 2;
347 ObjectIndex = TheCall->getNumArgs() - 1;
372 SizeIndex = TheCall->getNumArgs() - 1;
384 SizeIndex = TheCall->getNumArgs() - 1;
587 unsigned TotalNumArgs = TheCall->getNumArgs();
629 unsigned NumArgs = TheCall->getNumArgs();
830 switch (Call->getNumArgs()) {
955 if (Call->getNumArgs() != 1) {
1096 assert(TheCall->getNumArgs() == 1 &&
1667 unsigned ImmArg = TheCall->getNumArgs()-1;
4382 unsigned NumArgs = TheCall->getNumArgs();
4463 llvm::makeArrayRef(TheCall->getArgs(), TheCall->getNumArgs()),
4476 llvm::makeArrayRef(TheCall->getArgs(), TheCall->getNumArgs()),
4517 MultiExprArg Args{TheCall->getArgs(), TheCall->getNumArgs()};
5031 if (TheCall->getNumArgs() < 1) {
5033 << 0 << 1 << TheCall->getNumArgs() << Callee->getSourceRange();
5307 if (TheCall->getNumArgs() < 1+NumFixed) {
5309 << 0 << 1 + NumFixed << TheCall->getNumArgs()
5597 if (TheCall->getNumArgs() > 2) {
5600 << 0 /*function call*/ << 2 << TheCall->getNumArgs()
5607 if (TheCall->getNumArgs() < 2) {
5610 << 0 /*function call*/ << 2 << TheCall->getNumArgs();
5676 if (Call->getNumArgs() < 3)
5679 << 0 /*function call*/ << 3 << Call->getNumArgs();
5721 if (TheCall->getNumArgs() < 2)
5723 << 0 << 2 << TheCall->getNumArgs() /*function call*/;
5724 if (TheCall->getNumArgs() > 2)
5727 << 0 /*function call*/ << 2 << TheCall->getNumArgs()
5766 if (TheCall->getNumArgs() < NumArgs)
5768 << 0 << NumArgs << TheCall->getNumArgs() /*function call*/;
5769 if (TheCall->getNumArgs() > NumArgs)
5772 << 0 /*function call*/ << NumArgs << TheCall->getNumArgs()
5818 if (TheCall->getNumArgs() < ExpectedNumArgs)
5821 << 0 /*function call*/ << ExpectedNumArgs << TheCall->getNumArgs()
5824 if (TheCall->getNumArgs() > ExpectedNumArgs)
5827 << 0 /*function call*/ << ExpectedNumArgs << TheCall->getNumArgs()
5871 if (TheCall->getNumArgs() < 2)
5874 << 0 /*function call*/ << 2 << TheCall->getNumArgs()
5896 unsigned numResElements = TheCall->getNumArgs() - 2;
5901 if (TheCall->getNumArgs() == 2) {
5922 for (unsigned i = 2; i < TheCall->getNumArgs(); i++) {
5945 for (unsigned i = 0, e = TheCall->getNumArgs(); i != e; i++) {
5989 unsigned NumArgs = TheCall->getNumArgs();
6057 unsigned NumArgs = TheCall->getNumArgs();
6101 unsigned NumArgs = TheCall->getNumArgs();
6159 ArrayRef<const Expr *> Args(TheCall->getArgs(), TheCall->getNumArgs());
6583 if (TheCall->getNumArgs() != 2)
9167 if (Call->getNumArgs() != 1)
9254 if (Call->getNumArgs() != 2) return;
9586 if (Call->getNumArgs() < ExpectedNumArgs)
9809 unsigned NumArgs = Call->getNumArgs();
9828 SizeCall->getNumArgs() == 1)
9896 if (CE->getNumArgs() < 3)
11279 unsigned NumArgs = TheCall->getNumArgs();
11704 if (unsigned NumArgs = CEx->getNumArgs()) {
13614 if (CE->getNumArgs() == 1) {
14143 if (!CE || CE->getNumArgs() != 1)
tools/clang/lib/Sema/SemaExpr.cpp 5082 assert((Call->getNumArgs() == NumParams) &&
5896 Args = llvm::makeArrayRef(TheCall->getArgs(), TheCall->getNumArgs());
7657 if (Call->getNumArgs() != 2)
17573 ArgTypes.reserve(E->getNumArgs());
17574 for (unsigned i = 0, e = E->getNumArgs(); i != e; ++i) {
tools/clang/lib/Sema/SemaExprCXX.cpp 3554 for (unsigned i = 0; i != TheCall->getNumArgs(); ++i) {
tools/clang/lib/Sema/SemaInit.cpp 6852 Args = llvm::makeArrayRef(CE->getArgs(), CE->getNumArgs());
tools/clang/lib/Sema/SemaOpenMP.cpp 5781 if (CE->getNumArgs() == 2) {
5834 if ((IsAdd || CE->getOperator() == OO_Minus) && CE->getNumArgs() == 2) {
tools/clang/lib/Sema/TreeTransform.h 9658 if (getDerived().TransformExprs(E->getArgs(), E->getNumArgs(), true, Args,
10240 assert(E->getNumArgs() >= 1 && "Object call is missing arguments");
10253 if (getDerived().TransformExprs(E->getArgs() + 1, E->getNumArgs() - 1, true,
10290 if (E->getNumArgs() == 2) {
10299 (E->getNumArgs() != 2 || Second.get() == E->getArg(1)))
10347 if (getDerived().TransformExprs(E->getArgs(), E->getNumArgs(), true, Args,
tools/clang/lib/Serialization/ASTReaderStmt.cpp 774 assert((NumArgs == E->getNumArgs()) && "Wrong NumArgs!");
tools/clang/lib/Serialization/ASTWriterStmt.cpp 682 Record.push_back(E->getNumArgs());
tools/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp 440 CE->getNumArgs() != 3)
tools/clang/lib/StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp 123 if (CE->getNumArgs() != 3)
154 if (CE->getNumArgs() != 3)
tools/clang/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp 590 unsigned numArgs = CE->getNumArgs();
tools/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp 105 if (CE->getNumArgs() == 0)
198 if (CE->getNumArgs() == 0) {
210 if (CE->getNumArgs() == 0) {
225 if (CE->getNumArgs() == 0) {
249 if (CE->getNumArgs() == 0)
316 if (CE->getNumArgs() < 2) {
392 if (CE->getNumArgs() == 0) {
tools/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp 514 if (CE->getNumArgs() < (ArgNum + 1))
591 if (ArgNum >= CE->getNumArgs())
601 for (unsigned i = VariadicIndex; i < CE->getNumArgs(); ++i) {
621 if (ArgNum >= CE->getNumArgs())
634 for (unsigned i = VariadicIndex; i < CE->getNumArgs(); ++i) {
708 if ((Format->getType()->getName() == "printf") && CE->getNumArgs() > ArgNum)
779 if (ArgNum == InvalidArgIndex || CE->getNumArgs() < (ArgNum + 1))
820 return ArgNum != InvalidArgIndex && CE->getNumArgs() > ArgNum &&
832 if (ArgNum >= CE->getNumArgs())
tools/clang/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp 266 if (CE->getNumArgs() <= paramIdx)
302 if (CE->getNumArgs() <= paramIdx)
tools/clang/lib/StaticAnalyzer/Checkers/MacOSXAPIChecker.cpp 66 if (CE->getNumArgs() < 1)
tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp 1009 if (CE->getNumArgs() < 2)
1012 const Expr *FlagsEx = CE->getArg(CE->getNumArgs() - 1);
1073 switch (CE->getNumArgs()) {
1093 if (CE->getNumArgs() < 1)
1102 if (CE->getNumArgs() < 1)
1134 if (CE->getNumArgs() < 1)
1171 if (CE->getNumArgs() < 1)
1178 if (CE->getNumArgs() < 2)
1186 if (CE->getNumArgs() < 2)
1200 if (CE->getNumArgs() < 3)
1607 if (CE->getNumArgs() < (Num + 1))
2400 if (SuffixWithN && CE->getNumArgs() < 3)
2402 else if (CE->getNumArgs() < 2)
2502 if (CE->getNumArgs() < 2)
2809 if (CE->getNumArgs() == 0)
tools/clang/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp 324 if (TheCall->getNumArgs() == 1)
tools/clang/lib/StaticAnalyzer/Checkers/ObjCContainersASTChecker.cpp 105 if (CE->getNumArgs() != 4)
112 if (CE->getNumArgs() != 6)
tools/clang/lib/StaticAnalyzer/Checkers/ObjCContainersChecker.cpp 89 if (Name.empty() || CE->getNumArgs() < 1)
94 if (CE->getNumArgs() < 3)
112 if (Name.empty() || CE->getNumArgs() < 2)
tools/clang/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp 115 if (CE->getNumArgs() != 1 && CE->getNumArgs() != 2)
115 if (CE->getNumArgs() != 1 && CE->getNumArgs() != 2)
tools/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp 406 if (CE->getNumArgs() != ArgTypes.size())
tools/clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp 183 if (CE->getNumArgs() < MinArgCount) {
187 } else if (CE->getNumArgs() == MaxArgCount) {
202 } else if (CE->getNumArgs() > MaxArgCount) {
256 if (CE->getNumArgs() < MaxArgCount) {
279 if (CE->getNumArgs() < 1)
369 if (CE->getNumArgs() != numArgs)
394 unsigned int nArgs = CE->getNumArgs();
tools/clang/lib/Tooling/Transformer/RangeSelector.cpp 103 E.getNumArgs() == 0 ? E.getRParenLoc() : E.getArg(0)->getBeginLoc();
tools/clang/lib/Tooling/Transformer/SourceCodeBuilders.cpp 56 return Op->getNumArgs() == 2 && Op->getOperator() != OO_PlusPlus &&
tools/clang/tools/extra/clang-tidy/abseil/StrCatAppendCheck.cpp 80 if (Call->getNumArgs() == 1) {
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp 337 llvm::makeArrayRef(Call->getArgs(), Call->getNumArgs()));
tools/clang/tools/extra/clang-tidy/bugprone/SwappedArgumentsCheck.cpp 54 for (unsigned I = 1, E = Call->getNumArgs(); I < E; ++I) {
tools/clang/tools/extra/clang-tidy/cert/ProperlySeededRandomGeneratorCheck.cpp 96 if (Func->getNumArgs() == 0 || Func->getArg(0)->isDefaultArgument()) {
tools/clang/tools/extra/clang-tidy/cert/StrToNumCheck.cpp 201 if (Call->getNumArgs() < Idx)
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProTypeVarargCheck.cpp 37 if (C->getNumArgs() != N + 1)
tools/clang/tools/extra/clang-tidy/google/ExplicitMakePairCheck.cpp 51 if (Call->getNumArgs() != 2)
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp 308 return Node.getNumArgs() == 2 &&
tools/clang/tools/extra/clang-tidy/misc/UnusedParametersCheck.cpp 70 Index + 1 < Call->getNumArgs() ? Call->getArg(Index + 1) : nullptr));
166 if (ParamIndex < Call->getNumArgs()) // See PR38055 for example.
tools/clang/tools/extra/clang-tidy/modernize/AvoidBindCheck.cpp 52 for (size_t I = 1, ArgCount = C->getNumArgs(); I < ArgCount; ++I) {
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp 309 if (!TheCall || TheCall->getNumArgs() != 0)
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.cpp 224 return OpCall->getOperator() == OO_Star && OpCall->getNumArgs() == 1
315 return OpCall->getOperator() == OO_Star && OpCall->getNumArgs() == 1 &&
395 assert(OpCall->getNumArgs() == 2);
407 MDecl->getNameAsString() == "at" && MemCall->getNumArgs() == 1) {
554 assert(Call->getNumArgs() == 1 &&
609 if (Ident && Ident->isStr("at") && MemberCall->getNumArgs() == 1) {
654 if (OpCall->getNumArgs() != 2)
tools/clang/tools/extra/clang-tidy/modernize/ReplaceRandomShuffleCheck.cpp 67 if (MatchedCallExpr->getNumArgs() == 3) {
tools/clang/tools/extra/clang-tidy/performance/InefficientAlgorithmCheck.cpp 90 if (AlgCall->getNumArgs() == 4 && !Unordered) {
tools/clang/tools/extra/clang-tidy/readability/NonConstParameterCheck.cpp 73 if (ArgNr >= CE->getNumArgs())
tools/clang/tools/extra/clang-tidy/readability/RedundantStringCStrCheck.cpp 34 return Op->getNumArgs() == 2 && Op->getOperator() != OO_PlusPlus &&
tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp 81 return Op->getNumArgs() == 2 && Op->getOperator() != OO_Call &&
228 if (OpExpr->getNumArgs() == 2) {
tools/clang/tools/libclang/CIndex.cpp 2507 for (unsigned I = CE->getNumArgs(); I > 1 /* Yes, this is 1 */; --I)
3702 if (callExpr->getNumArgs() != 1) {
3911 if (rettype->isVectorType() || callExpr->getNumArgs() > 1)
3915 if (callExpr->getNumArgs() == 1 &&
tools/clang/tools/libclang/CXCursor.cpp 1185 return CE->getNumArgs();
1212 if (i < CE->getNumArgs()) {