| /llvm-project-15.0.7/clang/lib/Edit/ |
| H A D | RewriteObjCFoundationAPI.cpp | 63 if (Msg->getNumArgs() != 1) in rewriteObjCRedundantCallWithLiteral() 182 if (Msg->getNumArgs() != 1) in rewriteToSubscriptGetCommon() 230 if (Msg->getNumArgs() != 2) in rewriteToArraySubscriptSet() 264 if (Msg->getNumArgs() != 2) in rewriteToDictionarySubscriptSet() 310 if (Msg->getNumArgs() != 2) in rewriteToObjCSubscriptSyntax() 391 if (Msg->getNumArgs() != 0) in rewriteToArrayLiteral() 398 if (Msg->getNumArgs() != 1) in rewriteToArrayLiteral() 409 if (Msg->getNumArgs() == 0) in rewriteToArrayLiteral() 495 if (Msg->getNumArgs() != 0) in rewriteToDictionaryLiteral() 754 if (Msg->getNumArgs() != 1) in rewriteToNumberLiteral() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | CallEvent.h | 249 virtual unsigned getNumArgs() const = 0; 538 unsigned getNumArgs() const override { return getOriginExpr()->getNumArgs(); } in getNumArgs() function 574 unsigned getNumArgs() const override { return getOriginExpr()->getNumArgs(); } in getNumArgs() function 712 unsigned getNumArgs() const override { in getNumArgs() function 714 return CE->getNumArgs(); in getNumArgs() 756 unsigned getNumArgs() const override { in getNumArgs() function 902 unsigned getNumArgs() const override { return getOriginExpr()->getNumArgs(); } in getNumArgs() function 972 unsigned getNumArgs() const override { in getNumArgs() function 1032 unsigned getNumArgs() const override { in getNumArgs() function 1198 return getNumArgs() > 0; in isSetter() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Option/ |
| H A D | Option.cpp | 84 O << " NumArgs:" << getNumArgs(); in print() 170 Index += 1 + getNumArgs(); in acceptInternal() 174 auto A = std::make_unique<Arg>(*this, Spelling, Index - 1 - getNumArgs(), in acceptInternal() 175 Args.getArgString(Index - getNumArgs())); in acceptInternal() 176 for (unsigned i = 1; i != getNumArgs(); ++i) in acceptInternal() 177 A->getValues().push_back(Args.getArgString(Index - getNumArgs() + i)); in acceptInternal()
|
| /llvm-project-15.0.7/clang/examples/Attribute/ |
| H A D | Attribute.cpp | 62 if (Attr.getNumArgs() > 3) { in handleDeclAttribute() 70 if (Attr.getNumArgs() > 0) { in handleDeclAttribute() 82 for (unsigned i = 0; i < Attr.getNumArgs(); i++) { in handleDeclAttribute()
|
| /llvm-project-15.0.7/llvm/utils/TableGen/ |
| H A D | X86FoldTablesEmitter.cpp | 323 unsigned MemOutSize = MemRec->getValueAsDag("OutOperandList")->getNumArgs(); in operator ()() 324 unsigned RegOutSize = RegRec->getValueAsDag("OutOperandList")->getNumArgs(); in operator ()() 325 unsigned MemInSize = MemRec->getValueAsDag("InOperandList")->getNumArgs(); in operator ()() 326 unsigned RegInSize = RegRec->getValueAsDag("InOperandList")->getNumArgs(); in operator ()() 403 unsigned MemInOpsNum = MemRec->getValueAsDag("InOperandList")->getNumArgs(); in addEntryWithFlags() 404 unsigned RegInOpsNum = RegRec->getValueAsDag("InOperandList")->getNumArgs(); in addEntryWithFlags() 456 unsigned MemOutSize = MemRec->getValueAsDag("OutOperandList")->getNumArgs(); in updateTables() 457 unsigned RegOutSize = RegRec->getValueAsDag("OutOperandList")->getNumArgs(); in updateTables() 458 unsigned MemInSize = MemRec->getValueAsDag("InOperandList")->getNumArgs(); in updateTables() 459 unsigned RegInSize = RegRec->getValueAsDag("InOperandList")->getNumArgs(); in updateTables()
|
| H A D | CodeGenInstruction.cpp | 42 NumDefs = OutDI->getNumArgs(); in CGIOperandList() 56 unsigned e = InDI->getNumArgs() + OutDI->getNumArgs(); in CGIOperandList() 104 if (unsigned NumArgs = MIOpInfo->getNumArgs()) in CGIOperandList() 222 for (unsigned i = 0, e = MIOpInfo->getNumArgs(); i != e; ++i) in ParseOperandName() 517 if (!ConstraintList || i >= ConstraintList->getNumArgs()) in isOperandImpl() 669 if (MIOpInfo->getNumArgs() == 0) { in getMINumOperands() 674 return MIOpInfo->getNumArgs(); in getMINumOperands() 693 for (unsigned i = 0, e = Result->getNumArgs(); i != e; ++i) { in CodeGenInstAlias() 725 if (AliasOpNo >= Result->getNumArgs()) in CodeGenInstAlias() 766 if (AliasOpNo >= Result->getNumArgs()) in CodeGenInstAlias() [all …]
|
| H A D | SubtargetFeatureInfo.cpp | 122 if (Op == "not" && D->getNumArgs() == 1) { in emitFeaturesAux() 126 if ((Op == "any_of" || Op == "all_of") && D->getNumArgs() > 0) { in emitFeaturesAux() 127 bool Paren = D->getNumArgs() > 1 && std::exchange(ParenIfBinOp, true); in emitFeaturesAux()
|
| H A D | VarLenCodeEmitterGen.cpp | 103 int i = Reverse ? DI->getNumArgs() - 1 : 0; in buildRec() 104 int e = Reverse ? -1 : DI->getNumArgs(); in buildRec() 127 if (DI->getNumArgs() < 2) in buildRec() 140 if (DI->getNumArgs() >= 3) in buildRec() 147 if (DI->getNumArgs() < 3) in buildRec() 171 if (DI->getNumArgs() >= 4) in buildRec()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | UnixAPIChecker.cpp | 182 if (CE->getNumArgs() < MinArgCount) { in CheckOpenVariant() 185 } else if (CE->getNumArgs() == MaxArgCount) { in CheckOpenVariant() 200 } else if (CE->getNumArgs() > MaxArgCount) { in CheckOpenVariant() 255 if (CE->getNumArgs() < MaxArgCount) { in CheckOpenVariant() 278 if (CE->getNumArgs() < 1) in CheckPthreadOnce() 368 if (CE->getNumArgs() != numArgs) in BasicAllocationCheck() 393 unsigned int nArgs = CE->getNumArgs(); in CheckCallocZero()
|
| H A D | MismatchedIteratorChecker.cpp | 73 if (Call.getNumArgs() < 1) in checkPreCall() 82 if (Call.getNumArgs() < 2) in checkPreCall() 99 if (Call.getNumArgs() == 2) { in checkPreCall() 106 if (Call.getNumArgs() == 3 && in checkPreCall() 117 if (Call.getNumArgs() < 2) in checkPreCall()
|
| H A D | ObjCContainersChecker.cpp | 86 if (Name.empty() || CE->getNumArgs() < 1) in checkPostStmt() 91 if (CE->getNumArgs() < 3) in checkPostStmt() 109 if (Name.empty() || CE->getNumArgs() < 2) in checkPreStmt()
|
| H A D | GTestChecker.cpp | 132 assert(Call->getNumArgs() >= 1 && Call->getNumArgs() <= 2); in modelAssertionResultBoolConstructor() 161 assert(Call->getNumArgs() == 1); in modelAssertionResultCopyConstructor()
|
| H A D | IteratorRangeChecker.cpp | 92 if (Call.getNumArgs() >= 1) { in checkPreCall() 101 if (Call.getNumArgs() >= 1) { in checkPreCall() 108 if (Call.getNumArgs() >= 1 && in checkPreCall() 115 if (Call.getNumArgs() >= 2 && in checkPreCall() 132 if (Call.getNumArgs() > 1) { in checkPreCall()
|
| H A D | BuiltinFunctionChecker.cpp | 48 assert (Call.getNumArgs() > 0); in evalCall() 76 assert (Call.getNumArgs() > 0); in evalCall()
|
| H A D | IteratorModeling.cpp | 204 if (isa<CXXConstructorCall>(&Call) && Call.getNumArgs() == 1) { in checkPostCall() 220 for (unsigned i = 0; i < Call.getNumArgs(); ++i) { in checkPostCall() 374 if (Call.getNumArgs() >= 1 && in handleOverloadedOperator() 380 } else if (Call.getNumArgs() >= 2) { in handleOverloadedOperator() 404 Call.getNumArgs()); in handleOverloadedOperator() 409 Call.getNumArgs()); in handleOverloadedOperator() 414 Call.getNumArgs()); in handleOverloadedOperator() 419 Call.getNumArgs()); in handleOverloadedOperator()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | UseEmplaceCheck.cpp | 61 if (Node.getNumArgs() == 0) in AST_MATCHER_P() 64 return InnerMatcher.matches(*Node.getArg(Node.getNumArgs() - 1), Finder, in AST_MATCHER_P() 73 return Node.getNumArgs() == Node.getMethodDecl() in AST_MATCHER() 78 return Node.getNumArgs() == Node.getMethodDecl()->getNumParams(); in AST_MATCHER() 250 if (IgnoreImplicitConstructors && CtorCall && CtorCall->getNumArgs() >= 1 && in check()
|
| H A D | LoopConvertUtils.cpp | 176 if (ConstructExpr->getNumArgs() != 1 || in digThroughConstructorsConversions() 230 return OpCall->getOperator() == OO_Star && OpCall->getNumArgs() == 1 in getDereferenceOperand() 321 return OpCall->getOperator() == OO_Star && OpCall->getNumArgs() == 1 && in isDereferenceOfOpCall() 401 return OpCall->getNumArgs() == 2 && in isAliasDecl() 413 MDecl->getNameAsString() == "at" && MemCall->getNumArgs() == 1) { in isAliasDecl() 561 assert(Call->getNumArgs() == 1 && in TraverseMemberExpr() 616 if (Ident && Ident->isStr("at") && MemberCall->getNumArgs() == 1) { in TraverseCXXMemberCallExpr() 661 if (OpCall->getNumArgs() != 2) in TraverseCXXOperatorCallExpr()
|
| H A D | UseTransparentFunctorsCheck.cpp | 99 for (; ArgNum < FunctorParentType->getNumArgs(); ++ArgNum) { in check() 110 if (ArgNum == FunctorParentType->getNumArgs()) in check()
|
| /llvm-project-15.0.7/clang/lib/Index/ |
| H A D | CommentToXML.cpp | 268 if (C->getNumArgs() == 0) in visitInlineCommandComment() 278 for (unsigned i = 0, e = C->getNumArgs(); i != e; ++i) { in visitInlineCommandComment() 285 assert(C->getNumArgs() == 1); in visitInlineCommandComment() 291 assert(C->getNumArgs() == 1); in visitInlineCommandComment() 297 assert(C->getNumArgs() == 1); in visitInlineCommandComment() 303 assert(C->getNumArgs() == 1); in visitInlineCommandComment() 617 if (C->getNumArgs() == 0) in visitInlineCommandComment() 633 assert(C->getNumArgs() == 1); in visitInlineCommandComment() 639 assert(C->getNumArgs() == 1); in visitInlineCommandComment() 645 assert(C->getNumArgs() == 1); in visitInlineCommandComment() [all …]
|
| /llvm-project-15.0.7/mlir/tools/mlir-tblgen/ |
| H A D | RewriterGen.cpp | 460 for (int i = 0, e = tree.getNumArgs(); i != e; ++i) { in emitNativeCodeMatch() 693 if (eitherArgTree.getNumArgs() != numEitherArgs) in emitEitherOperandMatch() 930 for (unsigned i = 0, e = tree.getNumArgs(); i != e; ++i) in collectOps() 1135 if (tree.getNumArgs() != 1) { in handleReplaceWithValue() 1154 if (tree.getNumArgs() == 0) in handleLocationDirective() 1161 if (tree.getNumArgs() == 1) { in handleLocationDirective() 1175 for (int i = 0, e = tree.getNumArgs(); i != e; ++i) { in handleLocationDirective() 1336 auto numPatArgs = tree.getNumArgs(); in getTrailingDirectives() 1383 auto numOpArgs = resultOp.getNumArgs(); in handleOpCreation() 1384 auto numPatArgs = tree.getNumArgs(); in handleOpCreation() [all …]
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | IdentifierTable.cpp | 446 using DeclarationNameExtra::getNumArgs; 455 return keyword_begin() + getNumArgs(); in keyword_end() 459 assert(i < getNumArgs() && "getIdentifierInfoForSlot(): illegal index"); in getIdentifierInfoForSlot() 471 Profile(ID, keyword_begin(), getNumArgs()); in Profile() 479 if (getNumArgs() != Names.size()) in isKeywordSelector() 492 unsigned Selector::getNumArgs() const { in getNumArgs() function in Selector 500 return SI->getNumArgs(); in getNumArgs() 538 if (getNumArgs() == 0) { in getAsString()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULibFunc.h | 333 virtual unsigned getNumArgs() const = 0; 373 unsigned getNumArgs() const { return Impl->getNumArgs(); } in getNumArgs() function 417 unsigned getNumArgs() const override; 447 unsigned getNumArgs() const override;
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | UnusedRaiiCheck.cpp | 82 Node->getNumArgs() == 0 || in check() 86 auto DefaultConstruction = Node->getNumArgs() == 0; in check()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | TemplateBase.h | 703 return getArgs() + getNumArgs(); 708 return getArgs() + getNumArgs(); 713 assert(Idx < getNumArgs() && "Template argument out of range"); 719 assert(Idx < getNumArgs() && "Template argument out of range"); 724 assert(Idx < getNumArgs() && "Template argument out of range");
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CXComment.cpp | 174 return ICC->getNumArgs(); in clang_InlineCommandComment_getNumArgs() 180 if (!ICC || ArgIdx >= ICC->getNumArgs()) in clang_InlineCommandComment_getArgText() 240 return BCC->getNumArgs(); in clang_BlockCommandComment_getNumArgs() 246 if (!BCC || ArgIdx >= BCC->getNumArgs()) in clang_BlockCommandComment_getArgText()
|