Home | History | Annotate | Download | only in Sema

Lines Matching defs:Method

457 /// isTagName() - This method is called *for error recovery purposes only*
709 // synthesized instance variables), if we're in an Objective-C method.
1009 // A C++ inline method/friend is parsed *after* the topmost class
1015 // Return the declaration context of the topmost class the inline method is
1276 if (const CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(D))
1277 return Method->isCopyAssignmentOperator();
2307 /// getSpecialMember - get the special member enum for a method.
3274 /// ParsedFreeStandingDeclSpec - This method is invoked when a declspec with
3308 /// ParsedFreeStandingDeclSpec - This method is invoked when a declspec with
4578 /// Helper method to turn variable array types into constant array
4585 // This method tries to turn a variable array into a constant
4675 /// Helper method to turn variable array types into constant array
5736 /// This method is called whenever a VarDecl is added to a "useful"
6118 CXXMethodDecl *Method;
6122 /// method overrides a method in a base class, to be used with
6132 DeclarationName Name = Data->Method->getDeclName();
6148 if (MD->isVirtual() && !Data->S->IsOverload(Data->Method, MD, false))
6163 /// \param MD the overriding method.
6181 /// AddOverriddenMethods - See if a method overrides any in the base classes,
6184 // Look for virtual methods in base classes that this method might override.
6187 Data.Method = MD;
6579 // This is a C++ method declaration.
6840 // If this is a method defined in an __interface, and is not a constructor
6972 // Okay: Add virtual to the method.
7780 if (CXXMethodDecl *Method
7782 Method->setAccess(OldTemplateDecl->getAccess());
7799 // A valid redeclaration of a C++ method must be out-of-line,
7851 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(NewFD)) {
7852 if (!Method->isFunctionTemplateSpecialization() &&
7853 !Method->getDescribedFunctionTemplate() &&
7854 Method->isCanonicalDecl()) {
7855 if (AddOverriddenMethods(Method->getParent(), Method)) {
7858 ReportOverrides(*this, diag::err_static_overrides_virtual, Method);
7863 if (Method->isStatic())
7864 checkThisInStaticMemberFunctionType(Method);
8172 // Warn when a non-static method call is followed by non-static member
8268 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(RealDecl)) {
8275 CheckPureMethod(Method, Init->getSourceRange());
8277 Diag(Method->getLocation(), diag::err_member_function_initialization)
8278 << Method->getDeclName() << Init->getSourceRange();
8279 Method->setInvalidDecl();
8508 // Variables declared within a function/method body (except for references)
9767 // Ignore any declarations that occur in function or method
10148 assert(MD == getCurMethodDecl() && "Method parsing confused");
10274 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(D))
10275 if (Method->isStatic())
10276 checkThisInStaticMemberFunctionAttributes(Method);
12498 Diag(OM->Method->getLocation(), diag::note_final_overrider)
12499 << (const NamedDecl *)M->first << OM->Method->getParent();
13480 // If we are within an Objective-C method, we should consult
13481 // both the availability of the method as well as the
13483 // the entire method is considered deprecated from the