Home | History | Annotate | Download | only in Sema

Lines Matching refs:Args

151 /// \brief Check if the attribute has exactly as many args as Num. May
164 /// \brief Check if the attribute has at least as many args as Num. May
455 SmallVectorImpl<Expr *> &Args,
463 Args.push_back(ArgExp);
472 Args.push_back(ArgExp);
480 Args.push_back(ArgExp);
523 Args.push_back(ArgExp);
533 // and types of args).
548 SmallVector<Expr*, 1> Args;
550 checkAttrArgsAreCapabilityObjs(S, D, Attr, Args);
551 unsigned Size = Args.size();
555 Arg = Args[0];
585 SmallVectorImpl<Expr *> &Args) {
601 checkAttrArgsAreCapabilityObjs(S, D, Attr, Args);
602 if (Args.empty())
610 SmallVector<Expr*, 1> Args;
611 if (!checkAcquireOrderAttrCommon(S, D, Attr, Args))
614 Expr **StartArg = &Args[0];
617 StartArg, Args.size(),
623 SmallVector<Expr*, 1> Args;
624 if (!checkAcquireOrderAttrCommon(S, D, Attr, Args))
627 Expr **StartArg = &Args[0];
630 StartArg, Args.size(),
636 SmallVectorImpl<Expr *> &Args) {
639 checkAttrArgsAreCapabilityObjs(S, D, Attr, Args, 0, /*ParamIdxOk=*/true);
646 SmallVector<Expr*, 1> Args;
647 if (!checkLockFunAttrCommon(S, D, Attr, Args))
650 unsigned Size = Args.size();
651 Expr **StartArg = Size == 0 ? nullptr : &Args[0];
659 SmallVector<Expr*, 1> Args;
660 if (!checkLockFunAttrCommon(S, D, Attr, Args))
663 unsigned Size = Args.size();
664 Expr **StartArg = Size == 0 ? nullptr : &Args[0];
674 SmallVectorImpl<Expr *> &Args) {
685 checkAttrArgsAreCapabilityObjs(S, D, Attr, Args, 1);
692 SmallVector<Expr*, 2> Args;
693 if (!checkTryLockFunAttrCommon(S, D, Attr, Args))
699 Args.data(), Args.size(),
705 SmallVector<Expr*, 2> Args;
706 if (!checkTryLockFunAttrCommon(S, D, Attr, Args))
712 Args.data(), Args.size(),
719 SmallVector<Expr*, 1> Args;
720 checkAttrArgsAreCapabilityObjs(S, D, Attr, Args);
721 unsigned Size = Args.size();
726 LockReturnedAttr(Attr.getRange(), S.Context, Args[0],
736 SmallVector<Expr*, 1> Args;
737 checkAttrArgsAreCapabilityObjs(S, D, Attr, Args);
738 unsigned Size = Args.size();
741 Expr **StartArg = &Args[0];
3950 SmallVector<Expr*, 1> Args;
3951 if (!checkLockFunAttrCommon(S, D, Attr, Args))
3956 Args.data(), Args.size(),
3962 SmallVector<Expr*, 2> Args;
3963 if (!checkTryLockFunAttrCommon(S, D, Attr, Args))
3969 Args.data(),
3970 Args.size(),
3977 SmallVector<Expr *, 1> Args;
3978 checkAttrArgsAreCapabilityObjs(S, D, Attr, Args, 0, true);
3981 Attr.getRange(), S.Context, Args.data(), Args.size(),
3991 SmallVector<Expr*, 1> Args;
3992 checkAttrArgsAreCapabilityObjs(S, D, Attr, Args);
3993 if (Args.empty())
3997 RequiresCapabilityAttr(Attr.getRange(), S.Context, Args.data(),
3998 Args.size(), Attr.getAttributeSpellingListIndex());