Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMoveChecker.cpp446 const auto MethodDecl = dyn_cast_or_null<CXXMethodDecl>(AFC->getDecl()); in checkPostCall() local
447 if (!MethodDecl) in checkPostCall()
453 const auto *ConstructorDecl = dyn_cast<CXXConstructorDecl>(MethodDecl); in checkPostCall()
457 if (!ConstructorDecl && !MethodDecl->isMoveAssignmentOperator()) in checkPostCall()
483 const CXXRecordDecl *RD = MethodDecl->getParent(); in checkPostCall()
629 const auto MethodDecl = dyn_cast_or_null<CXXMethodDecl>(IC->getDecl()); in checkPreCall() local
630 if (!MethodDecl) in checkPreCall()
634 if (isa<CXXDestructorDecl>(MethodDecl)) in checkPreCall()
641 if (isStateResetMethod(MethodDecl)) { in checkPreCall()
647 if (isMoveSafeMethod(MethodDecl)) in checkPreCall()
[all …]
H A DSmartPtrModeling.cpp128 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/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DRefCntblBaseVirtualDtorChecker.cpp333 for (auto *MethodDecl : C->methods()) { in isClassWithSpecializedDelete() local
334 if (safeGetName(MethodDecl) == "deref") { in isClassWithSpecializedDelete()
337 auto Result = Visitor.HasSpecializedDelete(MethodDecl); in isClassWithSpecializedDelete()
344 for (auto *MethodDecl : C->methods()) { in isClassWithSpecializedDelete() local
345 if (safeGetName(MethodDecl) == "deref") { in isClassWithSpecializedDelete()
347 auto Result = Visitor.HasSpecializedDelete(MethodDecl); in isClassWithSpecializedDelete()
H A DPtrTypesSemantics.cpp230 if (auto *MethodDecl = dyn_cast<CXXMethodDecl>(F)) { in isSingleton() local
231 if (!MethodDecl->isStatic()) in isSingleton()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTResultSynthesizer.cpp157 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 DASTResultSynthesizer.h118 bool SynthesizeObjCMethodResult(clang::ObjCMethodDecl *MethodDecl);
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DHLSLExternalSemaSource.cpp246 auto *MethodDecl = CXXMethodDecl::Create( in addArraySubscriptOperator() local
256 AST, MethodDecl->getDeclContext(), SourceLocation(), SourceLocation(), in addArraySubscriptOperator()
260 MethodDecl->setParams({IdxParam}); in addArraySubscriptOperator()
268 MethodDecl->getFunctionObjectParameterType(), true); in addArraySubscriptOperator()
283 MethodDecl->setBody(CompoundStmt::Create(AST, {Return}, FPOptionsOverride(), in addArraySubscriptOperator()
286 MethodDecl->setLexicalDeclContext(Record); in addArraySubscriptOperator()
287 MethodDecl->setAccess(AccessSpecifier::AS_public); in addArraySubscriptOperator()
288 MethodDecl->addAttr(AlwaysInlineAttr::CreateImplicit( in addArraySubscriptOperator()
290 Record->addDecl(MethodDecl); in addArraySubscriptOperator()
H A DSemaDeclObjC.cpp2355 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideReturn() argument
2360 objcModifiersConflict(MethodDecl->getObjCDeclQualifier(), in CheckMethodOverrideReturn()
2369 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration) in CheckMethodOverrideReturn()
2370 << MethodDecl->getReturnTypeSourceRange(); in CheckMethodOverrideReturn()
2378 MethodDecl->getReturnType(), in CheckMethodOverrideReturn()
2381 auto nullabilityMethodDecl = *MethodDecl->getReturnType()->getNullability(); in CheckMethodOverrideReturn()
2388 ((MethodDecl->getObjCDeclQualifier() & in CheckMethodOverrideReturn()
2390 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration); in CheckMethodOverrideReturn()
2394 MethodDecl->getReturnType())) in CheckMethodOverrideReturn()
2408 MethodDecl->getReturnType()->getAs<ObjCObjectPointerType>()) { in CheckMethodOverrideReturn()
[all …]
H A DSemaAvailability.cpp592 if (const auto *MethodDecl = dyn_cast<ObjCMethodDecl>(ReferringDecl)) { in DoEmitAvailabilityWarning() local
593 Selector Sel = MethodDecl->getSelector(); in DoEmitAvailabilityWarning()
H A DSemaCoroutine.cpp1729 auto *MethodDecl = MbrRef->getMethodDecl(); in noteMemberDeclaredHere() local
1730 S.Diag(MethodDecl->getLocation(), diag::note_member_declared_here) in noteMemberDeclaredHere()
1731 << MethodDecl; in noteMemberDeclaredHere()
H A DSemaExpr.cpp17961 } else if (CXXMethodDecl *MethodDecl = dyn_cast<CXXMethodDecl>(Func)) { in MarkFunctionReferenced() local
17962 if (MethodDecl->isOverloadedOperator() && in MarkFunctionReferenced()
17963 MethodDecl->getOverloadedOperator() == OO_Equal) { in MarkFunctionReferenced()
17964 MethodDecl = cast<CXXMethodDecl>(MethodDecl->getFirstDecl()); in MarkFunctionReferenced()
17965 if (MethodDecl->isDefaulted() && !MethodDecl->isDeleted()) { in MarkFunctionReferenced()
17966 if (MethodDecl->isCopyAssignmentOperator()) in MarkFunctionReferenced()
17967 DefineImplicitCopyAssignment(Loc, MethodDecl); in MarkFunctionReferenced()
17968 else if (MethodDecl->isMoveAssignmentOperator()) in MarkFunctionReferenced()
17969 DefineImplicitMoveAssignment(Loc, MethodDecl); in MarkFunctionReferenced()
17971 } else if (isa<CXXConversionDecl>(MethodDecl) && in MarkFunctionReferenced()
[all …]
H A DSemaDeclAttr.cpp773 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(DeclFD)) in handleDiagnoseAsBuiltinAttr() local
774 if (!MethodDecl->isStatic()) { in handleDiagnoseAsBuiltinAttr()
H A DSemaDeclCXX.cpp16301 if (CXXMethodDecl *MethodDecl = dyn_cast<CXXMethodDecl>(FnDecl)) { in CheckOverloadedOperatorDeclaration() local
16302 if (MethodDecl->isStatic()) { in CheckOverloadedOperatorDeclaration()
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DObjCMT.cpp72 const ObjCMethodDecl *MethodDecl, bool ResultAnnotated);
82 const ObjCMethodDecl *MethodDecl);
1565 const ObjCMethodDecl *MethodDecl, in AddCFAnnotations() argument
1579 ObjCMethodFamily OMF = MethodDecl->getMethodFamily(); in AddCFAnnotations()
1597 commit.insertBefore(MethodDecl->getEndLoc(), AnnotationString); in AddCFAnnotations()
1602 for (ObjCMethodDecl::param_const_iterator pi = MethodDecl->param_begin(), in AddCFAnnotations()
1603 pe = MethodDecl->param_end(); pi != pe; ++pi, ++i) { in AddCFAnnotations()
1619 const ObjCMethodDecl *MethodDecl) { in migrateAddMethodAnnotation() argument
1620 if (MethodDecl->hasBody() || MethodDecl->isImplicit()) in migrateAddMethodAnnotation()
1624 getSummaryManager(Ctx).getSummary(AnyCall(MethodDecl)); in migrateAddMethodAnnotation()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclObjC.cpp710 ObjCMethodDecl *MethodDecl = nullptr; in lookupMethod() local
717 if ((MethodDecl = ClassDecl->getMethod(Sel, isInstance))) in lookupMethod()
718 return MethodDecl; in lookupMethod()
722 if ((MethodDecl = Cat->getMethod(Sel, isInstance))) in lookupMethod()
723 if (C != Cat || !MethodDecl->isImplicit()) in lookupMethod()
724 return MethodDecl; in lookupMethod()
728 if ((MethodDecl = I->lookupMethod(Sel, isInstance))) in lookupMethod()
729 return MethodDecl; in lookupMethod()
738 if ((MethodDecl = Protocol->lookupMethod(Sel, isInstance))) in lookupMethod()
739 if (C != Cat || !MethodDecl->isImplicit()) in lookupMethod()
[all …]
H A DASTContext.cpp12824 ASTContext::ObjCMethodsAreEqual(const ObjCMethodDecl *MethodDecl, in ObjCMethodsAreEqual() argument
12827 if (MethodDecl->hasAttr<UnavailableAttr>() in ObjCMethodsAreEqual()
12828 || MethodDecl->hasAttr<DeprecatedAttr>()) in ObjCMethodsAreEqual()
12830 if (MethodDecl->getObjCDeclQualifier() != in ObjCMethodsAreEqual()
12833 if (!hasSameType(MethodDecl->getReturnType(), MethodImpl->getReturnType())) in ObjCMethodsAreEqual()
12836 if (MethodDecl->param_size() != MethodImpl->param_size()) in ObjCMethodsAreEqual()
12840 IF = MethodDecl->param_begin(), EM = MethodImpl->param_end(), in ObjCMethodsAreEqual()
12841 EF = MethodDecl->param_end(); in ObjCMethodsAreEqual()
12851 return (MethodDecl->isVariadic() == MethodImpl->isVariadic()); in ObjCMethodsAreEqual()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DASTOps.cpp182 const auto *MethodDecl = dyn_cast_or_null<CXXMethodDecl>(C.getCalleeDecl()); in getMemberForAccessor() local
183 if (!MethodDecl) in getMemberForAccessor()
185 auto *Body = dyn_cast_or_null<CompoundStmt>(MethodDecl->getBody()); in getMemberForAccessor()
H A DDataflowEnvironment.cpp516 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(InitialTargetFunc)) { in initialize() local
517 auto *Parent = MethodDecl->getParent(); in initialize()
544 } else if (MethodDecl->isImplicitObjectMemberFunction()) { in initialize()
545 QualType ThisPointeeType = MethodDecl->getFunctionObjectParameterType(); in initialize()
552 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.h416 ObjCMethodDecl *MethodDecl,
425 void WarnExactTypedMethods(ObjCMethodDecl *Method, ObjCMethodDecl *MethodDecl,
H A DSema.h5163 CXXMethodDecl *MethodDecl);
5176 CXXMethodDecl *MethodDecl);
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DMicrosoftCXXABI.cpp1158 } else if (auto *MethodDecl = dyn_cast<CXXMethodDecl>(D)) { in isTrivialForMSVC() local
1159 if (MethodDecl->isCopyAssignmentOperator() && MethodDecl->isDeleted()) in isTrivialForMSVC()
1963 auto *MethodDecl = cast<CXXMethodDecl>(GD.getDecl()); in getVirtualFunctionPointer() local
1965 MethodDecl->getParent()); in getVirtualFunctionPointer()
1974 ML.VBase ? ML.VBase : MethodDecl->getParent()), in getVirtualFunctionPointer()
1983 if (CGF.ShouldEmitVTableTypeCheckedLoad(MethodDecl->getParent())) { in getVirtualFunctionPointer()
H A DItaniumCXXABI.cpp2186 auto *MethodDecl = cast<CXXMethodDecl>(GD.getDecl()); in getVirtualFunctionPointer() local
2187 llvm::Value *VTable = CGF.GetVTablePtr(This, PtrTy, MethodDecl->getParent()); in getVirtualFunctionPointer()
2192 if (!Schema && CGF.ShouldEmitVTableTypeCheckedLoad(MethodDecl->getParent())) { in getVirtualFunctionPointer()
2194 MethodDecl->getParent(), VTable, PtrTy, in getVirtualFunctionPointer()
2199 CGF.EmitTypeMetadataCodeForVCall(MethodDecl->getParent(), VTable, Loc); in getVirtualFunctionPointer()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DASTContext.h2698 bool ObjCMethodsAreEqual(const ObjCMethodDecl *MethodDecl,