Home
last modified time | relevance | path

Searched refs:MethodDecl (Results 1 – 18 of 18) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/clang/examples/CallSuperAttribute/
H A DCallSuperAttrInfo.cpp80 bool VisitCXXMethodDecl(CXXMethodDecl *MethodDecl) { in VisitCXXMethodDecl() argument
81 if (MethodDecl->isThisDeclarationADefinition() && MethodDecl->hasBody()) { in VisitCXXMethodDecl()
84 for (const auto *Overridden : MethodDecl->overridden_methods()) { in VisitCXXMethodDecl()
92 Visitor.TraverseDecl(MethodDecl); in VisitCXXMethodDecl()
96 Diags.Report(MethodDecl->getLocation(), WarningSuperNotCalled) in VisitCXXMethodDecl()
97 << LeftOverriddens << MethodDecl; in VisitCXXMethodDecl()
129 const CXXMethodDecl *MethodDecl) { in lateDiagAppertainsToDecl() argument
130 if (MethodDecl->hasAttr<FinalAttr>()) { in lateDiagAppertainsToDecl()
134 Diags.Report(MethodDecl->getLocation(), ID); in lateDiagAppertainsToDecl()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFindingAction.cpp71 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(FoundDecl)) { in Find() local
72 addUSRsOfOverridenFunctions(MethodDecl); in Find()
77 addUSRsOfInstantiatedMethods(MethodDecl); in Find()
107 bool VisitCXXMethodDecl(const CXXMethodDecl *MethodDecl) { in VisitCXXMethodDecl() argument
108 if (MethodDecl->isVirtual()) in VisitCXXMethodDecl()
109 OverriddenMethods.push_back(MethodDecl); in VisitCXXMethodDecl()
110 if (MethodDecl->getInstantiatedFromMemberFunction()) in VisitCXXMethodDecl()
111 InstantiatedMethods.push_back(MethodDecl); in VisitCXXMethodDecl()
181 void addUSRsOfOverridenFunctions(const CXXMethodDecl *MethodDecl) { in addUSRsOfOverridenFunctions() argument
182 USRSet.insert(getUSRForDecl(MethodDecl)); in addUSRsOfOverridenFunctions()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DMoveChecker.cpp445 const auto MethodDecl = dyn_cast_or_null<CXXMethodDecl>(AFC->getDecl()); in checkPostCall() local
446 if (!MethodDecl) in checkPostCall()
452 const auto *ConstructorDecl = dyn_cast<CXXConstructorDecl>(MethodDecl); in checkPostCall()
456 if (!ConstructorDecl && !MethodDecl->isMoveAssignmentOperator()) in checkPostCall()
482 const CXXRecordDecl *RD = MethodDecl->getParent(); in checkPostCall()
631 const auto MethodDecl = dyn_cast_or_null<CXXMethodDecl>(IC->getDecl()); in checkPreCall() local
632 if (!MethodDecl) in checkPreCall()
639 if (isStateResetMethod(MethodDecl)) { in checkPreCall()
645 if (isMoveSafeMethod(MethodDecl)) in checkPreCall()
649 const CXXRecordDecl *RD = MethodDecl->getParent(); in checkPreCall()
[all …]
H A DSmartPtrModeling.cpp89 const auto *MethodDecl = dyn_cast_or_null<CXXMethodDecl>(Call.getDecl()); in isStdSmartPtrCall() local
90 if (!MethodDecl || !MethodDecl->getParent()) in isStdSmartPtrCall()
93 const auto *RecordDecl = MethodDecl->getParent(); in isStdSmartPtrCall()
141 const auto *MethodDecl = dyn_cast_or_null<CXXMethodDecl>(Call.getDecl()); in getInnerPointerType() local
142 if (!MethodDecl || !MethodDecl->getParent()) in getInnerPointerType()
145 const auto *RecordDecl = MethodDecl->getParent(); in getInnerPointerType()
/netbsd-src/external/apache2/llvm/dist/clang/lib/ARCMigrate/
H A DObjCMT.cpp72 const ObjCMethodDecl *MethodDecl, bool ResultAnnotated);
82 const ObjCMethodDecl *MethodDecl);
1571 const ObjCMethodDecl *MethodDecl, in AddCFAnnotations() argument
1585 ObjCMethodFamily OMF = MethodDecl->getMethodFamily(); in AddCFAnnotations()
1603 commit.insertBefore(MethodDecl->getEndLoc(), AnnotationString); in AddCFAnnotations()
1608 for (ObjCMethodDecl::param_const_iterator pi = MethodDecl->param_begin(), in AddCFAnnotations()
1609 pe = MethodDecl->param_end(); pi != pe; ++pi, ++i) { in AddCFAnnotations()
1625 const ObjCMethodDecl *MethodDecl) { in migrateAddMethodAnnotation() argument
1626 if (MethodDecl->hasBody() || MethodDecl->isImplicit()) in migrateAddMethodAnnotation()
1630 getSummaryManager(Ctx).getSummary(AnyCall(MethodDecl)); in migrateAddMethodAnnotation()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DDeclObjC.cpp695 ObjCMethodDecl *MethodDecl = nullptr; in lookupMethod() local
702 if ((MethodDecl = ClassDecl->getMethod(Sel, isInstance))) in lookupMethod()
703 return MethodDecl; in lookupMethod()
707 if ((MethodDecl = Cat->getMethod(Sel, isInstance))) in lookupMethod()
708 if (C != Cat || !MethodDecl->isImplicit()) in lookupMethod()
709 return MethodDecl; in lookupMethod()
713 if ((MethodDecl = I->lookupMethod(Sel, isInstance))) in lookupMethod()
714 return MethodDecl; in lookupMethod()
723 if ((MethodDecl = Protocol->lookupMethod(Sel, isInstance))) in lookupMethod()
724 if (C != Cat || !MethodDecl->isImplicit()) in lookupMethod()
[all …]
H A DASTContext.cpp11301 ASTContext::ObjCMethodsAreEqual(const ObjCMethodDecl *MethodDecl, in ObjCMethodsAreEqual() argument
11304 if (MethodDecl->hasAttr<UnavailableAttr>() in ObjCMethodsAreEqual()
11305 || MethodDecl->hasAttr<DeprecatedAttr>()) in ObjCMethodsAreEqual()
11307 if (MethodDecl->getObjCDeclQualifier() != in ObjCMethodsAreEqual()
11310 if (!hasSameType(MethodDecl->getReturnType(), MethodImpl->getReturnType())) in ObjCMethodsAreEqual()
11313 if (MethodDecl->param_size() != MethodImpl->param_size()) in ObjCMethodsAreEqual()
11317 IF = MethodDecl->param_begin(), EM = MethodImpl->param_end(), in ObjCMethodsAreEqual()
11318 EF = MethodDecl->param_end(); in ObjCMethodsAreEqual()
11328 return (MethodDecl->isVariadic() == MethodImpl->isVariadic()); in ObjCMethodsAreEqual()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaDeclObjC.cpp2320 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideReturn() argument
2325 objcModifiersConflict(MethodDecl->getObjCDeclQualifier(), in CheckMethodOverrideReturn()
2334 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration) in CheckMethodOverrideReturn()
2335 << MethodDecl->getReturnTypeSourceRange(); in CheckMethodOverrideReturn()
2343 MethodDecl->getReturnType(), in CheckMethodOverrideReturn()
2348 *MethodDecl->getReturnType()->getNullability(S.Context); in CheckMethodOverrideReturn()
2357 ((MethodDecl->getObjCDeclQualifier() & Decl::OBJC_TQ_CSNullability) in CheckMethodOverrideReturn()
2359 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration); in CheckMethodOverrideReturn()
2363 MethodDecl->getReturnType())) in CheckMethodOverrideReturn()
2377 MethodDecl->getReturnType()->getAs<ObjCObjectPointerType>()) { in CheckMethodOverrideReturn()
[all …]
H A DSemaAvailability.cpp499 if (const auto *MethodDecl = dyn_cast<ObjCMethodDecl>(ReferringDecl)) { in DoEmitAvailabilityWarning() local
500 Selector Sel = MethodDecl->getSelector(); in DoEmitAvailabilityWarning()
H A DSemaCoroutine.cpp1538 auto *MethodDecl = MbrRef->getMethodDecl(); in noteMemberDeclaredHere() local
1539 S.Diag(MethodDecl->getLocation(), diag::note_member_declared_here) in noteMemberDeclaredHere()
1540 << MethodDecl; in noteMemberDeclaredHere()
H A DSemaExpr.cpp16989 } else if (CXXMethodDecl *MethodDecl = dyn_cast<CXXMethodDecl>(Func)) { in MarkFunctionReferenced() local
16990 if (MethodDecl->isOverloadedOperator() && in MarkFunctionReferenced()
16991 MethodDecl->getOverloadedOperator() == OO_Equal) { in MarkFunctionReferenced()
16992 MethodDecl = cast<CXXMethodDecl>(MethodDecl->getFirstDecl()); in MarkFunctionReferenced()
16993 if (MethodDecl->isDefaulted() && !MethodDecl->isDeleted()) { in MarkFunctionReferenced()
16994 if (MethodDecl->isCopyAssignmentOperator()) in MarkFunctionReferenced()
16995 DefineImplicitCopyAssignment(Loc, MethodDecl); in MarkFunctionReferenced()
16996 else if (MethodDecl->isMoveAssignmentOperator()) in MarkFunctionReferenced()
16997 DefineImplicitMoveAssignment(Loc, MethodDecl); in MarkFunctionReferenced()
16999 } else if (isa<CXXConversionDecl>(MethodDecl) && in MarkFunctionReferenced()
[all …]
H A DSemaDeclAttr.cpp153 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(D)) in isInstanceMethod() local
154 return MethodDecl->isInstance(); in isInstanceMethod()
H A DSemaDeclCXX.cpp15505 if (CXXMethodDecl *MethodDecl = dyn_cast<CXXMethodDecl>(FnDecl)) { in CheckOverloadedOperatorDeclaration() local
15506 if (MethodDecl->isStatic()) in CheckOverloadedOperatorDeclaration()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/
H A DInitialization.h187 ObjCMethodDecl *MethodDecl; member
354 Result.MethodDecl = MD; in InitializeRelatedResult()
448 ObjCMethodDecl *getMethodDecl() const { return MethodDecl; } in getMethodDecl()
H A DSema.h4320 ObjCMethodDecl *MethodDecl,
4330 ObjCMethodDecl *MethodDecl,
5963 CXXMethodDecl *MethodDecl);
5976 CXXMethodDecl *MethodDecl);
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DItaniumCXXABI.cpp1945 auto *MethodDecl = cast<CXXMethodDecl>(GD.getDecl()); in getVirtualFunctionPointer() local
1947 This, Ty->getPointerTo()->getPointerTo(), MethodDecl->getParent()); in getVirtualFunctionPointer()
1951 if (CGF.ShouldEmitVTableTypeCheckedLoad(MethodDecl->getParent())) { in getVirtualFunctionPointer()
1953 MethodDecl->getParent(), VTable, in getVirtualFunctionPointer()
1956 CGF.EmitTypeMetadataCodeForVCall(MethodDecl->getParent(), VTable, Loc); in getVirtualFunctionPointer()
H A DMicrosoftCXXABI.cpp1925 auto *MethodDecl = cast<CXXMethodDecl>(GD.getDecl()); in getVirtualFunctionPointer() local
1927 MethodDecl->getParent()); in getVirtualFunctionPointer()
1936 ML.VBase ? ML.VBase : MethodDecl->getParent()), in getVirtualFunctionPointer()
1945 if (CGF.ShouldEmitVTableTypeCheckedLoad(MethodDecl->getParent())) { in getVirtualFunctionPointer()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DASTContext.h2454 bool ObjCMethodsAreEqual(const ObjCMethodDecl *MethodDecl,