Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFindingAction.cpp64 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(FoundDecl)) { in Find() local
65 addUSRsOfOverridenFunctions(MethodDecl); in Find()
70 addUSRsOfInstantiatedMethods(MethodDecl); in Find()
100 bool VisitCXXMethodDecl(const CXXMethodDecl *MethodDecl) { in VisitCXXMethodDecl() argument
101 if (MethodDecl->isVirtual()) in VisitCXXMethodDecl()
102 OverriddenMethods.push_back(MethodDecl); in VisitCXXMethodDecl()
103 if (MethodDecl->getInstantiatedFromMemberFunction()) in VisitCXXMethodDecl()
104 InstantiatedMethods.push_back(MethodDecl); in VisitCXXMethodDecl()
172 void addUSRsOfOverridenFunctions(const CXXMethodDecl *MethodDecl) { in addUSRsOfOverridenFunctions() argument
173 USRSet.insert(getUSRForDecl(MethodDecl)); in addUSRsOfOverridenFunctions()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMoveChecker.cpp449 const auto MethodDecl = dyn_cast_or_null<CXXMethodDecl>(AFC->getDecl()); in checkPostCall() local
450 if (!MethodDecl) in checkPostCall()
456 const auto *ConstructorDecl = dyn_cast<CXXConstructorDecl>(MethodDecl); in checkPostCall()
460 if (!ConstructorDecl && !MethodDecl->isMoveAssignmentOperator()) in checkPostCall()
486 const CXXRecordDecl *RD = MethodDecl->getParent(); in checkPostCall()
633 const auto MethodDecl = dyn_cast_or_null<CXXMethodDecl>(IC->getDecl()); in checkPreCall() local
634 if (!MethodDecl) in checkPreCall()
638 if (isa<CXXDestructorDecl>(MethodDecl)) in checkPreCall()
645 if (isStateResetMethod(MethodDecl)) { in checkPreCall()
651 if (isMoveSafeMethod(MethodDecl)) in checkPreCall()
[all …]
H A DSmartPtrModeling.cpp125 const auto *MethodDecl = dyn_cast_or_null<CXXMethodDecl>(Call.getDecl()); in isStdSmartPtrCall() local
126 if (!MethodDecl || !MethodDecl->getParent()) in isStdSmartPtrCall()
128 return isStdSmartPtr(MethodDecl->getParent()); in isStdSmartPtrCall()
213 const auto *MethodDecl = dyn_cast_or_null<CXXMethodDecl>(Call.getDecl()); in getInnerPointerType() local
214 if (!MethodDecl || !MethodDecl->getParent()) in getInnerPointerType()
217 const auto *RecordDecl = MethodDecl->getParent(); in getInnerPointerType()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DRefCntblBaseVirtualDtorChecker.cpp373 for (auto *MethodDecl : C->methods()) { in isClassWithSpecializedDelete() local
374 if (safeGetName(MethodDecl) == "deref") { in isClassWithSpecializedDelete()
377 auto Result = Visitor.HasSpecializedDelete(MethodDecl); in isClassWithSpecializedDelete()
384 for (auto *MethodDecl : C->methods()) { in isClassWithSpecializedDelete() local
385 if (safeGetName(MethodDecl) == "deref") { in isClassWithSpecializedDelete()
387 auto Result = Visitor.HasSpecializedDelete(MethodDecl); in isClassWithSpecializedDelete()
H A DForwardDeclChecker.cpp254 auto *MethodDecl = E->getMethodDecl(); in visitObjCMessageExpr() local
255 if (!MethodDecl) in visitObjCMessageExpr()
259 for (unsigned i = 0; i < ArgCount && i < MethodDecl->param_size(); ++i) in visitObjCMessageExpr()
260 visitCallArg(E->getArg(i), MethodDecl->getParamDecl(i), DeclWithIssue); in visitObjCMessageExpr()
H A DRawPtrRefCallArgsChecker.cpp193 auto *MethodDecl = E->getMethodDecl(); in visitObjCMessageExpr() local
194 if (!MethodDecl) in visitObjCMessageExpr()
200 bool hasParam = i < MethodDecl->param_size(); in visitObjCMessageExpr()
201 auto *Param = hasParam ? MethodDecl->getParamDecl(i) : nullptr; in visitObjCMessageExpr()
H A DRetainPtrCtorAdoptChecker.cpp377 else if (auto *MethodDecl = dyn_cast<ObjCMethodDecl>(DeclWithIssue)) in visitReturnStmt() local
378 retainsRet = retainsReturnValue(MethodDecl); in visitReturnStmt()
H A DPtrTypesSemantics.cpp498 if (auto *MethodDecl = dyn_cast<CXXMethodDecl>(F)) { in isSingleton() local
499 if (!MethodDecl->isStatic()) in isSingleton()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTResultSynthesizer.cpp153 ObjCMethodDecl *MethodDecl) { in SynthesizeObjCMethodResult() argument
159 if (!MethodDecl) in SynthesizeObjCMethodResult()
166 MethodDecl->print(os); in SynthesizeObjCMethodResult()
171 Stmt *method_body = MethodDecl->getBody(); in SynthesizeObjCMethodResult()
178 bool ret = SynthesizeBodyResult(compound_stmt, MethodDecl); in SynthesizeObjCMethodResult()
184 MethodDecl->print(os); in SynthesizeObjCMethodResult()
H A DASTResultSynthesizer.h118 bool SynthesizeObjCMethodResult(clang::ObjCMethodDecl *MethodDecl);
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclObjC.cpp707 ObjCMethodDecl *MethodDecl = nullptr; in lookupMethod() local
714 if ((MethodDecl = ClassDecl->getMethod(Sel, isInstance))) in lookupMethod()
715 return MethodDecl; in lookupMethod()
719 if ((MethodDecl = Cat->getMethod(Sel, isInstance))) in lookupMethod()
720 if (C != Cat || !MethodDecl->isImplicit()) in lookupMethod()
721 return MethodDecl; in lookupMethod()
725 if ((MethodDecl = I->lookupMethod(Sel, isInstance))) in lookupMethod()
726 return MethodDecl; in lookupMethod()
735 if ((MethodDecl = Protocol->lookupMethod(Sel, isInstance))) in lookupMethod()
736 if (C != Cat || !MethodDecl->isImplicit()) in lookupMethod()
[all …]
H A DASTContext.cpp13482 ASTContext::ObjCMethodsAreEqual(const ObjCMethodDecl *MethodDecl, in ObjCMethodsAreEqual() argument
13485 if (MethodDecl->hasAttr<UnavailableAttr>() in ObjCMethodsAreEqual()
13486 || MethodDecl->hasAttr<DeprecatedAttr>()) in ObjCMethodsAreEqual()
13488 if (MethodDecl->getObjCDeclQualifier() != in ObjCMethodsAreEqual()
13491 if (!hasSameType(MethodDecl->getReturnType(), MethodImpl->getReturnType())) in ObjCMethodsAreEqual()
13494 if (MethodDecl->param_size() != MethodImpl->param_size()) in ObjCMethodsAreEqual()
13498 IF = MethodDecl->param_begin(), EM = MethodImpl->param_end(), in ObjCMethodsAreEqual()
13499 EF = MethodDecl->param_end(); in ObjCMethodsAreEqual()
13509 return (MethodDecl->isVariadic() == MethodImpl->isVariadic()); in ObjCMethodsAreEqual()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DASTOps.cpp189 const auto *MethodDecl = dyn_cast_or_null<CXXMethodDecl>(C.getCalleeDecl()); in getMemberForAccessor() local
190 if (!MethodDecl) in getMemberForAccessor()
192 auto *Body = dyn_cast_or_null<CompoundStmt>(MethodDecl->getBody()); in getMemberForAccessor()
H A DDataflowEnvironment.cpp515 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(InitialTargetFunc)) { in initialize() local
516 auto *Parent = MethodDecl->getParent(); in initialize()
543 } else if (MethodDecl->isImplicitObjectMemberFunction()) { in initialize()
544 QualType ThisPointeeType = MethodDecl->getFunctionObjectParameterType(); in initialize()
551 if (!isa<CXXConstructorDecl>(MethodDecl)) in initialize()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DAttr.h121 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(D)) in isInstanceMethod() local
122 return MethodDecl->isInstance(); in isInstanceMethod()
H A DInitialization.h190 ObjCMethodDecl *MethodDecl; member
366 Result.MethodDecl = MD; in InitializeRelatedResult()
468 ObjCMethodDecl *getMethodDecl() const { return MethodDecl; } in getMethodDecl()
H A DSemaObjC.h408 ObjCMethodDecl *MethodDecl,
417 void WarnExactTypedMethods(ObjCMethodDecl *Method, ObjCMethodDecl *MethodDecl,
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclObjC.cpp2363 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideReturn() argument
2368 objcModifiersConflict(MethodDecl->getObjCDeclQualifier(), in CheckMethodOverrideReturn()
2377 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration) in CheckMethodOverrideReturn()
2378 << MethodDecl->getReturnTypeSourceRange(); in CheckMethodOverrideReturn()
2386 MethodDecl->getReturnType(), in CheckMethodOverrideReturn()
2389 auto nullabilityMethodDecl = *MethodDecl->getReturnType()->getNullability(); in CheckMethodOverrideReturn()
2396 ((MethodDecl->getObjCDeclQualifier() & in CheckMethodOverrideReturn()
2398 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration); in CheckMethodOverrideReturn()
2402 MethodDecl->getReturnType())) in CheckMethodOverrideReturn()
2416 MethodDecl->getReturnType()->getAs<ObjCObjectPointerType>()) { in CheckMethodOverrideReturn()
[all …]
H A DSemaAvailability.cpp635 if (const auto *MethodDecl = dyn_cast<ObjCMethodDecl>(ReferringDecl)) { in DoEmitAvailabilityWarning() local
636 Selector Sel = MethodDecl->getSelector(); in DoEmitAvailabilityWarning()
H A DSemaCoroutine.cpp1814 auto *MethodDecl = MbrRef->getMethodDecl(); in noteMemberDeclaredHere() local
1815 S.Diag(MethodDecl->getLocation(), diag::note_member_declared_here) in noteMemberDeclaredHere()
1816 << MethodDecl; in noteMemberDeclaredHere()
H A DSemaExpr.cpp18395 } else if (CXXMethodDecl *MethodDecl = dyn_cast<CXXMethodDecl>(Func)) { in MarkFunctionReferenced() local
18396 if (MethodDecl->isOverloadedOperator() && in MarkFunctionReferenced()
18397 MethodDecl->getOverloadedOperator() == OO_Equal) { in MarkFunctionReferenced()
18398 MethodDecl = cast<CXXMethodDecl>(MethodDecl->getFirstDecl()); in MarkFunctionReferenced()
18399 if (MethodDecl->isDefaulted() && !MethodDecl->isDeleted()) { in MarkFunctionReferenced()
18400 if (MethodDecl->isCopyAssignmentOperator()) in MarkFunctionReferenced()
18401 DefineImplicitCopyAssignment(Loc, MethodDecl); in MarkFunctionReferenced()
18402 else if (MethodDecl->isMoveAssignmentOperator()) in MarkFunctionReferenced()
18403 DefineImplicitMoveAssignment(Loc, MethodDecl); in MarkFunctionReferenced()
18405 } else if (isa<CXXConversionDecl>(MethodDecl) && in MarkFunctionReferenced()
[all …]
H A DSemaDeclAttr.cpp760 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(DeclFD)) in handleDiagnoseAsBuiltinAttr() local
761 if (!MethodDecl->isStatic()) { in handleDiagnoseAsBuiltinAttr()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DMicrosoftCXXABI.cpp1153 } else if (auto *MethodDecl = dyn_cast<CXXMethodDecl>(D)) { in isTrivialForMSVC() local
1154 if (MethodDecl->isCopyAssignmentOperator() && MethodDecl->isDeleted()) in isTrivialForMSVC()
1958 auto *MethodDecl = cast<CXXMethodDecl>(GD.getDecl()); in getVirtualFunctionPointer() local
1960 CGF.GetVTablePtr(VPtr, CGF.UnqualPtrTy, MethodDecl->getParent()); in getVirtualFunctionPointer()
1969 ML.VBase ? ML.VBase : MethodDecl->getParent()), in getVirtualFunctionPointer()
1978 if (CGF.ShouldEmitVTableTypeCheckedLoad(MethodDecl->getParent())) { in getVirtualFunctionPointer()
H A DItaniumCXXABI.cpp2202 auto *MethodDecl = cast<CXXMethodDecl>(GD.getDecl()); in getVirtualFunctionPointer() local
2203 llvm::Value *VTable = CGF.GetVTablePtr(This, PtrTy, MethodDecl->getParent()); in getVirtualFunctionPointer()
2213 if (!Schema && CGF.ShouldEmitVTableTypeCheckedLoad(MethodDecl->getParent())) { in getVirtualFunctionPointer()
2214 VFunc = CGF.EmitVTableTypeCheckedLoad(MethodDecl->getParent(), VTable, in getVirtualFunctionPointer()
2217 CGF.EmitTypeMetadataCodeForVCall(MethodDecl->getParent(), VTable, Loc); in getVirtualFunctionPointer()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DASTContext.h2872 bool ObjCMethodsAreEqual(const ObjCMethodDecl *MethodDecl,

12