Home | History | Annotate | Download | only in Sema

Lines Matching defs:Method

152                                                  const CXXMethodDecl *Method) {
154 if (!Method || ComputedEST == EST_MSAny)
158 = Method->getType()->getAs<FunctionProtoType>();
805 const CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(NewFD);
806 if (Method && Method->isVirtual()) {
811 const CXXMethodDecl *WrittenVirtual = Method;
814 if (WrittenVirtual != Method)
1907 // If we have a non-virtual method, check if if hides a virtual method.
1908 // (In that case, it's most likely the method has the wrong type.)
2264 // Update the end location of a method that has a virt-specifiers.
4515 // Keep a set of seen pure methods so we won't diagnose the same method
4535 if (!SO->second.front().Method->isPure())
4538 if (!SeenPureMethods.insert(SO->second.front().Method).second)
4541 Diag(SO->second.front().Method->getLocation(),
4543 << SO->second.front().Method->getDeclName() << RD->getDeclName();
4668 /// Check for invalid uses of an abstract type in a method declaration.
4689 // Methods and method templates.
4932 // See if a method overloads virtual methods in a base
4960 // At least one method has the 'override' control declared.
5364 // parsed when the method was defaulted, grab it now.
5961 llvm_unreachable("unknown special method kind");
6224 // Must have a virtual method.
6244 CXXMethodDecl *Method;
6250 /// \brief Check whether any most overriden method from MD in Methods
6264 /// method overloads virtual methods in a base class without overriding any,
6274 DeclarationName Name = Data.Method->getDeclName();
6289 // If the method we are checking overrides a method from its base
6298 if (!Data.S->IsOverload(Data.Method, MD, false))
6323 /// \brief Check if a method overloads virtual methods in a base class without
6334 Data.Method = MD;
6338 // by 'using' in a set. A base method not in this set is hidden.
6547 /// parsing those parts of the given Method declaration that could
6550 /// Method declaration as if we had just parsed the qualified method
6557 /// C++ method declaration. We're (re-)introducing the given
6559 /// the method declaration. For example, we could see an
6578 /// processing the delayed method declaration for Method. The method
6581 /// immediately!) for this method, if it was also defined inside the
6589 FunctionDecl *Method = cast<FunctionDecl>(MethodD);
6595 if (CXXConstructorDecl *Constructor = dyn_cast<CXXConstructorDecl>(Method))
6599 if (!Method->isInvalidDecl())
6600 CheckCXXDefaultArguments(Method);
9752 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(D))
9753 if (Method->isCopyAssignmentOperator() ||
9754 (!Copying && Method->isMoveAssignmentOperator()))
12622 // create a method or method template, and wait for instantiation.
12812 // If the method was defaulted on its first declaration, we will have
13001 /// \brief Mark the given method pure.
13003 /// \param Method the method to be marked pure.
13006 bool Sema::CheckPureMethod(CXXMethodDecl *Method, SourceRange InitRange) {
13009 Method->setRangeEnd(EndLoc);
13011 if (Method->isVirtual() || Method->getParent()->isDependentContext()) {
13012 Method->setPure();
13016 if (!Method->isInvalidDecl())
13017 Diag(Method->getLocation(), diag::err_non_virtual_pure)
13018 << Method->getDeclName() << InitRange;
13034 /// After this method is called, according to [C++ 3.4.1p13], if 'Dcl' is a
13275 CXXMethodDecl *Overrider = OI->second.front().Method;
13448 bool Sema::checkThisInStaticMemberFunctionType(CXXMethodDecl *Method) {
13449 TypeSourceInfo *TSInfo = Method->getTypeSourceInfo();
13474 if (checkThisInStaticMemberFunctionExceptionSpec(Method))
13477 return checkThisInStaticMemberFunctionAttributes(Method);
13480 bool Sema::checkThisInStaticMemberFunctionExceptionSpec(CXXMethodDecl *Method) {
13481 TypeSourceInfo *TSInfo = Method->getTypeSourceInfo();
13518 bool Sema::checkThisInStaticMemberFunctionAttributes(CXXMethodDecl *Method) {
13522 for (const auto *A : Method->attrs()) {
13631 // Dig out the method we're referring to.
13635 CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(MethodD);
13636 if (!Method)
13647 Context.adjustExceptionSpec(Method, ESI, /*AsWritten*/true);
13649 if (Method->isStatic())
13650 checkThisInStaticMemberFunctionExceptionSpec(Method);
13652 if (Method->isVirtual()) {
13654 for (CXXMethodDecl::method_iterator O = Method->begin_overridden_methods(),
13655 OEnd = Method->end_overridden_methods();
13657 CheckOverridingFunctionExceptionSpec(Method, *O);