Lines Matching refs:Method
114 void Sema::ImplicitExceptionSpecification::CalledDecl(CXXMethodDecl *Method) {
117 if (!Method || ComputedEST == EST_MSAny || ComputedEST == EST_Delayed)
121 = Method->getType()->getAs<FunctionProtoType>();
1208 // Update the end location of a method that has a virt-specifiers.
2797 // Keep a set of seen pure methods so we won't diagnose the same method
2817 if (!SO->second.front().Method->isPure())
2820 if (!SeenPureMethods.insert(SO->second.front().Method))
2823 Diag(SO->second.front().Method->getLocation(),
2825 << SO->second.front().Method->getDeclName() << RD->getDeclName();
2949 /// Check for invalid uses of an abstract type in a method declaration.
2972 // Methods and method templates.
3070 // See if a method overloads virtual methods in a base
3961 CXXMethodDecl *Method;
3968 /// method overloads virtual methods in a base class without overriding any,
3978 DeclarationName Name = Data.Method->getDeclName();
3993 // If the method we are checking overrides a method from its base
3995 if (!Data.S->IsOverload(Data.Method, MD, false))
4009 /// \brief See if a method overloads virtual methods in a base class without
4022 Data.Method = MD;
4026 // by 'using' in a set. A base method not in this set is hidden.
4163 /// parsing those parts of the given Method declaration that could
4166 /// Method declaration as if we had just parsed the qualified method
4173 /// C++ method declaration. We're (re-)introducing the given
4175 /// the method declaration. For example, we could see an
4194 /// processing the delayed method declaration for Method. The method
4197 /// immediately!) for this method, if it was also defined inside the
4205 FunctionDecl *Method = cast<FunctionDecl>(MethodD);
4211 if (CXXConstructorDecl *Constructor = dyn_cast<CXXConstructorDecl>(Method))
4215 if (!Method->isInvalidDecl())
4216 CheckCXXDefaultArguments(Method);
5863 ImplicitlyDefinedFunctionScope(Sema &S, CXXMethodDecl *Method)
5864 : S(S), SavedContext(S, Method)
6455 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(D))
6456 if (Method->isCopyAssignmentOperator())
8591 // create a method or method template, and wait for instantiation.
8866 /// \brief Mark the given method pure.
8868 /// \param Method the method to be marked pure.
8871 bool Sema::CheckPureMethod(CXXMethodDecl *Method, SourceRange InitRange) {
8874 Method->setRangeEnd(EndLoc);
8876 if (Method->isVirtual() || Method->getParent()->isDependentContext()) {
8877 Method->setPure();
8881 if (!Method->isInvalidDecl())
8882 Diag(Method->getLocation(), diag::err_non_virtual_pure)
8883 << Method->getDeclName() << InitRange;
8891 /// After this method is called, according to [C++ 3.4.1p13], if 'Dcl' is a