| /openbsd-src/gnu/llvm/clang/examples/CallSuperAttribute/ |
| H A D | CallSuperAttrInfo.cpp | 80 bool VisitCXXMethodDecl(CXXMethodDecl *MethodDecl) { in VisitCXXMethodDecl() argument 81 if (MethodDecl->isThisDeclarationADefinition() && MethodDecl->hasBody()) { in VisitCXXMethodDecl() 84 for (const auto *Overridden : MethodDecl->overridden_methods()) { in VisitCXXMethodDecl() 92 Visitor.TraverseDecl(MethodDecl); in VisitCXXMethodDecl() 96 Diags.Report(MethodDecl->getLocation(), WarningSuperNotCalled) in VisitCXXMethodDecl() 97 << LeftOverriddens << MethodDecl; in VisitCXXMethodDecl() 129 const CXXMethodDecl *MethodDecl) { in lateDiagAppertainsToDecl() argument 130 if (MethodDecl->hasAttr<FinalAttr>()) { in lateDiagAppertainsToDecl() 134 Diags.Report(MethodDecl->getLocation(), ID); in lateDiagAppertainsToDecl()
|
| /openbsd-src/gnu/llvm/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 …]
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | MoveChecker.cpp | 444 const auto MethodDecl = dyn_cast_or_null<CXXMethodDecl>(AFC->getDecl()); in checkPostCall() local 445 if (!MethodDecl) in checkPostCall() 451 const auto *ConstructorDecl = dyn_cast<CXXConstructorDecl>(MethodDecl); in checkPostCall() 455 if (!ConstructorDecl && !MethodDecl->isMoveAssignmentOperator()) in checkPostCall() 481 const CXXRecordDecl *RD = MethodDecl->getParent(); in checkPostCall() 626 const auto MethodDecl = dyn_cast_or_null<CXXMethodDecl>(IC->getDecl()); in checkPreCall() local 627 if (!MethodDecl) in checkPreCall() 631 if (isa<CXXDestructorDecl>(MethodDecl)) in checkPreCall() 638 if (isStateResetMethod(MethodDecl)) { in checkPreCall() 644 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()
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | HLSLExternalSemaSource.cpp | 245 auto *MethodDecl = CXXMethodDecl::Create( in addArraySubscriptOperator() local 255 AST, MethodDecl->getDeclContext(), SourceLocation(), SourceLocation(), in addArraySubscriptOperator() 259 MethodDecl->setParams({IdxParam}); in addArraySubscriptOperator() 267 MethodDecl->getThisType().getTypePtr()->getPointeeType(), 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() 291 Record->addDecl(MethodDecl); in addArraySubscriptOperator()
|
| H A D | SemaDeclObjC.cpp | 2347 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideReturn() argument 2352 objcModifiersConflict(MethodDecl->getObjCDeclQualifier(), in CheckMethodOverrideReturn() 2361 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration) in CheckMethodOverrideReturn() 2362 << MethodDecl->getReturnTypeSourceRange(); in CheckMethodOverrideReturn() 2370 MethodDecl->getReturnType(), in CheckMethodOverrideReturn() 2373 auto nullabilityMethodDecl = *MethodDecl->getReturnType()->getNullability(); in CheckMethodOverrideReturn() 2380 ((MethodDecl->getObjCDeclQualifier() & in CheckMethodOverrideReturn() 2382 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration); in CheckMethodOverrideReturn() 2386 MethodDecl->getReturnType())) in CheckMethodOverrideReturn() 2400 MethodDecl->getReturnType()->getAs<ObjCObjectPointerType>()) { in CheckMethodOverrideReturn() [all …]
|
| H A D | SemaAvailability.cpp | 503 if (const auto *MethodDecl = dyn_cast<ObjCMethodDecl>(ReferringDecl)) { in DoEmitAvailabilityWarning() local 504 Selector Sel = MethodDecl->getSelector(); in DoEmitAvailabilityWarning()
|
| H A D | SemaCoroutine.cpp | 1714 auto *MethodDecl = MbrRef->getMethodDecl(); in noteMemberDeclaredHere() local 1715 S.Diag(MethodDecl->getLocation(), diag::note_member_declared_here) in noteMemberDeclaredHere() 1716 << MethodDecl; in noteMemberDeclaredHere()
|
| H A D | SemaExpr.cpp | 18341 } else if (CXXMethodDecl *MethodDecl = dyn_cast<CXXMethodDecl>(Func)) { in MarkFunctionReferenced() local 18342 if (MethodDecl->isOverloadedOperator() && in MarkFunctionReferenced() 18343 MethodDecl->getOverloadedOperator() == OO_Equal) { in MarkFunctionReferenced() 18344 MethodDecl = cast<CXXMethodDecl>(MethodDecl->getFirstDecl()); in MarkFunctionReferenced() 18345 if (MethodDecl->isDefaulted() && !MethodDecl->isDeleted()) { in MarkFunctionReferenced() 18346 if (MethodDecl->isCopyAssignmentOperator()) in MarkFunctionReferenced() 18347 DefineImplicitCopyAssignment(Loc, MethodDecl); in MarkFunctionReferenced() 18348 else if (MethodDecl->isMoveAssignmentOperator()) in MarkFunctionReferenced() 18349 DefineImplicitMoveAssignment(Loc, MethodDecl); in MarkFunctionReferenced() 18351 } else if (isa<CXXConversionDecl>(MethodDecl) && in MarkFunctionReferenced() [all …]
|
| H A D | SemaDeclAttr.cpp | 156 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(D)) in isInstanceMethod() local 157 return MethodDecl->isInstance(); in isInstanceMethod() 1019 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(DeclFD)) in handleDiagnoseAsBuiltinAttr() local 1020 if (!MethodDecl->isStatic()) { in handleDiagnoseAsBuiltinAttr()
|
| H A D | SemaDeclCXX.cpp | 15970 if (CXXMethodDecl *MethodDecl = dyn_cast<CXXMethodDecl>(FnDecl)) { in CheckOverloadedOperatorDeclaration() local 15971 if (MethodDecl->isStatic()) { in CheckOverloadedOperatorDeclaration()
|
| /openbsd-src/gnu/llvm/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);
|
| /openbsd-src/gnu/llvm/clang/lib/ARCMigrate/ |
| H A D | ObjCMT.cpp | 72 const ObjCMethodDecl *MethodDecl, bool ResultAnnotated); 82 const ObjCMethodDecl *MethodDecl); 1567 const ObjCMethodDecl *MethodDecl, in AddCFAnnotations() argument 1581 ObjCMethodFamily OMF = MethodDecl->getMethodFamily(); in AddCFAnnotations() 1599 commit.insertBefore(MethodDecl->getEndLoc(), AnnotationString); in AddCFAnnotations() 1604 for (ObjCMethodDecl::param_const_iterator pi = MethodDecl->param_begin(), in AddCFAnnotations() 1605 pe = MethodDecl->param_end(); pi != pe; ++pi, ++i) { in AddCFAnnotations() 1621 const ObjCMethodDecl *MethodDecl) { in migrateAddMethodAnnotation() argument 1622 if (MethodDecl->hasBody() || MethodDecl->isImplicit()) in migrateAddMethodAnnotation() 1626 getSummaryManager(Ctx).getSummary(AnyCall(MethodDecl)); in migrateAddMethodAnnotation() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | DeclObjC.cpp | 711 ObjCMethodDecl *MethodDecl = nullptr; in lookupMethod() local 718 if ((MethodDecl = ClassDecl->getMethod(Sel, isInstance))) in lookupMethod() 719 return MethodDecl; in lookupMethod() 723 if ((MethodDecl = Cat->getMethod(Sel, isInstance))) in lookupMethod() 724 if (C != Cat || !MethodDecl->isImplicit()) in lookupMethod() 725 return MethodDecl; in lookupMethod() 729 if ((MethodDecl = I->lookupMethod(Sel, isInstance))) in lookupMethod() 730 return MethodDecl; in lookupMethod() 739 if ((MethodDecl = Protocol->lookupMethod(Sel, isInstance))) in lookupMethod() 740 if (C != Cat || !MethodDecl->isImplicit()) in lookupMethod() [all …]
|
| H A D | ASTContext.cpp | 12190 ASTContext::ObjCMethodsAreEqual(const ObjCMethodDecl *MethodDecl, in ObjCMethodsAreEqual() argument 12193 if (MethodDecl->hasAttr<UnavailableAttr>() in ObjCMethodsAreEqual() 12194 || MethodDecl->hasAttr<DeprecatedAttr>()) in ObjCMethodsAreEqual() 12196 if (MethodDecl->getObjCDeclQualifier() != in ObjCMethodsAreEqual() 12199 if (!hasSameType(MethodDecl->getReturnType(), MethodImpl->getReturnType())) in ObjCMethodsAreEqual() 12202 if (MethodDecl->param_size() != MethodImpl->param_size()) in ObjCMethodsAreEqual() 12206 IF = MethodDecl->param_begin(), EM = MethodImpl->param_end(), in ObjCMethodsAreEqual() 12207 EF = MethodDecl->param_end(); in ObjCMethodsAreEqual() 12217 return (MethodDecl->isVariadic() == MethodImpl->isVariadic()); in ObjCMethodsAreEqual()
|
| /openbsd-src/gnu/llvm/clang/lib/Analysis/FlowSensitive/ |
| H A D | DataflowEnvironment.cpp | 275 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(&DeclCtx)) { in Environment() local 276 auto *Parent = MethodDecl->getParent(); in Environment() 279 MethodDecl = dyn_cast<CXXMethodDecl>(Parent->getDeclContext()); in Environment() 282 if (MethodDecl && !MethodDecl->isStatic()) { in Environment() 283 QualType ThisPointeeType = MethodDecl->getThisObjectType(); in Environment()
|
| /openbsd-src/gnu/llvm/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 | 4735 ObjCMethodDecl *MethodDecl, 4745 ObjCMethodDecl *MethodDecl, 6462 CXXMethodDecl *MethodDecl); 6475 CXXMethodDecl *MethodDecl);
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | ItaniumCXXABI.cpp | 1918 auto *MethodDecl = cast<CXXMethodDecl>(GD.getDecl()); in getVirtualFunctionPointer() local 1920 This, TyPtr->getPointerTo(), MethodDecl->getParent()); in getVirtualFunctionPointer() 1924 if (CGF.ShouldEmitVTableTypeCheckedLoad(MethodDecl->getParent())) { in getVirtualFunctionPointer() 1926 MethodDecl->getParent(), VTable, TyPtr, in getVirtualFunctionPointer() 1931 CGF.EmitTypeMetadataCodeForVCall(MethodDecl->getParent(), VTable, Loc); in getVirtualFunctionPointer()
|
| H A D | MicrosoftCXXABI.cpp | 1937 auto *MethodDecl = cast<CXXMethodDecl>(GD.getDecl()); in getVirtualFunctionPointer() local 1939 MethodDecl->getParent()); in getVirtualFunctionPointer() 1948 ML.VBase ? ML.VBase : MethodDecl->getParent()), in getVirtualFunctionPointer() 1957 if (CGF.ShouldEmitVTableTypeCheckedLoad(MethodDecl->getParent())) { in getVirtualFunctionPointer()
|
| /openbsd-src/gnu/llvm/clang/include/clang/AST/ |
| H A D | ASTContext.h | 2575 bool ObjCMethodsAreEqual(const ObjCMethodDecl *MethodDecl,
|