| /freebsd-14.2/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() 179 void addUSRsOfOverridenFunctions(const CXXMethodDecl *MethodDecl) { in addUSRsOfOverridenFunctions() argument 180 USRSet.insert(getUSRForDecl(MethodDecl)); in addUSRsOfOverridenFunctions() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | MoveChecker.cpp | 447 if (!MethodDecl) in checkPostCall() 457 if (!ConstructorDecl && !MethodDecl->isMoveAssignmentOperator()) in checkPostCall() 483 const CXXRecordDecl *RD = MethodDecl->getParent(); in checkPostCall() 630 if (!MethodDecl) in checkPreCall() 634 if (isa<CXXDestructorDecl>(MethodDecl)) in checkPreCall() 641 if (isStateResetMethod(MethodDecl)) { in checkPreCall() 647 if (isMoveSafeMethod(MethodDecl)) in checkPreCall() 651 const CXXRecordDecl *RD = MethodDecl->getParent(); in checkPreCall() 653 if (MethodDecl->isOverloadedOperator()) { in checkPreCall() 661 if (MethodDecl->isCopyAssignmentOperator() || in checkPreCall() [all …]
|
| H A D | SmartPtrModeling.cpp | 128 const auto *MethodDecl = dyn_cast_or_null<CXXMethodDecl>(Call.getDecl()); in isStdSmartPtrCall() local 129 if (!MethodDecl || !MethodDecl->getParent()) in isStdSmartPtrCall() 131 return isStdSmartPtr(MethodDecl->getParent()); in isStdSmartPtrCall() 216 const auto *MethodDecl = dyn_cast_or_null<CXXMethodDecl>(Call.getDecl()); in getInnerPointerType() local 217 if (!MethodDecl || !MethodDecl->getParent()) in getInnerPointerType() 220 const auto *RecordDecl = MethodDecl->getParent(); in getInnerPointerType()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | HLSLExternalSemaSource.cpp | 242 auto *MethodDecl = CXXMethodDecl::Create( in addArraySubscriptOperator() local 252 AST, MethodDecl->getDeclContext(), SourceLocation(), SourceLocation(), in addArraySubscriptOperator() 256 MethodDecl->setParams({IdxParam}); in addArraySubscriptOperator() 264 MethodDecl->getFunctionObjectParameterType(), true); in addArraySubscriptOperator() 279 MethodDecl->setBody(CompoundStmt::Create(AST, {Return}, FPOptionsOverride(), in addArraySubscriptOperator() 282 MethodDecl->setLexicalDeclContext(Record); in addArraySubscriptOperator() 283 MethodDecl->setAccess(AccessSpecifier::AS_public); in addArraySubscriptOperator() 284 MethodDecl->addAttr(AlwaysInlineAttr::CreateImplicit( in addArraySubscriptOperator() 286 Record->addDecl(MethodDecl); in addArraySubscriptOperator()
|
| H A D | SemaDeclObjC.cpp | 2362 << MethodDecl->getReturnTypeSourceRange(); in CheckMethodOverrideReturn() 2418 S.Diag(MethodDecl->getLocation(), IsOverridingMode in CheckMethodOverrideReturn() 2421 << MethodDecl->getReturnTypeSourceRange(); in CheckMethodOverrideReturn() 2591 EF = MethodDecl->param_end(); in WarnConflictingTypedMethods() 2630 ObjCMethodDecl *MethodDecl, in WarnExactTypedMethods() argument 2635 if (MethodDecl->getImplementationControl() == in WarnExactTypedMethods() 2640 if (MethodDecl->hasAttr<UnavailableAttr>() || in WarnExactTypedMethods() 2641 MethodDecl->hasAttr<DeprecatedAttr>()) in WarnExactTypedMethods() 2649 EF = MethodDecl->param_end(); in WarnExactTypedMethods() 2660 match = !(MethodDecl->isClassMethod() && in WarnExactTypedMethods() [all …]
|
| H A D | SemaAvailability.cpp | 515 if (const auto *MethodDecl = dyn_cast<ObjCMethodDecl>(ReferringDecl)) { in DoEmitAvailabilityWarning() local 516 Selector Sel = MethodDecl->getSelector(); in DoEmitAvailabilityWarning()
|
| H A D | SemaCoroutine.cpp | 1819 auto *MethodDecl = MbrRef->getMethodDecl(); in noteMemberDeclaredHere() local 1820 S.Diag(MethodDecl->getLocation(), diag::note_member_declared_here) in noteMemberDeclaredHere() 1821 << MethodDecl; in noteMemberDeclaredHere()
|
| H A D | SemaExpr.cpp | 18981 if (MethodDecl->isOverloadedOperator() && in MarkFunctionReferenced() 18982 MethodDecl->getOverloadedOperator() == OO_Equal) { in MarkFunctionReferenced() 18983 MethodDecl = cast<CXXMethodDecl>(MethodDecl->getFirstDecl()); in MarkFunctionReferenced() 18984 if (MethodDecl->isDefaulted() && !MethodDecl->isDeleted()) { in MarkFunctionReferenced() 18985 if (MethodDecl->isCopyAssignmentOperator()) in MarkFunctionReferenced() 18986 DefineImplicitCopyAssignment(Loc, MethodDecl); in MarkFunctionReferenced() 18987 else if (MethodDecl->isMoveAssignmentOperator()) in MarkFunctionReferenced() 18988 DefineImplicitMoveAssignment(Loc, MethodDecl); in MarkFunctionReferenced() 18990 } else if (isa<CXXConversionDecl>(MethodDecl) && in MarkFunctionReferenced() 18991 MethodDecl->getParent()->isLambda()) { in MarkFunctionReferenced() [all …]
|
| H A D | SemaDeclAttr.cpp | 157 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(D)) in isInstanceMethod() local 158 return MethodDecl->isInstance(); in isInstanceMethod() 1033 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(DeclFD)) in handleDiagnoseAsBuiltinAttr() local 1034 if (!MethodDecl->isStatic()) { in handleDiagnoseAsBuiltinAttr()
|
| H A D | SemaDeclCXX.cpp | 16426 if (CXXMethodDecl *MethodDecl = dyn_cast<CXXMethodDecl>(FnDecl)) { in CheckOverloadedOperatorDeclaration() local 16427 if (MethodDecl->isStatic()) { in CheckOverloadedOperatorDeclaration()
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ASTResultSynthesizer.cpp | 157 ObjCMethodDecl *MethodDecl) { in SynthesizeObjCMethodResult() argument 163 if (!MethodDecl) in SynthesizeObjCMethodResult() 170 MethodDecl->print(os); in SynthesizeObjCMethodResult() 177 Stmt *method_body = MethodDecl->getBody(); in SynthesizeObjCMethodResult() 184 bool ret = SynthesizeBodyResult(compound_stmt, MethodDecl); in SynthesizeObjCMethodResult() 190 MethodDecl->print(os); in SynthesizeObjCMethodResult()
|
| H A D | ASTResultSynthesizer.h | 118 bool SynthesizeObjCMethodResult(clang::ObjCMethodDecl *MethodDecl);
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/ARCMigrate/ |
| H A D | ObjCMT.cpp | 1619 if (MethodDecl->hasBody() || MethodDecl->isImplicit()) in migrateAddMethodAnnotation() 1626 (MethodDecl->hasAttr<CFReturnsRetainedAttr>() || in migrateAddMethodAnnotation() 1627 MethodDecl->hasAttr<CFReturnsNotRetainedAttr>() || in migrateAddMethodAnnotation() 1628 MethodDecl->hasAttr<NSReturnsRetainedAttr>() || in migrateAddMethodAnnotation() 1629 MethodDecl->hasAttr<NSReturnsNotRetainedAttr>() || in migrateAddMethodAnnotation() 1630 MethodDecl->hasAttr<NSReturnsAutoreleasedAttr>()); in migrateAddMethodAnnotation() 1633 !MethodDecl->hasAttr<NSConsumesSelfAttr>() && in migrateAddMethodAnnotation() 1634 MethodDecl->getMethodFamily() != OMF_init && in migrateAddMethodAnnotation() 1635 MethodDecl->getMethodFamily() != OMF_release && in migrateAddMethodAnnotation() 1644 (MethodDecl->param_begin() == MethodDecl->param_end())) in migrateAddMethodAnnotation() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/ |
| H A D | DeclObjC.cpp | 711 ObjCMethodDecl *MethodDecl = nullptr; in lookupMethod() local 719 return MethodDecl; in lookupMethod() 724 if (C != Cat || !MethodDecl->isImplicit()) in lookupMethod() 725 return MethodDecl; in lookupMethod() 730 return MethodDecl; in lookupMethod() 740 if (C != Cat || !MethodDecl->isImplicit()) in lookupMethod() 741 return MethodDecl; in lookupMethod() 2005 ObjCMethodDecl *MethodDecl = nullptr; in lookupMethod() local 2013 if ((MethodDecl = getMethod(Sel, isInstance))) in lookupMethod() 2014 return MethodDecl; in lookupMethod() [all …]
|
| H A D | ASTContext.cpp | 12332 ASTContext::ObjCMethodsAreEqual(const ObjCMethodDecl *MethodDecl, in ObjCMethodsAreEqual() argument 12335 if (MethodDecl->hasAttr<UnavailableAttr>() in ObjCMethodsAreEqual() 12336 || MethodDecl->hasAttr<DeprecatedAttr>()) in ObjCMethodsAreEqual() 12338 if (MethodDecl->getObjCDeclQualifier() != in ObjCMethodsAreEqual() 12341 if (!hasSameType(MethodDecl->getReturnType(), MethodImpl->getReturnType())) in ObjCMethodsAreEqual() 12344 if (MethodDecl->param_size() != MethodImpl->param_size()) in ObjCMethodsAreEqual() 12348 IF = MethodDecl->param_begin(), EM = MethodImpl->param_end(), in ObjCMethodsAreEqual() 12349 EF = MethodDecl->param_end(); in ObjCMethodsAreEqual() 12359 return (MethodDecl->isVariadic() == MethodImpl->isVariadic()); in ObjCMethodsAreEqual()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | DataflowEnvironment.cpp | 305 const auto *MethodDecl = dyn_cast_or_null<CXXMethodDecl>(C.getCalleeDecl()); in getMemberForAccessor() local 306 if (!MethodDecl) in getMemberForAccessor() 308 auto *Body = dyn_cast_or_null<CompoundStmt>(MethodDecl->getBody()); in getMemberForAccessor() 399 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(DeclCtx)) { in initialize() local 400 auto *Parent = MethodDecl->getParent(); in initialize() 418 } else if (MethodDecl->isImplicitObjectMemberFunction()) { in initialize() 419 QualType ThisPointeeType = MethodDecl->getFunctionObjectParameterType(); in initialize()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | Initialization.h | 190 ObjCMethodDecl *MethodDecl; member 366 Result.MethodDecl = MD; in InitializeRelatedResult() 468 ObjCMethodDecl *getMethodDecl() const { return MethodDecl; } in getMethodDecl()
|
| H A D | Sema.h | 4861 ObjCMethodDecl *MethodDecl, 4871 ObjCMethodDecl *MethodDecl, 6609 CXXMethodDecl *MethodDecl); 6622 CXXMethodDecl *MethodDecl);
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | ItaniumCXXABI.cpp | 2012 auto *MethodDecl = cast<CXXMethodDecl>(GD.getDecl()); in getVirtualFunctionPointer() local 2013 llvm::Value *VTable = CGF.GetVTablePtr(This, PtrTy, MethodDecl->getParent()); in getVirtualFunctionPointer() 2017 if (CGF.ShouldEmitVTableTypeCheckedLoad(MethodDecl->getParent())) { in getVirtualFunctionPointer() 2019 MethodDecl->getParent(), VTable, PtrTy, in getVirtualFunctionPointer() 2024 CGF.EmitTypeMetadataCodeForVCall(MethodDecl->getParent(), VTable, Loc); in getVirtualFunctionPointer()
|
| H A D | MicrosoftCXXABI.cpp | 1953 auto *MethodDecl = cast<CXXMethodDecl>(GD.getDecl()); in getVirtualFunctionPointer() local 1955 MethodDecl->getParent()); in getVirtualFunctionPointer() 1964 ML.VBase ? ML.VBase : MethodDecl->getParent()), in getVirtualFunctionPointer() 1973 if (CGF.ShouldEmitVTableTypeCheckedLoad(MethodDecl->getParent())) { in getVirtualFunctionPointer()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | ASTContext.h | 2611 bool ObjCMethodsAreEqual(const ObjCMethodDecl *MethodDecl,
|