Lines Matching defs:Method

233       if (ObjCMethodDecl *Method = SemaRef.getCurMethodDecl())
234 if (Method->isInstanceMethod())
235 if (ObjCInterfaceDecl *Interface = Method->getClassInterface())
326 /// \param Method the function declaration.
330 bool canCxxMethodBeCalled(const CXXMethodDecl *Method,
425 } else if (const auto *Method = dyn_cast<ObjCMethodDecl>(S.CurContext)) {
427 Type = Method->getReturnType();
951 else if (const auto *Method = dyn_cast<ObjCMethodDecl>(ND))
952 T = Method->getSendResultType();
1049 if (const auto *Method = dyn_cast<ObjCMethodDecl>(R.Declaration))
1050 if (PreferredSelector == Method->getSelector())
1292 bool ResultBuilder::canCxxMethodBeCalled(const CXXMethodDecl *Method,
1311 (CurrentClassScope == Method->getParent() ||
1312 CurrentClassScope->isDerivedFrom(Method->getParent()));
1322 auto *MaybeBase = Method->getParent();
1344 const auto *Method = dyn_cast<CXXMethodDecl>(ND);
1345 if (Method && !Method->isStatic()) {
1346 return canCxxMethodBeCalled(Method, BaseExprType);
1423 if (const auto *Method = dyn_cast<CXXMethodDecl>(R.Declaration))
1424 if (Method->isInstance()) {
1425 Qualifiers MethodQuals = Method->getMethodQualifiers();
1434 switch (Method->getRefQualifier()) {
1451 CurContext, Method->getDeclName().getAsOpaqueInteger())];
1454 switch (compareOverloads(*Method,
1470 OverloadSet.Add(Method, Results.size());
2092 for (auto *Method : CR->methods()) {
2093 if (!Method->isVirtual() || !Method->getIdentifier())
2095 Overrides[Method->getName()].push_back(Method);
2102 for (auto *Method : BR->methods()) {
2103 if (!Method->isVirtual() || !Method->getIdentifier())
2105 const auto it = Overrides.find(Method->getName());
2111 if (!S.IsOverload(MD, Method, false)) {
2121 CodeCompletionResult CCR(Method, 0);
2127 Results.AddResult(CodeCompletionResult(CCS, Method, CCP_CodePattern));
2473 else if (const auto *Method = dyn_cast<ObjCMethodDecl>(SemaRef.CurContext))
2474 ReturnType = Method->getReturnType();
2714 if (ObjCMethodDecl *Method = SemaRef.getCurMethodDecl()) {
2716 if (ObjCInterfaceDecl *ID = Method->getClassInterface())
2720 if (Method->isInstanceMethod())
2792 else if (const auto *Method = dyn_cast<ObjCMethodDecl>(ND)) {
2794 T = Method->getSendResultType(BaseType);
2796 T = Method->getReturnType();
3665 if (const auto *Method = dyn_cast<ObjCMethodDecl>(ND)) {
3666 Selector Sel = Method->getSelector();
3682 if (Method->param_size() == 1)
3688 for (ObjCMethodDecl::param_const_iterator P = Method->param_begin(),
3689 PEnd = Method->param_end();
3712 ObjCSubsts = CCContext.getBaseType()->getObjCSubstitutions(Method);
3729 if (Method->isVariadic() && (P + 1) == PEnd)
3740 if (Method->isVariadic()) {
3741 if (Method->param_size() == 0) {
3750 MaybeAddSentinel(PP, Method, Result);
4319 CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(CurContext);
4320 if (!Method || !Method->isVirtual())
4325 for (auto *P : Method->parameters())
4330 for (const CXXMethodDecl *Overridden : Method->overridden_methods()) {
4333 if (Overridden->getCanonicalDecl() == Method->getCanonicalDecl())
4353 for (auto *P : Method->parameters()) {
7609 static bool isAcceptableObjCMethod(ObjCMethodDecl *Method,
7613 return isAcceptableObjCSelector(Method->getSelector(), WantKind, SelIdents,
7885 ObjCMethodDecl *Method = Msg->getMethodDecl();
7886 if (!Method)
7914 if (Method->isInstanceMethod())
8074 if (ObjCMethodDecl *Method = SemaRef.getCurMethodDecl())
8075 if (ObjCInterfaceDecl *Iface = Method->getClassInterface())
8173 const ObjCMethodDecl *Method = cast<ObjCMethodDecl>(R.Declaration);
8174 if (NumSelIdents <= Method->param_size()) {
8176 Method->parameters()[NumSelIdents - 1]->getType();
9703 ObjCMethodDecl *Method = M->second.getPointer();
9709 Builder.AddTextChunk(Method->isInstanceMethod() ? "-" : "+");
9716 QualType ResTy = Method->getSendResultType().stripObjCKindOfType(Context);
9718 AddObjCPassingTypeChunk(ResTy, Method->getObjCDeclQualifier(), Context,
9722 Selector Sel = Method->getSelector();
9731 for (ObjCMethodDecl::param_iterator P = Method->param_begin(),
9732 PEnd = Method->param_end();
9763 if (Method->isVariadic()) {
9764 if (Method->param_size() > 0)
9774 if (!Method->getReturnType()->isVoidType()) {
9788 auto R = Result(Builder.TakeString(), Method, Priority);