Home | History | Annotate | Download | only in Sema

Lines Matching defs:Method

150       // Objective-C method declarations in categories are not modelled as
187 CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(Decl);
189 if (Method && Method->isDeleted() && Method->isDefaulted()) {
190 // If the method was explicitly defaulted, point at that declaration.
191 if (!Method->isImplicit())
196 CXXSpecialMember CSM = getSpecialMember(Method);
198 ShouldDeleteSpecialMember(Method, CSM, /*Diagnose=*/true);
249 // Check if this is an inlined function or method.
2123 // If this reference is in an Objective-C method, then we need to do
2243 // instance method.
2362 /// detected that we're currently inside an ObjC method. Perform some
2381 // found a decl, but that decl is outside the current instance method (i.e.
2385 // If we're in a class method, we don't normally want to look for
2404 // Diagnose using an ivar in a class method.
2476 // If accessing a stand-alone ivar in a class method, this is an error.
2540 } else if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(Member)) {
2541 if (Method->isStatic())
2544 DestType = Method->getThisType(Context);
2956 // If we're referring to a method with an __unknown_anytype
4194 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl))
4195 if (Method->isInstance())
5020 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl))
5021 if (!Method->isStatic())
6191 /// FindCompositeObjCPointerType - Helper method to find composite type of
8169 // Try to find the -isEqual: method.
8171 ObjCMethodDecl *Method = S.LookupMethodInObjectType(IsEqualSel,
8174 if (!Method) {
8177 Method = S.LookupInstanceMethodInGlobalPool(IsEqualSel, SourceRange(),
8181 Method = S.LookupMethodInQualifiedType(IsEqualSel, Type,
8186 if (!Method)
8189 QualType T = Method->parameters()[0]->getType();
8193 QualType R = Method->getReturnType();
8921 // The following is safe because we only use this method for
8993 /// to the declaration of a const variable, showing that a method is const, or
9157 ObjCMethodDecl *method = S.getCurMethodDecl();
9158 if (method && var == method->getSelfDecl())
9159 DiagID = method->isClassMethod()
9628 // If it's an instance method, make a member pointer.
9645 // The method was named without a qualifier.
10665 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(VD))
10666 return Method->isInstance();
10678 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(*D)) {
10679 if (Method->isInstance())
13293 // If this is a call to a method via a cast, also mark the method in the
13321 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(E->getDecl()))
13322 if (Method->isVirtual())
13337 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(E->getMemberDecl()))
13338 if (Method->isPure())
13348 /// functions and variables. This method should not be used when building a
13986 // Rewrite the method result type if available.
13987 if (ObjCMethodDecl *Method = E->getMethodDecl()) {
13988 assert(Method->getReturnType() == S.Context.UnknownAnyTy);
13989 Method->setReturnType(DestType);