/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | MoveChecker.cpp | 446 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 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/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
H A D | RefCntblBaseVirtualDtorChecker.cpp | 333 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 D | PtrTypesSemantics.cpp | 230 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 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/contrib/llvm-project/clang/lib/Sema/ |
H A D | HLSLExternalSemaSource.cpp | 246 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 D | SemaDeclObjC.cpp | 2355 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 D | SemaAvailability.cpp | 592 if (const auto *MethodDecl = dyn_cast<ObjCMethodDecl>(ReferringDecl)) { in DoEmitAvailabilityWarning() local 593 Selector Sel = MethodDecl->getSelector(); in DoEmitAvailabilityWarning()
|
H A D | SemaCoroutine.cpp | 1729 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 D | SemaExpr.cpp | 17961 } 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 D | SemaDeclAttr.cpp | 773 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(DeclFD)) in handleDiagnoseAsBuiltinAttr() local 774 if (!MethodDecl->isStatic()) { in handleDiagnoseAsBuiltinAttr()
|
H A D | SemaDeclCXX.cpp | 16301 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 D | ObjCMT.cpp | 72 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 D | DeclObjC.cpp | 710 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 D | ASTContext.cpp | 12824 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 D | ASTOps.cpp | 182 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 D | DataflowEnvironment.cpp | 516 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 D | Attr.h | 121 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(D)) in isInstanceMethod() local 122 return MethodDecl->isInstance(); in isInstanceMethod()
|
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 | SemaObjC.h | 416 ObjCMethodDecl *MethodDecl, 425 void WarnExactTypedMethods(ObjCMethodDecl *Method, ObjCMethodDecl *MethodDecl,
|
H A D | Sema.h | 5163 CXXMethodDecl *MethodDecl); 5176 CXXMethodDecl *MethodDecl);
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | MicrosoftCXXABI.cpp | 1158 } 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 D | ItaniumCXXABI.cpp | 2186 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 D | ASTContext.h | 2698 bool ObjCMethodsAreEqual(const ObjCMethodDecl *MethodDecl,
|