/external/llvm-project/clang/examples/CallSuperAttribute/ |
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()
|
/external/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
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() 181 void addUSRsOfOverridenFunctions(const CXXMethodDecl *MethodDecl) { in addUSRsOfOverridenFunctions() argument 182 USRSet.insert(getUSRForDecl(MethodDecl)); in addUSRsOfOverridenFunctions() [all …]
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | MoveChecker.cpp | 450 const auto MethodDecl = dyn_cast_or_null<CXXMethodDecl>(AFC->getDecl()); in checkPostCall() local 451 if (!MethodDecl) in checkPostCall() 457 const auto *ConstructorDecl = dyn_cast<CXXConstructorDecl>(MethodDecl); in checkPostCall() 461 if (!ConstructorDecl && !MethodDecl->isMoveAssignmentOperator()) in checkPostCall() 487 const CXXRecordDecl *RD = MethodDecl->getParent(); in checkPostCall() 636 const auto MethodDecl = dyn_cast_or_null<CXXMethodDecl>(IC->getDecl()); in checkPreCall() local 637 if (!MethodDecl) in checkPreCall() 644 if (isStateResetMethod(MethodDecl)) { in checkPreCall() 650 if (isMoveSafeMethod(MethodDecl)) in checkPreCall() 654 const CXXRecordDecl *RD = MethodDecl->getParent(); in checkPreCall() [all …]
|
D | SmartPtrModeling.cpp | 89 const auto *MethodDecl = dyn_cast_or_null<CXXMethodDecl>(Call.getDecl()); in isStdSmartPtrCall() local 90 if (!MethodDecl || !MethodDecl->getParent()) in isStdSmartPtrCall() 93 const auto *RecordDecl = MethodDecl->getParent(); in isStdSmartPtrCall() 141 const auto *MethodDecl = dyn_cast_or_null<CXXMethodDecl>(Call.getDecl()); in getInnerPointerType() local 142 if (!MethodDecl || !MethodDecl->getParent()) in getInnerPointerType() 145 const auto *RecordDecl = MethodDecl->getParent(); in getInnerPointerType()
|
/external/llvm-project/clang-tools-extra/clang-tidy/google/ |
D | AvoidNSObjectNewCheck.cpp | 43 for (const auto *MethodDecl : ClassDecl->instance_methods()) { in isInitMethodAvailable() local 44 if (MethodDecl->getSelector().getAsString() == "init") in isInitMethodAvailable() 45 return !MethodDecl->isUnavailable(); in isInitMethodAvailable()
|
/external/javassist/src/main/javassist/compiler/ast/ |
D | MethodDecl.java | 21 public class MethodDecl extends ASTList { class 26 public MethodDecl(ASTree _head, ASTList _tail) { in MethodDecl() method in MethodDecl
|
D | Visitor.java | 31 public void atMethodDecl(MethodDecl n) throws CompileError {} in atMethodDecl()
|
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
D | ASTResultSynthesizer.cpp | 156 ObjCMethodDecl *MethodDecl) { in SynthesizeObjCMethodResult() argument 162 if (!MethodDecl) in SynthesizeObjCMethodResult() 169 MethodDecl->print(os); in SynthesizeObjCMethodResult() 176 Stmt *method_body = MethodDecl->getBody(); in SynthesizeObjCMethodResult() 183 bool ret = SynthesizeBodyResult(compound_stmt, MethodDecl); in SynthesizeObjCMethodResult() 189 MethodDecl->print(os); in SynthesizeObjCMethodResult()
|
D | ASTResultSynthesizer.h | 118 bool SynthesizeObjCMethodResult(clang::ObjCMethodDecl *MethodDecl);
|
/external/llvm-project/clang/lib/ARCMigrate/ |
D | ObjCMT.cpp | 72 const ObjCMethodDecl *MethodDecl, bool ResultAnnotated); 82 const ObjCMethodDecl *MethodDecl); 1573 const ObjCMethodDecl *MethodDecl, in AddCFAnnotations() argument 1587 ObjCMethodFamily OMF = MethodDecl->getMethodFamily(); in AddCFAnnotations() 1605 commit.insertBefore(MethodDecl->getEndLoc(), AnnotationString); in AddCFAnnotations() 1610 for (ObjCMethodDecl::param_const_iterator pi = MethodDecl->param_begin(), in AddCFAnnotations() 1611 pe = MethodDecl->param_end(); pi != pe; ++pi, ++i) { in AddCFAnnotations() 1627 const ObjCMethodDecl *MethodDecl) { in migrateAddMethodAnnotation() argument 1628 if (MethodDecl->hasBody() || MethodDecl->isImplicit()) in migrateAddMethodAnnotation() 1632 getSummaryManager(Ctx).getSummary(AnyCall(MethodDecl)); in migrateAddMethodAnnotation() [all …]
|
/external/clang/lib/ARCMigrate/ |
D | ObjCMT.cpp | 71 const ObjCMethodDecl *MethodDecl, bool ResultAnnotated); 81 const ObjCMethodDecl *MethodDecl); 1581 const ObjCMethodDecl *MethodDecl, in AddCFAnnotations() argument 1595 ObjCMethodFamily OMF = MethodDecl->getMethodFamily(); in AddCFAnnotations() 1613 commit.insertBefore(MethodDecl->getLocEnd(), AnnotationString); in AddCFAnnotations() 1619 for (ObjCMethodDecl::param_const_iterator pi = MethodDecl->param_begin(), in AddCFAnnotations() 1620 pe = MethodDecl->param_end(); pi != pe; ++pi, ++i) { in AddCFAnnotations() 1634 const ObjCMethodDecl *MethodDecl) { in migrateAddMethodAnnotation() argument 1635 if (MethodDecl->hasBody() || MethodDecl->isImplicit()) in migrateAddMethodAnnotation() 1638 CallEffects CE = CallEffects::getEffect(MethodDecl); in migrateAddMethodAnnotation() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/cert/ |
D | PostfixOperatorCheck.cpp | 31 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(FuncDecl)) in check() local 32 HasThis = MethodDecl->isInstance(); in check()
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | AssertSideEffectCheck.cpp | 60 else if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(FuncDecl)) in AST_MATCHER_P() local 61 Result &= !MethodDecl->isConst(); in AST_MATCHER_P()
|
/external/clang/lib/AST/ |
D | DeclObjC.cpp | 664 ObjCMethodDecl *MethodDecl = nullptr; in lookupMethod() local 671 if ((MethodDecl = ClassDecl->getMethod(Sel, isInstance))) in lookupMethod() 672 return MethodDecl; in lookupMethod() 676 if ((MethodDecl = Cat->getMethod(Sel, isInstance))) in lookupMethod() 677 if (C != Cat || !MethodDecl->isImplicit()) in lookupMethod() 678 return MethodDecl; in lookupMethod() 682 if ((MethodDecl = I->lookupMethod(Sel, isInstance))) in lookupMethod() 683 return MethodDecl; in lookupMethod() 693 if ((MethodDecl = (*I)->lookupMethod(Sel, isInstance))) in lookupMethod() 694 if (C != Cat || !MethodDecl->isImplicit()) in lookupMethod() [all …]
|
/external/clang/lib/Sema/ |
D | SemaDeclObjC.cpp | 2227 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideReturn() argument 2232 objcModifiersConflict(MethodDecl->getObjCDeclQualifier(), in CheckMethodOverrideReturn() 2241 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration) in CheckMethodOverrideReturn() 2242 << MethodDecl->getReturnTypeSourceRange(); in CheckMethodOverrideReturn() 2250 MethodDecl->getReturnType(), in CheckMethodOverrideReturn() 2255 *MethodDecl->getReturnType()->getNullability(S.Context); in CheckMethodOverrideReturn() 2264 ((MethodDecl->getObjCDeclQualifier() & Decl::OBJC_TQ_CSNullability) in CheckMethodOverrideReturn() 2266 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration); in CheckMethodOverrideReturn() 2270 MethodDecl->getReturnType())) in CheckMethodOverrideReturn() 2284 MethodDecl->getReturnType()->getAs<ObjCObjectPointerType>()) { in CheckMethodOverrideReturn() [all …]
|
/external/llvm-project/clang/lib/AST/ |
D | DeclObjC.cpp | 695 ObjCMethodDecl *MethodDecl = nullptr; in lookupMethod() local 702 if ((MethodDecl = ClassDecl->getMethod(Sel, isInstance))) in lookupMethod() 703 return MethodDecl; in lookupMethod() 707 if ((MethodDecl = Cat->getMethod(Sel, isInstance))) in lookupMethod() 708 if (C != Cat || !MethodDecl->isImplicit()) in lookupMethod() 709 return MethodDecl; in lookupMethod() 713 if ((MethodDecl = I->lookupMethod(Sel, isInstance))) in lookupMethod() 714 return MethodDecl; in lookupMethod() 723 if ((MethodDecl = Protocol->lookupMethod(Sel, isInstance))) in lookupMethod() 724 if (C != Cat || !MethodDecl->isImplicit()) in lookupMethod() [all …]
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaDeclObjC.cpp | 2320 ObjCMethodDecl *MethodDecl, in CheckMethodOverrideReturn() argument 2325 objcModifiersConflict(MethodDecl->getObjCDeclQualifier(), in CheckMethodOverrideReturn() 2334 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration) in CheckMethodOverrideReturn() 2335 << MethodDecl->getReturnTypeSourceRange(); in CheckMethodOverrideReturn() 2343 MethodDecl->getReturnType(), in CheckMethodOverrideReturn() 2348 *MethodDecl->getReturnType()->getNullability(S.Context); in CheckMethodOverrideReturn() 2357 ((MethodDecl->getObjCDeclQualifier() & Decl::OBJC_TQ_CSNullability) in CheckMethodOverrideReturn() 2359 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration); in CheckMethodOverrideReturn() 2363 MethodDecl->getReturnType())) in CheckMethodOverrideReturn() 2377 MethodDecl->getReturnType()->getAs<ObjCObjectPointerType>()) { in CheckMethodOverrideReturn() [all …]
|
D | SemaAvailability.cpp | 499 if (const auto *MethodDecl = dyn_cast<ObjCMethodDecl>(ReferringDecl)) { in DoEmitAvailabilityWarning() local 500 Selector Sel = MethodDecl->getSelector(); in DoEmitAvailabilityWarning()
|
/external/javassist/src/main/javassist/compiler/ |
D | Parser.java | 35 import javassist.compiler.ast.MethodDecl; 57 if (mem instanceof MethodDecl) in parseMember() 58 return parseMethod2(tbl, (MethodDecl)mem); in parseMember() 80 name = MethodDecl.initName; in parseMember1() 124 private MethodDecl parseMethod1(SymbolTable tbl, boolean isConstructor, in parseMethod1() 159 return new MethodDecl(mods, new ASTList(d, in parseMethod1() 165 public MethodDecl parseMethod2(SymbolTable tbl, MethodDecl md) in parseMethod2()
|
D | Javac.java | 41 import javassist.compiler.ast.MethodDecl; 102 CtBehavior cb = compileMethod(p, (MethodDecl)mem); in compile() 149 private CtBehavior compileMethod(Parser p, MethodDecl md) in compileMethod()
|
D | MemberCodeGen.java | 44 import javassist.compiler.ast.MethodDecl; 1143 public CtClass[] makeParamList(MethodDecl md) throws CompileError { in makeParamList() 1160 public CtClass[] makeThrowsList(MethodDecl md) throws CompileError { in makeThrowsList()
|
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
D | SpecialMemberFunctionsCheck.cpp | 131 if (const auto *MethodDecl = in check() local 133 StoreMember({KV.second, MethodDecl->isDeleted()}); in check()
|
/external/clang/include/clang/Sema/ |
D | Initialization.h | 136 ObjCMethodDecl *MethodDecl; member 281 Result.MethodDecl = MD; in InitializeRelatedResult() 362 ObjCMethodDecl *getMethodDecl() const { return MethodDecl; } in getMethodDecl()
|
/external/llvm-project/clang/include/clang/Sema/ |
D | Initialization.h | 187 ObjCMethodDecl *MethodDecl; member 354 Result.MethodDecl = MD; in InitializeRelatedResult() 448 ObjCMethodDecl *getMethodDecl() const { return MethodDecl; } in getMethodDecl()
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | AvoidBindCheck.cpp | 685 const auto *MethodDecl = dyn_cast<CXXMethodDecl>(LP.Callable.Decl); in check() local 694 Stream << MethodDecl->getName(); in check()
|