Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFindingAction.cpp70 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(FoundDecl)) { in Find() local
71 addUSRsOfOverridenFunctions(MethodDecl); in Find()
76 addUSRsOfInstantiatedMethods(MethodDecl); in Find()
90 bool VisitCXXMethodDecl(const CXXMethodDecl *MethodDecl) { in VisitCXXMethodDecl() argument
91 if (MethodDecl->isVirtual()) in VisitCXXMethodDecl()
92 OverriddenMethods.push_back(MethodDecl); in VisitCXXMethodDecl()
93 if (MethodDecl->getInstantiatedFromMemberFunction()) in VisitCXXMethodDecl()
94 InstantiatedMethods.push_back(MethodDecl); in VisitCXXMethodDecl()
138 void addUSRsOfOverridenFunctions(const CXXMethodDecl *MethodDecl) { in addUSRsOfOverridenFunctions() argument
139 USRSet.insert(getUSRForDecl(MethodDecl)); in addUSRsOfOverridenFunctions()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DMoveChecker.cpp433 if (!MethodDecl) in checkPostCall()
443 if (!ConstructorDecl && !MethodDecl->isMoveAssignmentOperator()) in checkPostCall()
469 const CXXRecordDecl *RD = MethodDecl->getParent(); in checkPostCall()
619 if (!MethodDecl) in checkPreCall()
626 if (isStateResetMethod(MethodDecl)) { in checkPreCall()
632 if (isMoveSafeMethod(MethodDecl)) in checkPreCall()
636 const CXXRecordDecl *RD = MethodDecl->getParent(); in checkPreCall()
638 if (MethodDecl->isOverloadedOperator()) { in checkPreCall()
639 OverloadedOperatorKind OOK = MethodDecl->getOverloadedOperator(); in checkPreCall()
646 if (MethodDecl->isCopyAssignmentOperator() || in checkPreCall()
[all …]
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTResultSynthesizer.cpp156 ObjCMethodDecl *MethodDecl) { in SynthesizeObjCMethodResult() argument
162 if (!MethodDecl) in SynthesizeObjCMethodResult()
169 MethodDecl->print(os); in SynthesizeObjCMethodResult()
176 Stmt *method_body = MethodDecl->getBody(); in SynthesizeObjCMethodResult()
183 bool ret = SynthesizeBodyResult(compound_stmt, MethodDecl); in SynthesizeObjCMethodResult()
189 MethodDecl->print(os); in SynthesizeObjCMethodResult()
H A DASTResultSynthesizer.h142 bool SynthesizeObjCMethodResult(clang::ObjCMethodDecl *MethodDecl);
/freebsd-12.1/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DObjCMT.cpp1628 if (MethodDecl->hasBody() || MethodDecl->isImplicit()) in migrateAddMethodAnnotation()
1631 CallEffects CE = CallEffects::getEffect(MethodDecl); in migrateAddMethodAnnotation()
1633 (MethodDecl->hasAttr<CFReturnsRetainedAttr>() || in migrateAddMethodAnnotation()
1634 MethodDecl->hasAttr<CFReturnsNotRetainedAttr>() || in migrateAddMethodAnnotation()
1635 MethodDecl->hasAttr<NSReturnsRetainedAttr>() || in migrateAddMethodAnnotation()
1636 MethodDecl->hasAttr<NSReturnsNotRetainedAttr>() || in migrateAddMethodAnnotation()
1640 !MethodDecl->hasAttr<NSConsumesSelfAttr>() && in migrateAddMethodAnnotation()
1641 MethodDecl->getMethodFamily() != OMF_init && in migrateAddMethodAnnotation()
1642 MethodDecl->getMethodFamily() != OMF_release && in migrateAddMethodAnnotation()
1651 (MethodDecl->param_begin() == MethodDecl->param_end())) in migrateAddMethodAnnotation()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DDeclObjC.cpp694 ObjCMethodDecl *MethodDecl = nullptr; in lookupMethod() local
702 return MethodDecl; in lookupMethod()
707 if (C != Cat || !MethodDecl->isImplicit()) in lookupMethod()
708 return MethodDecl; in lookupMethod()
713 return MethodDecl; in lookupMethod()
723 if (C != Cat || !MethodDecl->isImplicit()) in lookupMethod()
724 return MethodDecl; in lookupMethod()
1893 ObjCMethodDecl *MethodDecl = nullptr; in lookupMethod() local
1901 if ((MethodDecl = getMethod(Sel, isInstance))) in lookupMethod()
1902 return MethodDecl; in lookupMethod()
[all …]
H A DASTContext.cpp10296 ASTContext::ObjCMethodsAreEqual(const ObjCMethodDecl *MethodDecl, in ObjCMethodsAreEqual() argument
10299 if (MethodDecl->hasAttr<UnavailableAttr>() in ObjCMethodsAreEqual()
10300 || MethodDecl->hasAttr<DeprecatedAttr>()) in ObjCMethodsAreEqual()
10302 if (MethodDecl->getObjCDeclQualifier() != in ObjCMethodsAreEqual()
10305 if (!hasSameType(MethodDecl->getReturnType(), MethodImpl->getReturnType())) in ObjCMethodsAreEqual()
10308 if (MethodDecl->param_size() != MethodImpl->param_size()) in ObjCMethodsAreEqual()
10312 IF = MethodDecl->param_begin(), EM = MethodImpl->param_end(), in ObjCMethodsAreEqual()
10313 EF = MethodDecl->param_end(); in ObjCMethodsAreEqual()
10323 return (MethodDecl->isVariadic() == MethodImpl->isVariadic()); in ObjCMethodsAreEqual()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaDeclObjC.cpp2313 << MethodDecl->getReturnTypeSourceRange(); in CheckMethodOverrideReturn()
2373 S.Diag(MethodDecl->getLocation(), IsOverridingMode in CheckMethodOverrideReturn()
2376 << MethodDecl->getReturnTypeSourceRange(); in CheckMethodOverrideReturn()
2542 CheckMethodOverrideReturn(*this, ImpMethodDecl, MethodDecl, in WarnConflictingTypedMethods()
2548 EF = MethodDecl->param_end(); in WarnConflictingTypedMethods()
2587 ObjCMethodDecl *MethodDecl, in WarnExactTypedMethods() argument
2596 if (MethodDecl->hasAttr<UnavailableAttr>() || in WarnExactTypedMethods()
2597 MethodDecl->hasAttr<DeprecatedAttr>()) in WarnExactTypedMethods()
2605 EF = MethodDecl->param_end(); in WarnExactTypedMethods()
2616 match = !(MethodDecl->isClassMethod() && in WarnExactTypedMethods()
[all …]
H A DSemaCoroutine.cpp1381 auto *MethodDecl = MbrRef->getMethodDecl(); in noteMemberDeclaredHere() local
1382 S.Diag(MethodDecl->getLocation(), diag::note_member_declared_here) in noteMemberDeclaredHere()
1383 << MethodDecl; in noteMemberDeclaredHere()
H A DSemaExpr.cpp14716 if (MethodDecl->isOverloadedOperator() && in MarkFunctionReferenced()
14717 MethodDecl->getOverloadedOperator() == OO_Equal) { in MarkFunctionReferenced()
14718 MethodDecl = cast<CXXMethodDecl>(MethodDecl->getFirstDecl()); in MarkFunctionReferenced()
14719 if (MethodDecl->isDefaulted() && !MethodDecl->isDeleted()) { in MarkFunctionReferenced()
14720 if (MethodDecl->isCopyAssignmentOperator()) in MarkFunctionReferenced()
14721 DefineImplicitCopyAssignment(Loc, MethodDecl); in MarkFunctionReferenced()
14722 else if (MethodDecl->isMoveAssignmentOperator()) in MarkFunctionReferenced()
14723 DefineImplicitMoveAssignment(Loc, MethodDecl); in MarkFunctionReferenced()
14725 } else if (isa<CXXConversionDecl>(MethodDecl) && in MarkFunctionReferenced()
14726 MethodDecl->getParent()->isLambda()) { in MarkFunctionReferenced()
[all …]
H A DSemaDeclAttr.cpp145 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(D)) in isInstanceMethod() local
146 return MethodDecl->isInstance(); in isInstanceMethod()
7804 if (const auto *MethodDecl = dyn_cast<ObjCMethodDecl>(ReferringDecl)) { in DoEmitAvailabilityWarning() local
7805 Selector Sel = MethodDecl->getSelector(); in DoEmitAvailabilityWarning()
H A DSemaDeclCXX.cpp13317 if (CXXMethodDecl *MethodDecl = dyn_cast<CXXMethodDecl>(FnDecl)) { in CheckOverloadedOperatorDeclaration() local
13318 if (MethodDecl->isStatic()) in CheckOverloadedOperatorDeclaration()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/
H A DInitialization.h184 ObjCMethodDecl *MethodDecl; member
340 Result.MethodDecl = MD; in InitializeRelatedResult()
432 ObjCMethodDecl *getMethodDecl() const { return MethodDecl; } in getMethodDecl()
H A DSema.h3425 ObjCMethodDecl *MethodDecl,
3435 ObjCMethodDecl *MethodDecl,
4966 CXXMethodDecl *MethodDecl);
4979 CXXMethodDecl *MethodDecl);
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DItaniumCXXABI.cpp1721 auto *MethodDecl = cast<CXXMethodDecl>(GD.getDecl()); in getVirtualFunctionPointer() local
1722 llvm::Value *VTable = CGF.GetVTablePtr(This, Ty, MethodDecl->getParent()); in getVirtualFunctionPointer()
1726 if (CGF.ShouldEmitVTableTypeCheckedLoad(MethodDecl->getParent())) { in getVirtualFunctionPointer()
1728 MethodDecl->getParent(), VTable, in getVirtualFunctionPointer()
1731 CGF.EmitTypeMetadataCodeForVCall(MethodDecl->getParent(), VTable, Loc); in getVirtualFunctionPointer()
H A DMicrosoftCXXABI.cpp1843 auto *MethodDecl = cast<CXXMethodDecl>(GD.getDecl()); in getVirtualFunctionPointer() local
1844 llvm::Value *VTable = CGF.GetVTablePtr(VPtr, Ty, MethodDecl->getParent()); in getVirtualFunctionPointer()
1853 ML.VBase ? ML.VBase : MethodDecl->getParent()), in getVirtualFunctionPointer()
1862 if (CGF.ShouldEmitVTableTypeCheckedLoad(MethodDecl->getParent())) { in getVirtualFunctionPointer()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DASTContext.h2328 bool ObjCMethodsAreEqual(const ObjCMethodDecl *MethodDecl,