| /freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | USRFindingAction.cpp | 71 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 …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | MoveChecker.cpp | 446 if (!MethodDecl) in checkPostCall() 456 if (!ConstructorDecl && !MethodDecl->isMoveAssignmentOperator()) in checkPostCall() 482 const CXXRecordDecl *RD = MethodDecl->getParent(); in checkPostCall() 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() 651 if (MethodDecl->isOverloadedOperator()) { in checkPreCall() 652 OverloadedOperatorKind OOK = MethodDecl->getOverloadedOperator(); in checkPreCall() 659 if (MethodDecl->isCopyAssignmentOperator() || in checkPreCall() [all …]
|
| H A D | SmartPtrModeling.cpp | 130 const auto *MethodDecl = dyn_cast_or_null<CXXMethodDecl>(Call.getDecl()); in isStdSmartPtrCall() local 131 if (!MethodDecl || !MethodDecl->getParent()) in isStdSmartPtrCall() 133 return isStdSmartPtr(MethodDecl->getParent()); in isStdSmartPtrCall() 218 const auto *MethodDecl = dyn_cast_or_null<CXXMethodDecl>(Call.getDecl()); in getInnerPointerType() local 219 if (!MethodDecl || !MethodDecl->getParent()) in getInnerPointerType() 222 const auto *RecordDecl = MethodDecl->getParent(); in getInnerPointerType()
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ASTResultSynthesizer.cpp | 156 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 D | ASTResultSynthesizer.h | 118 bool SynthesizeObjCMethodResult(clang::ObjCMethodDecl *MethodDecl);
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/ARCMigrate/ |
| H A D | ObjCMT.cpp | 1626 if (MethodDecl->hasBody() || MethodDecl->isImplicit()) 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() 1637 MethodDecl->hasAttr<NSReturnsAutoreleasedAttr>()); 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-13.1/contrib/llvm-project/clang/lib/AST/ |
| H A D | DeclObjC.cpp | 695 ObjCMethodDecl *MethodDecl = nullptr; in lookupMethod() local 703 return MethodDecl; in lookupMethod() 708 if (C != Cat || !MethodDecl->isImplicit()) in lookupMethod() 709 return MethodDecl; in lookupMethod() 714 return MethodDecl; in lookupMethod() 724 if (C != Cat || !MethodDecl->isImplicit()) in lookupMethod() 725 return MethodDecl; in lookupMethod() 1949 ObjCMethodDecl *MethodDecl = nullptr; in lookupMethod() local 1957 if ((MethodDecl = getMethod(Sel, isInstance))) in lookupMethod() 1958 return MethodDecl; in lookupMethod() [all …]
|
| H A D | ASTContext.cpp | 11375 ASTContext::ObjCMethodsAreEqual(const ObjCMethodDecl *MethodDecl, in ObjCMethodsAreEqual() argument 11378 if (MethodDecl->hasAttr<UnavailableAttr>() in ObjCMethodsAreEqual() 11379 || MethodDecl->hasAttr<DeprecatedAttr>()) in ObjCMethodsAreEqual() 11381 if (MethodDecl->getObjCDeclQualifier() != in ObjCMethodsAreEqual() 11384 if (!hasSameType(MethodDecl->getReturnType(), MethodImpl->getReturnType())) in ObjCMethodsAreEqual() 11387 if (MethodDecl->param_size() != MethodImpl->param_size()) in ObjCMethodsAreEqual() 11391 IF = MethodDecl->param_begin(), EM = MethodImpl->param_end(), in ObjCMethodsAreEqual() 11392 EF = MethodDecl->param_end(); in ObjCMethodsAreEqual() 11402 return (MethodDecl->isVariadic() == MethodImpl->isVariadic()); in ObjCMethodsAreEqual()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaDeclObjC.cpp | 2335 << MethodDecl->getReturnTypeSourceRange(); in CheckMethodOverrideReturn() 2395 S.Diag(MethodDecl->getLocation(), IsOverridingMode in CheckMethodOverrideReturn() 2398 << MethodDecl->getReturnTypeSourceRange(); in CheckMethodOverrideReturn() 2564 CheckMethodOverrideReturn(*this, ImpMethodDecl, MethodDecl, in WarnConflictingTypedMethods() 2570 EF = MethodDecl->param_end(); in WarnConflictingTypedMethods() 2609 ObjCMethodDecl *MethodDecl, in WarnExactTypedMethods() argument 2618 if (MethodDecl->hasAttr<UnavailableAttr>() || in WarnExactTypedMethods() 2619 MethodDecl->hasAttr<DeprecatedAttr>()) in WarnExactTypedMethods() 2627 EF = MethodDecl->param_end(); in WarnExactTypedMethods() 2638 match = !(MethodDecl->isClassMethod() && in WarnExactTypedMethods() [all …]
|
| H A D | SemaAvailability.cpp | 499 if (const auto *MethodDecl = dyn_cast<ObjCMethodDecl>(ReferringDecl)) { in DoEmitAvailabilityWarning() local 500 Selector Sel = MethodDecl->getSelector(); in DoEmitAvailabilityWarning()
|
| H A D | SemaCoroutine.cpp | 1502 auto *MethodDecl = MbrRef->getMethodDecl(); in noteMemberDeclaredHere() local 1503 S.Diag(MethodDecl->getLocation(), diag::note_member_declared_here) in noteMemberDeclaredHere() 1504 << MethodDecl; in noteMemberDeclaredHere()
|
| H A D | SemaExpr.cpp | 17151 if (MethodDecl->isOverloadedOperator() && in MarkFunctionReferenced() 17152 MethodDecl->getOverloadedOperator() == OO_Equal) { in MarkFunctionReferenced() 17153 MethodDecl = cast<CXXMethodDecl>(MethodDecl->getFirstDecl()); in MarkFunctionReferenced() 17154 if (MethodDecl->isDefaulted() && !MethodDecl->isDeleted()) { in MarkFunctionReferenced() 17155 if (MethodDecl->isCopyAssignmentOperator()) in MarkFunctionReferenced() 17156 DefineImplicitCopyAssignment(Loc, MethodDecl); in MarkFunctionReferenced() 17157 else if (MethodDecl->isMoveAssignmentOperator()) in MarkFunctionReferenced() 17158 DefineImplicitMoveAssignment(Loc, MethodDecl); in MarkFunctionReferenced() 17160 } else if (isa<CXXConversionDecl>(MethodDecl) && in MarkFunctionReferenced() 17161 MethodDecl->getParent()->isLambda()) { in MarkFunctionReferenced() [all …]
|
| H A D | SemaDeclAttr.cpp | 154 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(D)) in isInstanceMethod() local 155 return MethodDecl->isInstance(); in isInstanceMethod()
|
| H A D | SemaDeclCXX.cpp | 15710 if (CXXMethodDecl *MethodDecl = dyn_cast<CXXMethodDecl>(FnDecl)) { in CheckOverloadedOperatorDeclaration() local 15711 if (MethodDecl->isStatic()) in CheckOverloadedOperatorDeclaration()
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | Initialization.h | 187 ObjCMethodDecl *MethodDecl; member 354 Result.MethodDecl = MD; in InitializeRelatedResult() 448 ObjCMethodDecl *getMethodDecl() const { return MethodDecl; } in getMethodDecl()
|
| H A D | Sema.h | 4351 ObjCMethodDecl *MethodDecl, 4361 ObjCMethodDecl *MethodDecl, 6024 CXXMethodDecl *MethodDecl); 6037 CXXMethodDecl *MethodDecl);
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | ItaniumCXXABI.cpp | 1959 auto *MethodDecl = cast<CXXMethodDecl>(GD.getDecl()); in getVirtualFunctionPointer() local 1961 This, TyPtr->getPointerTo(), MethodDecl->getParent()); in getVirtualFunctionPointer() 1965 if (CGF.ShouldEmitVTableTypeCheckedLoad(MethodDecl->getParent())) { in getVirtualFunctionPointer() 1967 MethodDecl->getParent(), VTable, in getVirtualFunctionPointer() 1970 CGF.EmitTypeMetadataCodeForVCall(MethodDecl->getParent(), VTable, Loc); in getVirtualFunctionPointer()
|
| H A D | MicrosoftCXXABI.cpp | 1925 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()
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | ASTContext.h | 2505 bool ObjCMethodsAreEqual(const ObjCMethodDecl *MethodDecl,
|