/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | ObjCMessage.h | 120 unsigned getNumArgs() const { in getNumArgs() function 121 return Msg->getNumArgs(); in getNumArgs() 127 assert(i < getNumArgs() && "Invalid index for argument"); in getArgSVal() 132 assert(i < getNumArgs() && "Invalid index for argument"); in getArgType() 137 assert(i < getNumArgs() && "Invalid index for argument"); in getArgExpr() 223 unsigned getNumArgs() const { in getNumArgs() function 225 return Msg.getNumArgs(); in getNumArgs() 228 return Ctor->getNumArgs(); in getNumArgs() 229 return CallE.get<const CallExpr *>()->getNumArgs(); in getNumArgs() 233 assert(i < getNumArgs()); in getArgSVal() [all …]
|
/external/clang/lib/Edit/ |
D | RewriteObjCFoundationAPI.cpp | 49 if (Msg->getNumArgs() != 1) in rewriteObjCRedundantCallWithLiteral() 89 if (Msg->getNumArgs() != 1) in rewriteToSubscriptGet() 111 if (Msg->getNumArgs() != 2) in rewriteToArraySubscriptSet() 139 if (Msg->getNumArgs() != 2) in rewriteToDictionarySubscriptSet() 187 if (Msg->getNumArgs() != 2) in rewriteToObjCSubscriptSyntax() 238 if (Msg->getNumArgs() != 0) in rewriteToArrayLiteral() 245 if (Msg->getNumArgs() != 1) in rewriteToArrayLiteral() 254 if (Msg->getNumArgs() == 0) in rewriteToArrayLiteral() 256 const Expr *SentinelExpr = Msg->getArg(Msg->getNumArgs() - 1); in rewriteToArrayLiteral() 260 if (Msg->getNumArgs() == 1) { in rewriteToArrayLiteral() [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | GenericTaintChecker.cpp | 353 if (CE->getNumArgs() < (ArgNum + 1)) in propagateFromPre() 454 for (unsigned int i = 0; i < CE->getNumArgs(); ++i) { in process() 463 if (CE->getNumArgs() < (ArgNum + 1)) in process() 482 for (unsigned int i = 0; i < CE->getNumArgs(); ++i) { in process() 501 assert(ArgNum < CE->getNumArgs()); in process() 513 assert(CE->getNumArgs() >= 2); in preFscanf() 520 for (unsigned int i = 2; i < CE->getNumArgs(); ++i) in preFscanf() 533 if (CE->getNumArgs() < 3) in postSocket() 549 if (CE->getNumArgs() < 2) in postScanf() 554 for (unsigned int i = 1; i < CE->getNumArgs(); ++i) { in postScanf() [all …]
|
D | CheckSecuritySyntaxOnly.cpp | 311 if (FPT->getNumArgs() != 1) in checkCall_gets() 349 if (FPT->getNumArgs() != 2) in checkCall_getpw() 395 if (FPT->getNumArgs() != 1) in checkCall_mktemp() 441 unsigned numArgs = CE->getNumArgs(); in checkCall_mkstemp() 569 int numArgs = FPT->getNumArgs(); in checkCall_strCommon() 603 if (FTP->getNumArgs() == 1) { in checkCall_rand() 613 else if (FTP->getNumArgs() != 0) in checkCall_rand() 649 if (FTP->getNumArgs() != 0) in checkCall_random() 728 if (FTP->getNumArgs() != (identifierid < 4 ? 1 : 2)) in checkUncheckedReturnValue() 732 for (unsigned i = 0; i < FTP->getNumArgs(); i++) in checkUncheckedReturnValue()
|
D | UnixAPIChecker.cpp | 95 if (CE->getNumArgs() < 2) { in CheckOpen() 129 if (CE->getNumArgs() < 3) { in CheckOpen() 155 if (CE->getNumArgs() < 1) in CheckPthreadOnce() 242 if (CE->getNumArgs() != numArgs) in BasicAllocationCheck() 267 unsigned int nArgs = CE->getNumArgs(); in CheckCallocZero()
|
D | ObjCContainersChecker.cpp | 91 if (Name.empty() || CE->getNumArgs() < 1) in checkPostStmt() 96 if (CE->getNumArgs() < 3) in checkPostStmt() 114 if (Name.empty() || CE->getNumArgs() < 2) in checkPreStmt()
|
D | CStringChecker.cpp | 985 if (CE->getNumArgs() < 3) in evalMemcpy() 997 if (CE->getNumArgs() < 3) in evalMempcpy() 1009 if (CE->getNumArgs() < 3) in evalMemmove() 1021 if (CE->getNumArgs() < 3) in evalBcopy() 1030 if (CE->getNumArgs() < 3) in evalMemcmp() 1107 if (CE->getNumArgs() < 1) in evalstrLength() 1116 if (CE->getNumArgs() < 2) in evalstrnLength() 1249 if (CE->getNumArgs() < 2) in evalStrcpy() 1260 if (CE->getNumArgs() < 3) in evalStrncpy() 1271 if (CE->getNumArgs() < 2) in evalStpcpy() [all …]
|
D | BasicObjCFoundationChecks.cpp | 262 if (FD->getIdentifier() != II || CE->getNumArgs() != 3) in checkPreStmt() 362 if (CE->getNumArgs() != 1) in checkPreStmt() 588 unsigned variadicArgsBegin = msg.getSelector().getNumArgs(); in checkPreObjCMessage() 592 unsigned variadicArgsEnd = msg.getNumArgs() - 1; in checkPreObjCMessage()
|
D | MallocChecker.cpp | 371 if (CE->getNumArgs() < 1) in checkPostStmt() 495 if (CE->getNumArgs() < (Num + 1)) in FreeMemAux() 718 if (CE->getNumArgs() < 2) in ReallocMem() 806 if (CE->getNumArgs() < 2) in CallocMem() 1227 for (unsigned i = 1; i < Call->getNumArgs(); ++i) { in doesNotFreeMemory() 1248 if (Call->getNumArgs() >= 4 && !Call->getArgSVal(4).isConstant(0)) in doesNotFreeMemory() 1256 if (Call->getNumArgs() >= 1) in doesNotFreeMemory() 1292 for (unsigned i = 1; i < S.getNumArgs(); ++i) { in doesNotFreeMemory()
|
/external/clang/lib/Sema/ |
D | TargetAttributesSema.cpp | 32 if (Attr.getNumArgs() != 1) { in HandleMSP430InterruptAttr() 77 if (Attr.getNumArgs() != 0) { in HandleMBlazeInterruptHandlerAttr() 92 if (Attr.getNumArgs() != 0) { in HandleMBlazeSaveVolatilesAttr() 127 if (Attr.getNumArgs() != 0) { in HandleX86ForceAlignArgPointerAttr() 156 if (Attr.getNumArgs() != 0) { in HandleDLLImportAttr() 205 if (Attr.getNumArgs() != 0) { in HandleDLLExportAttr()
|
D | SemaDeclAttr.cpp | 127 return cast<FunctionProtoType>(FnTy)->getNumArgs(); in getFunctionOrMethodNumArgs() 201 if (Attr.getNumArgs() != Num) { in checkAttributeNumArgs() 214 if (Attr.getNumArgs() < Num) { in checkAttributeAtLeastNumArgs() 306 for(unsigned Idx = Sidx; Idx < Attr.getNumArgs(); ++Idx) { in checkAttrArgsAreLockableObjs() 493 assert(Size == Attr.getNumArgs()); in handleAcquireOrderAttr() 523 assert(Size == Attr.getNumArgs()); in handleLockFunAttr() 595 assert(Size == Attr.getNumArgs()); in handleLocksRequiredAttr() 626 assert(Size == Attr.getNumArgs()); in handleUnlockFunAttr() 675 assert(Size == Attr.getNumArgs()); in handleLocksExcludedAttr() 811 if (Attr.getParameterName() && Attr.getNumArgs() > 0) { in handleIBOutletCollection() [all …]
|
D | SemaChecking.cpp | 52 unsigned argCount = call->getNumArgs(); in checkArgCount() 106 assert(TheCall->getNumArgs() == 1 && in CheckBuiltinFunctionCall() 346 unsigned ImmArg = TheCall->getNumArgs()-1; in CheckARMBuiltinFunctionCall() 592 if (TheCall->getNumArgs() < NumArgs[Form]) { in SemaAtomicOpsOverloaded() 594 << 0 << NumArgs[Form] << TheCall->getNumArgs() in SemaAtomicOpsOverloaded() 597 } else if (TheCall->getNumArgs() > NumArgs[Form]) { in SemaAtomicOpsOverloaded() 600 << 0 << NumArgs[Form] << TheCall->getNumArgs() in SemaAtomicOpsOverloaded() 817 if (TheCall->getNumArgs() < 1) { in SemaBuiltinAtomicOverloaded() 819 << 0 << 1 << TheCall->getNumArgs() in SemaBuiltinAtomicOverloaded() 1065 if (TheCall->getNumArgs() < 1+NumFixed) { in SemaBuiltinAtomicOverloaded() [all …]
|
/external/clang/lib/Basic/ |
D | IdentifierTable.cpp | 311 unsigned getNumArgs() const { return ExtraKindOrNumArgs - NUM_EXTRA_KINDS; } in getNumArgs() function in clang::MultiKeywordSelector 318 return keyword_begin()+getNumArgs(); in keyword_end() 321 assert(i < getNumArgs() && "getIdentifierInfoForSlot(): illegal index"); in getIdentifierInfoForSlot() 331 Profile(ID, keyword_begin(), getNumArgs()); in Profile() 336 unsigned Selector::getNumArgs() const { in getNumArgs() function in Selector 344 return SI->getNumArgs(); in getNumArgs() 382 if (getNumArgs() == 0) in getAsString()
|
/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() 91 if (unsigned NumArgs = MIOpInfo->getNumArgs()) in CGIOperandList() 190 for (unsigned i = 0, e = MIOpInfo->getNumArgs(); i != e; ++i) in ParseOperandName() 525 for (unsigned i = 0, e = Result->getNumArgs(); i != e; ++i) { in CodeGenInstAlias() 551 if (AliasOpNo >= Result->getNumArgs()) in CodeGenInstAlias() 570 if (AliasOpNo >= Result->getNumArgs()) in CodeGenInstAlias() 591 if (AliasOpNo != Result->getNumArgs()) in CodeGenInstAlias()
|
D | SetTheory.cpp | 146 SmallVector<RecSet, 4> Args(Expr->getNumArgs()); in apply() 148 for (unsigned i = 0, e = Expr->getNumArgs(); i != e; ++i) { in apply() 154 for (unsigned i = 0, e = Expr->getNumArgs(); i != e; ++i) in apply()
|
D | PseudoLoweringEmitter.cpp | 30 for (unsigned i = 0, e = Dag->getNumArgs(); i != e; ++i) { in addDagOperandMapping() 99 if (Insn.Operands.size() != Dag->getNumArgs()) in evaluateExpansion()
|
/external/clang/include/clang/AST/ |
D | TypeLoc.h | 1086 return ArrayRef<ParmVarDecl *>(getParmArray(), getNumArgs()); in getParams() 1094 unsigned getNumArgs() const { in getNumArgs() function 1097 return cast<FunctionProtoType>(getTypePtr())->getNumArgs(); in getNumArgs() 1114 for (unsigned i = 0, e = getNumArgs(); i != e; ++i) in initializeLocal() 1121 return getNumArgs() * sizeof(ParmVarDecl*); in getExtraLocalDataSize() 1257 unsigned getNumArgs() const { in getNumArgs() function 1258 return getTypePtr()->getNumArgs(); in getNumArgs() 1302 initializeArgLocs(Context, getNumArgs(), getTypePtr()->getArgs(), in initializeLocal() 1312 return getNumArgs() * sizeof(TemplateArgumentLocInfo); in getExtraLocalDataSize() 1681 unsigned getNumArgs() const { in getNumArgs() function [all …]
|
D | TemplateBase.h | 635 return getArgs() + getNumArgs(); in end() 640 return getArgs() + getNumArgs(); in end() 645 assert(Idx < getNumArgs() && "Template argument out of range"); in getArg() 651 assert(Idx < getNumArgs() && "Template argument out of range"); in getArg()
|
/external/clang/lib/Lex/ |
D | MacroArgs.cpp | 150 assert(Arg < MI->getNumArgs() && "Invalid argument number!"); in getPreExpArgument() 153 if (PreExpArgTokens.size() < MI->getNumArgs()) in getPreExpArgument() 154 PreExpArgTokens.resize(MI->getNumArgs()); in getPreExpArgument()
|
D | MacroInfo.cpp | 95 getNumArgs() != Other.getNumArgs() || in isIdenticalTo()
|
/external/clang/lib/AST/ |
D | StmtProfile.cpp | 510 if (S->getNumArgs() == 1) { in DecodeOperatorCall() 519 if (S->getNumArgs() == 1) { in DecodeOperatorCall() 528 if (S->getNumArgs() == 1) { in DecodeOperatorCall() 549 if (S->getNumArgs() == 1) { in DecodeOperatorCall() 654 UnaryOp = S->getNumArgs() == 1? UO_PreInc in DecodeOperatorCall() 659 UnaryOp = S->getNumArgs() == 1? UO_PreDec in DecodeOperatorCall() 689 for (unsigned I = 0, N = S->getNumArgs(); I != N; ++I) in VisitCXXOperatorCallExpr() 881 ID.AddInteger(S->getNumArgs()); in VisitTypeTraitExpr() 882 for (unsigned I = 0, N = S->getNumArgs(); I != N; ++I) in VisitTypeTraitExpr()
|
D | LambdaMangleContext.cpp | 26 Proto->getNumArgs(), in getManglingNumber()
|
D | DeclarationName.cpp | 99 unsigned LN = LHSSelector.getNumArgs(), RN = RHSSelector.getNumArgs(); in compare() 144 switch (Sel.getNumArgs()) { in DeclarationName()
|
/external/clang/lib/CodeGen/ |
D | CGExprCXX.cpp | 991 assert(FPT->getNumArgs() == NumPlacementArgs + 1 || in Emit() 992 (FPT->getNumArgs() == 2 && NumPlacementArgs == 0)); in Emit() 1001 if (FPT->getNumArgs() == NumPlacementArgs + 2) in Emit() 1048 assert(FPT->getNumArgs() == NumPlacementArgs + 1 || in Emit() 1049 (FPT->getNumArgs() == 2 && NumPlacementArgs == 0)); in Emit() 1058 if (FPT->getNumArgs() == NumPlacementArgs + 2) { in Emit() 1153 for (unsigned i = 1, e = allocatorType->getNumArgs(); i != e; in EmitCXXNewExpr() 1294 if (DeleteFTy->getNumArgs() == 2) { in EmitDeleteCall() 1430 assert(DeleteFTy->getNumArgs() == 1 || DeleteFTy->getNumArgs() == 2); in Emit() 1441 if (DeleteFTy->getNumArgs() == 2) { in Emit()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | ExprEngineCallAndReturn.cpp | 266 for (unsigned Idx = 0, E = Call.getNumArgs(); Idx != E; ++Idx) { in findPtrToConstParams() 276 assert(MDecl->param_size() <= Call.getNumArgs()); in findPtrToConstParams() 319 for (unsigned idx = 0, e = Call.getNumArgs(); idx != e; ++idx) { in invalidateArguments()
|