/external/clang/lib/Edit/ |
D | RewriteObjCFoundationAPI.cpp | 64 if (Msg->getNumArgs() != 1) in rewriteObjCRedundantCallWithLiteral() 183 if (Msg->getNumArgs() != 1) in rewriteToSubscriptGetCommon() 231 if (Msg->getNumArgs() != 2) in rewriteToArraySubscriptSet() 265 if (Msg->getNumArgs() != 2) in rewriteToDictionarySubscriptSet() 311 if (Msg->getNumArgs() != 2) in rewriteToObjCSubscriptSyntax() 392 if (Msg->getNumArgs() != 0) in rewriteToArrayLiteral() 399 if (Msg->getNumArgs() != 1) in rewriteToArrayLiteral() 410 if (Msg->getNumArgs() == 0) in rewriteToArrayLiteral() 412 const Expr *SentinelExpr = Msg->getArg(Msg->getNumArgs() - 1); in rewriteToArrayLiteral() 416 for (unsigned i = 0, e = Msg->getNumArgs() - 1; i != e; ++i) in rewriteToArrayLiteral() [all …]
|
/external/llvm/lib/Option/ |
D | Option.cpp | 80 O << " NumArgs:" << getNumArgs(); in print() 189 Index += 1 + getNumArgs(); in accept() 193 Arg *A = new Arg(UnaliasedOption, Spelling, Index - 1 - getNumArgs(), in accept() 194 Args.getArgString(Index - getNumArgs())); in accept() 195 for (unsigned i = 1; i != getNumArgs(); ++i) in accept() 196 A->getValues().push_back(Args.getArgString(Index - getNumArgs() + i)); in accept()
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | CallEvent.h | 207 virtual unsigned getNumArgs() const = 0; 456 unsigned getNumArgs() const override { return getOriginExpr()->getNumArgs(); } in getNumArgs() function 491 unsigned getNumArgs() const override { return getOriginExpr()->getNumArgs(); } in getNumArgs() function 632 unsigned getNumArgs() const override { in getNumArgs() function 634 return CE->getNumArgs(); in getNumArgs() 676 unsigned getNumArgs() const override { in getNumArgs() function 677 return getOriginExpr()->getNumArgs() - 1; in getNumArgs() 722 unsigned getNumArgs() const override { return 0; } in getNumArgs() function 776 unsigned getNumArgs() const override { return getOriginExpr()->getNumArgs(); } in getNumArgs() function 818 unsigned getNumArgs() const override { in getNumArgs() function [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | GenericTaintChecker.cpp | 350 if (CE->getNumArgs() < (ArgNum + 1)) in propagateFromPre() 458 for (unsigned int i = 0; i < CE->getNumArgs(); ++i) { in process() 467 if (CE->getNumArgs() < (ArgNum + 1)) in process() 486 for (unsigned int i = 0; i < CE->getNumArgs(); ++i) { in process() 505 assert(ArgNum < CE->getNumArgs()); in process() 517 assert(CE->getNumArgs() >= 2); in preFscanf() 524 for (unsigned int i = 2; i < CE->getNumArgs(); ++i) in preFscanf() 537 if (CE->getNumArgs() < 3) in postSocket() 553 if (CE->getNumArgs() < 2) in postScanf() 557 for (unsigned int i = 1; i < CE->getNumArgs(); ++i) { in postScanf() [all …]
|
D | UnixAPIChecker.cpp | 94 if (CE->getNumArgs() < 2) { in CheckOpen() 98 } else if (CE->getNumArgs() == 3) { in CheckOpen() 107 } else if (CE->getNumArgs() > 3) { in CheckOpen() 156 if (CE->getNumArgs() < 3) { in CheckOpen() 174 if (CE->getNumArgs() < 1) in CheckPthreadOnce() 261 if (CE->getNumArgs() != numArgs) in BasicAllocationCheck() 286 unsigned int nArgs = CE->getNumArgs(); in CheckCallocZero()
|
D | ObjCContainersChecker.cpp | 88 if (Name.empty() || CE->getNumArgs() < 1) in checkPostStmt() 93 if (CE->getNumArgs() < 3) in checkPostStmt() 111 if (Name.empty() || CE->getNumArgs() < 2) in checkPreStmt()
|
D | ObjCContainersASTChecker.cpp | 107 if (CE->getNumArgs() != 4) in VisitCallExpr() 114 if (CE->getNumArgs() != 6) in VisitCallExpr()
|
D | CStringChecker.cpp | 1099 if (CE->getNumArgs() < 3) in evalMemcpy() 1111 if (CE->getNumArgs() < 3) in evalMempcpy() 1123 if (CE->getNumArgs() < 3) in evalMemmove() 1135 if (CE->getNumArgs() < 3) in evalBcopy() 1144 if (CE->getNumArgs() < 3) in evalMemcmp() 1221 if (CE->getNumArgs() < 1) in evalstrLength() 1230 if (CE->getNumArgs() < 2) in evalstrnLength() 1357 if (CE->getNumArgs() < 2) in evalStrcpy() 1368 if (CE->getNumArgs() < 3) in evalStrncpy() 1379 if (CE->getNumArgs() < 2) in evalStpcpy() [all …]
|
D | ExprInspectionChecker.cpp | 64 if (CE->getNumArgs() == 0) in getArgumentValueString() 149 if (CE->getNumArgs() == 0) in analyzerWarnOnDeadSymbol()
|
D | MallocChecker.cpp | 703 if (CE->getNumArgs() < 2) in performKernelMalloc() 706 const Expr *FlagsEx = CE->getArg(CE->getNumArgs() - 1); in performKernelMalloc() 754 if (CE->getNumArgs() < 1) in checkPostStmt() 756 if (CE->getNumArgs() < 3) { in checkPostStmt() 758 if (CE->getNumArgs() == 1) in checkPostStmt() 760 } else if (CE->getNumArgs() == 3) { in checkPostStmt() 776 if (CE->getNumArgs() < 1) in checkPostStmt() 1015 for (unsigned i = 1; i < S.getNumArgs(); ++i) in getFreeWhenDoneArg() 1169 if (CE->getNumArgs() < (Num + 1)) in FreeMemAux() 1891 if (CE->getNumArgs() < 2) in ReallocMem() [all …]
|
D | LLVMConventionsChecker.cpp | 165 if (!Ex2 || Ex2->getNumArgs() != 1) in VisitVarDecl() 171 if (!Ex4 || Ex4->getNumArgs() != 1) in VisitVarDecl()
|
/external/llvm/utils/TableGen/ |
D | CodeGenInstruction.cpp | 41 NumDefs = OutDI->getNumArgs(); in CGIOperandList() 52 for (unsigned i = 0, e = InDI->getNumArgs()+OutDI->getNumArgs(); i != e; ++i){ in CGIOperandList() 93 if (unsigned NumArgs = MIOpInfo->getNumArgs()) in CGIOperandList() 192 for (unsigned i = 0, e = MIOpInfo->getNumArgs(); i != e; ++i) in ParseOperandName() 566 if (MIOpInfo->getNumArgs() == 0) { in getMINumOperands() 571 return MIOpInfo->getNumArgs(); in getMINumOperands() 593 for (unsigned i = 0, e = Result->getNumArgs(); i != e; ++i) { in CodeGenInstAlias() 619 if (AliasOpNo >= Result->getNumArgs()) in CodeGenInstAlias() 660 if (AliasOpNo >= Result->getNumArgs()) in CodeGenInstAlias() 681 if (AliasOpNo != Result->getNumArgs()) in CodeGenInstAlias()
|
/external/clang/lib/Basic/ |
D | IdentifierTable.cpp | 373 unsigned getNumArgs() const { return ExtraKindOrNumArgs - NUM_EXTRA_KINDS; } in getNumArgs() function in clang::MultiKeywordSelector 380 return keyword_begin()+getNumArgs(); in keyword_end() 383 assert(i < getNumArgs() && "getIdentifierInfoForSlot(): illegal index"); in getIdentifierInfoForSlot() 393 Profile(ID, keyword_begin(), getNumArgs()); in Profile() 398 unsigned Selector::getNumArgs() const { in getNumArgs() function in Selector 406 return SI->getNumArgs(); in getNumArgs() 444 if (getNumArgs() == 0) in getAsString()
|
/external/clang/lib/Index/ |
D | CommentToXML.cpp | 271 if (C->getNumArgs() == 0) in visitInlineCommandComment() 281 for (unsigned i = 0, e = C->getNumArgs(); i != e; ++i) { in visitInlineCommandComment() 288 assert(C->getNumArgs() == 1); in visitInlineCommandComment() 294 assert(C->getNumArgs() == 1); in visitInlineCommandComment() 300 assert(C->getNumArgs() == 1); in visitInlineCommandComment() 626 if (C->getNumArgs() == 0) in visitInlineCommandComment() 636 for (unsigned i = 0, e = C->getNumArgs(); i != e; ++i) { in visitInlineCommandComment() 642 assert(C->getNumArgs() == 1); in visitInlineCommandComment() 648 assert(C->getNumArgs() == 1); in visitInlineCommandComment() 654 assert(C->getNumArgs() == 1); in visitInlineCommandComment()
|
/external/clang/tools/libclang/ |
D | CXComment.cpp | 175 return ICC->getNumArgs(); in clang_InlineCommandComment_getNumArgs() 181 if (!ICC || ArgIdx >= ICC->getNumArgs()) in clang_InlineCommandComment_getArgText() 241 return BCC->getNumArgs(); in clang_BlockCommandComment_getNumArgs() 247 if (!BCC || ArgIdx >= BCC->getNumArgs()) in clang_BlockCommandComment_getArgText()
|
/external/clang/lib/Lex/ |
D | MacroArgs.cpp | 149 assert(Arg < MI->getNumArgs() && "Invalid argument number!"); in getPreExpArgument() 152 if (PreExpArgTokens.size() < MI->getNumArgs()) in getPreExpArgument() 153 PreExpArgTokens.resize(MI->getNumArgs()); in getPreExpArgument()
|
D | MacroInfo.cpp | 78 getNumArgs() != Other.getNumArgs() || in isIdenticalTo()
|
D | TokenLexer.cpp | 70 if (Macro->isFunctionLike() && Macro->getNumArgs()) in Init() 128 if (!Macro->isVariadic() || MacroArgNo != Macro->getNumArgs()-1) in MaybeRemoveCommaBeforeVaArgs() 143 && Macro->getNumArgs() < 2) in MaybeRemoveCommaBeforeVaArgs() 324 (unsigned)ArgNo == Macro->getNumArgs()-1 && in ExpandFunctionArguments()
|
/external/clang/lib/ASTMatchers/Dynamic/ |
D | Marshallers.h | 116 virtual unsigned getNumArgs() const = 0; 190 unsigned getNumArgs() const override { return ArgKinds.size(); } 344 unsigned getNumArgs() const override { return 0; } 529 unsigned getNumArgs() const override { 530 unsigned Overload0NumArgs = Overloads[0]->getNumArgs(); 533 assert(Overload0NumArgs == O->getNumArgs()); 596 unsigned getNumArgs() const override { return 0; }
|
/external/clang/include/clang/AST/ |
D | TemplateBase.h | 650 return getArgs() + getNumArgs(); in end() 655 return getArgs() + getNumArgs(); in end() 660 assert(Idx < getNumArgs() && "Template argument out of range"); in getArg() 666 assert(Idx < getNumArgs() && "Template argument out of range"); in getArg()
|
D | ExprObjC.h | 426 unsigned getNumArgs() const { return SelName.getNumArgs(); } 982 return reinterpret_cast<SourceLocation*>(getArgs() + getNumArgs()); 985 return reinterpret_cast<const SourceLocation*>(getArgs() + getNumArgs()); 1284 unsigned getNumArgs() const { return NumArgs; } 1330 getNumArgs()), 1343 return Sel.getNumArgs();
|
/external/clang/lib/AST/ |
D | StmtProfile.cpp | 901 if (S->getNumArgs() == 1) { in DecodeOperatorCall() 910 if (S->getNumArgs() == 1) { in DecodeOperatorCall() 919 if (S->getNumArgs() == 1) { in DecodeOperatorCall() 940 if (S->getNumArgs() == 1) { in DecodeOperatorCall() 1045 UnaryOp = S->getNumArgs() == 1? UO_PreInc in DecodeOperatorCall() 1050 UnaryOp = S->getNumArgs() == 1? UO_PreDec in DecodeOperatorCall() 1078 for (unsigned I = 0, N = S->getNumArgs(); I != N; ++I) in VisitCXXOperatorCallExpr() 1290 ID.AddInteger(S->getNumArgs()); in VisitTypeTraitExpr() 1291 for (unsigned I = 0, N = S->getNumArgs(); I != N; ++I) in VisitTypeTraitExpr()
|
D | ExprCXX.cpp | 492 for (unsigned I = getNumArgs(); I > 0; --I) { in getLocEnd() 509 if (getNumArgs() == 1) in getSourceRangeImpl() 521 } else if (getNumArgs() == 1) { in getSourceRangeImpl() 523 } else if (getNumArgs() == 2) { in getSourceRangeImpl() 732 if (getNumArgs() == 0) in getLiteralOperatorKind() 734 if (getNumArgs() == 2) in getLiteralOperatorKind() 737 assert(getNumArgs() == 1 && "unexpected #args in literal operator call"); in getLiteralOperatorKind() 825 if (Loc.isInvalid() && getNumArgs()) in getLocEnd() 826 Loc = getArg(getNumArgs()-1)->getLocEnd(); in getLocEnd()
|
/external/clang/lib/Sema/ |
D | SemaChecking.cpp | 54 unsigned argCount = call->getNumArgs(); in checkArgCount() 151 if (TheCall->getNumArgs() <= SizeIdx || in SemaBuiltinMemChkCall() 152 TheCall->getNumArgs() <= DstSizeIdx) in SemaBuiltinMemChkCall() 286 assert(TheCall->getNumArgs() == 1 && in CheckBuiltinFunctionCall() 699 unsigned ImmArg = TheCall->getNumArgs()-1; in CheckNeonBuiltinFunctionCall() 1443 unsigned NumArgs = TheCall->getNumArgs(); in CheckFunctionCall() 1516 llvm::makeArrayRef(TheCall->getArgs(), TheCall->getNumArgs()), in CheckPointerCall() 1529 llvm::makeArrayRef(TheCall->getArgs(), TheCall->getNumArgs()), in CheckOtherCall() 1668 if (TheCall->getNumArgs() < NumArgs[Form]) { in SemaAtomicOpsOverloaded() 1670 << 0 << NumArgs[Form] << TheCall->getNumArgs() in SemaAtomicOpsOverloaded() [all …]
|
/external/llvm/lib/TableGen/ |
D | SetTheory.cpp | 152 SmallVector<RecSet, 4> Args(Expr->getNumArgs()); in apply() 154 for (unsigned i = 0, e = Expr->getNumArgs(); i != e; ++i) { in apply() 160 for (unsigned i = 0, e = Expr->getNumArgs(); i != e; ++i) in apply()
|