|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
gen/tools/clang/include/clang/AST/DeclNodes.inc 169 OBJCMETHOD(ObjCMethod, NamedDecl)
tools/clang/include/clang/AST/ASTContext.h 111 class ObjCMethodDecl;
tools/clang/include/clang/AST/DeclBase.h 61 class ObjCMethodDecl;
tools/clang/include/clang/AST/Mangle.h 35 class ObjCMethodDecl;
tools/clang/include/clang/Analysis/BodyFarm.h 26 class ObjCMethodDecl;
tools/clang/include/clang/Analysis/CodeInjector.h 23 class ObjCMethodDecl;
tools/clang/include/clang/CodeGen/CodeGenABITypes.h 46 class ObjCMethodDecl;
tools/clang/include/clang/Edit/Rewriters.h 14 class ObjCMethodDecl;
tools/clang/include/clang/Sema/AnalysisBasedWarnings.h 23 class ObjCMethodDecl;
tools/clang/include/clang/Sema/Initialization.h 44 class ObjCMethodDecl;
tools/clang/include/clang/Sema/ObjCMethodList.h 21 class ObjCMethodDecl;
tools/clang/include/clang/Sema/Sema.h 152 class ObjCMethodDecl;
tools/clang/lib/ARCMigrate/Transforms.h 21 class ObjCMethodDecl;
tools/clang/lib/CodeGen/CGCall.h 38 class ObjCMethodDecl;
tools/clang/lib/CodeGen/CGObjCRuntime.h 48 class ObjCMethodDecl;
tools/clang/lib/CodeGen/CodeGenFunction.h 68 class ObjCMethodDecl;
tools/clang/lib/CodeGen/CodeGenModule.h 56 class ObjCMethodDecl;
tools/clang/lib/Index/IndexingContext.h 27 class ObjCMethodDecl;
tools/clang/lib/Serialization/ASTReaderInternals.h 34 class ObjCMethodDecl;
tools/lldb/include/lldb/Core/ClangForward.h 85 class ObjCMethodDecl;
References
gen/tools/clang/include/clang/Sema/AttrParsedAttrImpl.inc 239 isa<ObjCMethodDecl>(S) ||
464 if (!D || (!isa<ObjCMethodDecl>(D) && !isa<FunctionDecl>(D))) {
654 if (!D || (!isa<ObjCMethodDecl>(D) && !isFunctionLike(D))) {
754 if (!D || (!isa<ParmVarDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<FunctionDecl>(D))) {
992 if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<ObjCPropertyDecl>(D))) {
1001 if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
1141 if (!D || (!isa<ObjCMethodDecl>(D) && !isa<BlockDecl>(D) && !isHasFunctionProto(D))) {
1150 if (!D || (!isa<ObjCMethodDecl>(D) && !isHasFunctionProto(D))) {
1225 if (const auto *S = dyn_cast<ObjCMethodDecl>(D))
1225 if (const auto *S = dyn_cast<ObjCMethodDecl>(D))
1380 if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<BlockDecl>(D))) {
1473 if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
1606 if (!D || (!isa<ObjCMethodDecl>(D))) {
1660 if (!D || (!isa<TypedefNameDecl>(D) && !isFunctionLike(D) && !isa<ObjCMethodDecl>(D) && !isNonParmVar(D))) {
1767 if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D) && !isGlobalVar(D))) {
1796 if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
1882 if (!D || (!isa<ObjCMethodDecl>(D) && !isHasFunctionProto(D) && !isa<ParmVarDecl>(D))) {
1932 if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<ObjCPropertyDecl>(D) && !isa<ParmVarDecl>(D))) {
1948 if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D) && !isa<ObjCPropertyDecl>(D) && !isa<ParmVarDecl>(D))) {
2065 if (!D || (!isa<ObjCMethodDecl>(D))) {
2104 if (!D || (!isNonParmVar(D) && !isa<FunctionDecl>(D) && !isa<BlockDecl>(D) && !isa<ObjCMethodDecl>(D))) {
2129 if (!D || (!isa<ObjCMethodDecl>(D))) {
2191 if (!D || (!isa<ObjCMethodDecl>(D))) {
2204 if (!D || (!isa<ObjCMethodDecl>(D) && !isa<ObjCPropertyDecl>(D))) {
2345 if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
2719 if (!D || (!isa<ObjCMethodDecl>(D) && !isa<FunctionDecl>(D))) {
2759 if (!D || (!isa<FunctionDecl>(D) && !isGlobalVar(D) && !isa<ObjCMethodDecl>(D) && !isa<ObjCPropertyDecl>(D))) {
2815 if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
2982 if (!D || (!isa<VarDecl>(D) && !isa<ObjCIvarDecl>(D) && !isa<TypeDecl>(D) && !isa<EnumDecl>(D) && !isa<EnumConstantDecl>(D) && !isa<LabelDecl>(D) && !isa<FieldDecl>(D) && !isa<ObjCMethodDecl>(D) && !isFunctionLike(D))) {
3017 if (!D || (!isNonLocalVar(D) && !isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
3083 if (!D || (!isa<ObjCMethodDecl>(D) && !isa<EnumDecl>(D) && !isa<RecordDecl>(D) && !isFunctionLike(D))) {
3194 if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
3232 if (!D || (!isa<FunctionDecl>(D) && !isa<ObjCMethodDecl>(D))) {
3544 return isa<ObjCMethodDecl>(D);
include/llvm/ADT/ArrayRef.h 108 const ArrayRef<U *> &A,
110 std::is_convertible<U *const *, T const *>::value>::type * = nullptr)
118 const SmallVectorTemplateCommon<U *, DummyT> &Vec,
120 std::is_convertible<U *const *, T const *>::value>::type * = nullptr)
127 ArrayRef(const std::vector<U *, A> &Vec,
129 std::is_convertible<U *const *, T const *>::value>::type* = 0)
include/llvm/ADT/DenseMapInfo.h 39 static inline T* getEmptyKey() {
41 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
45 static inline T* getTombstoneKey() {
47 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
51 static unsigned getHashValue(const T *PtrVal) {
56 static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
56 static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
include/llvm/ADT/STLExtras.h 75 typename std::add_pointer<typename std::add_const<T>::type>::type;
include/llvm/Support/Casting.h 58 return To::classof(&Val);
66 static inline bool doit(const From &) { return true; }
77 return isa_impl<To, From>::doit(Val);
104 static inline bool doit(const From *Val) {
106 return isa_impl<To, From>::doit(*Val);
106 return isa_impl<To, From>::doit(*Val);
122 return isa_impl_wrap<To, SimpleFrom,
132 return isa_impl_cl<To,FromTy>::doit(Val);
142 return isa_impl_wrap<X, const Y,
172 using ret_type = To *; // Pointer arg case, return Ty*
176 using ret_type = const To *; // Constant pointer arg case, return const Ty*
198 using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
204 using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
210 To, From, typename simplify_type<From>::SimpleType>::ret_type;
227 static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
228 typename cast_retty<To, FromTy>::ret_type Res2
256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
265 return cast_convert_val<X, Y*,
265 return cast_convert_val<X, Y*,
266 typename simplify_type<Y*>::SimpleType>::doit(Val);
296 typename cast_retty<X, Y>::ret_type>::type
305 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
309 return cast<X>(Val);
337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
360 typename cast_retty<X, Y>::ret_type>::type
366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
include/llvm/Support/PointerLikeTypeTraits.h 56 static inline void *getAsVoidPointer(T *P) { return P; }
57 static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
59 enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
91 typedef PointerLikeTypeTraits<T *> NonConst;
93 static inline const void *getAsVoidPointer(const T *P) {
96 static inline const T *getFromVoidPointer(const void *P) {
tools/clang/include/clang/AST/ASTContext.h 270 llvm::DenseMap<const ObjCMethodDecl*,const ObjCMethodDecl*> ObjCMethodRedecls;
270 llvm::DenseMap<const ObjCMethodDecl*,const ObjCMethodDecl*> ObjCMethodRedecls;
1826 std::string getObjCEncodingForMethodDecl(const ObjCMethodDecl *Decl,
2364 bool ObjCMethodsAreEqual(const ObjCMethodDecl *MethodDecl,
2365 const ObjCMethodDecl *MethodImp);
2719 const ObjCMethodDecl *
2720 getObjCMethodRedeclaration(const ObjCMethodDecl *MD) const;
2722 void setObjCMethodRedeclaration(const ObjCMethodDecl *MD,
2723 const ObjCMethodDecl *Redecl);
tools/clang/include/clang/AST/ASTNodeTraverser.h 93 if (!isa<FunctionDecl>(*D) && !isa<ObjCMethodDecl>(*D)) {
550 void VisitObjCMethodDecl(const ObjCMethodDecl *D) {
tools/clang/include/clang/AST/ASTTypeTraits.h 65 return ASTNodeKind(KindToKindId<T>::Id);
65 return ASTNodeKind(KindToKindId<T>::Id);
65 return ASTNodeKind(KindToKindId<T>::Id);
234 static DynTypedNode create(const T &Node) {
235 return BaseConverter<T>::create(Node);
251 const T *get() const {
252 return BaseConverter<T>::get(NodeKind, Storage.buffer);
259 const T &getUnchecked() const {
260 return BaseConverter<T>::getUnchecked(NodeKind, Storage.buffer);
394 static const T *get(ASTNodeKind NodeKind, const char Storage[]) {
395 if (ASTNodeKind::getFromNodeKind<T>().isBaseOf(NodeKind))
399 static const T &getUnchecked(ASTNodeKind NodeKind, const char Storage[]) {
401 return *cast<T>(static_cast<const BaseT *>(
469 : public DynCastPtrConverter<T, Decl> {};
tools/clang/include/clang/AST/DeclBase.h 2058 while (*Current && !isa<SpecificDecl>(*Current))
2063 using value_type = SpecificDecl *;
2086 value_type operator*() const { return cast<SpecificDecl>(*Current); }
2135 (!isa<SpecificDecl>(*Current) ||
2136 (Acceptable && !(cast<SpecificDecl>(*Current)->*Acceptable)())))
2136 (Acceptable && !(cast<SpecificDecl>(*Current)->*Acceptable)())))
2136 (Acceptable && !(cast<SpecificDecl>(*Current)->*Acceptable)())))
2141 using value_type = SpecificDecl *;
2164 value_type operator*() const { return cast<SpecificDecl>(*Current); }
2474 static const ToTy *doit(const DeclContext *Val) {
2478 static ToTy *doit(DeclContext *Val) {
2491 return To::classofKind(Val.getDeclKind());
2514 static const ToTy *doit(const ::clang::DeclContext *Val) {
2515 return ::clang::cast_convert_decl_context<ToTy>::doit(Val);
2521 static ToTy *doit(::clang::DeclContext *Val) {
2522 return ::clang::cast_convert_decl_context<ToTy>::doit(Val);
2536 static ::clang::DeclContext *doit(const FromTy *Val) {
2537 return FromTy::castToDeclContext(Val);
tools/clang/include/clang/AST/DeclObjC.h 224 ObjCMethodDecl *getNextRedeclarationImpl() override;
230 static ObjCMethodDecl *
239 static ObjCMethodDecl *CreateDeserialized(ASTContext &C, unsigned ID);
241 ObjCMethodDecl *getCanonicalDecl() override;
242 const ObjCMethodDecl *getCanonicalDecl() const {
268 void setAsRedeclaration(const ObjCMethodDecl *PrevMethod);
461 SmallVectorImpl<const ObjCMethodDecl *> &Overridden) const;
500 const ObjCMethodDecl **InitMethod = nullptr) const;
523 static DeclContext *castToDeclContext(const ObjCMethodDecl *D) {
527 static ObjCMethodDecl *castFromDeclContext(const DeclContext *DC) {
790 ObjCMethodDecl *GetterMethodDecl = nullptr;
793 ObjCMethodDecl *SetterMethodDecl = nullptr;
921 ObjCMethodDecl *getGetterMethodDecl() const { return GetterMethodDecl; }
922 void setGetterMethodDecl(ObjCMethodDecl *gDecl) { GetterMethodDecl = gDecl; }
924 ObjCMethodDecl *getSetterMethodDecl() const { return SetterMethodDecl; }
925 void setSetterMethodDecl(ObjCMethodDecl *gDecl) { SetterMethodDecl = gDecl; }
1032 using method_iterator = specific_decl_iterator<ObjCMethodDecl>;
1034 llvm::iterator_range<specific_decl_iterator<ObjCMethodDecl>>;
1049 filtered_decl_iterator<ObjCMethodDecl,
1050 &ObjCMethodDecl::isInstanceMethod>;
1066 filtered_decl_iterator<ObjCMethodDecl,
1067 &ObjCMethodDecl::isClassMethod>;
1083 ObjCMethodDecl *getMethod(Selector Sel, bool isInstance,
1086 ObjCMethodDecl *getInstanceMethod(Selector Sel,
1091 ObjCMethodDecl *getClassMethod(Selector Sel, bool AllowHidden = false) const {
1354 ObjCMethodDecl *getCategoryInstanceMethod(Selector Sel) const;
1355 ObjCMethodDecl *getCategoryClassMethod(Selector Sel) const;
1357 ObjCMethodDecl *getCategoryMethod(Selector Sel, bool isInstance) const {
1512 llvm::SmallVectorImpl<const ObjCMethodDecl *> &Methods) const;
1525 const ObjCMethodDecl **InitMethod = nullptr) const;
1840 ObjCMethodDecl *lookupMethod(Selector Sel, bool isInstance,
1846 ObjCMethodDecl *lookupInstanceMethod(Selector Sel) const {
1851 ObjCMethodDecl *lookupClassMethod(Selector Sel) const {
1858 ObjCMethodDecl *lookupPrivateMethod(const Selector &Sel,
1861 ObjCMethodDecl *lookupPrivateClassMethod(const Selector &Sel) {
1868 ObjCMethodDecl *lookupPropertyAccessor(const Selector Sel,
2186 ObjCMethodDecl *lookupMethod(Selector Sel, bool isInstance) const;
2188 ObjCMethodDecl *lookupInstanceMethod(Selector Sel) const {
2192 ObjCMethodDecl *lookupClassMethod(Selector Sel) const {
2443 void addInstanceMethod(ObjCMethodDecl *method) {
2449 void addClassMethod(ObjCMethodDecl *method) {
tools/clang/include/clang/AST/ExprObjC.h 126 ObjCMethodDecl *BoxingMethod;
132 ObjCBoxedExpr(Expr *E, QualType T, ObjCMethodDecl *method,
145 ObjCMethodDecl *getBoxingMethod() const {
193 ObjCMethodDecl *ArrayWithObjectsMethod;
196 QualType T, ObjCMethodDecl * Method,
208 QualType T, ObjCMethodDecl * Method,
239 ObjCMethodDecl *getArrayWithObjectsMethod() const {
322 ObjCMethodDecl *DictWithObjectsMethod;
329 QualType T, ObjCMethodDecl *method,
349 QualType T, ObjCMethodDecl *method,
374 ObjCMethodDecl *getDictWithObjectsMethod() const {
632 llvm::PointerIntPair<ObjCMethodDecl *, 2, unsigned> SetterAndMethodRefFlags;
670 ObjCPropertyRefExpr(ObjCMethodDecl *Getter, ObjCMethodDecl *Setter,
670 ObjCPropertyRefExpr(ObjCMethodDecl *Getter, ObjCMethodDecl *Setter,
681 ObjCPropertyRefExpr(ObjCMethodDecl *Getter, ObjCMethodDecl *Setter,
681 ObjCPropertyRefExpr(ObjCMethodDecl *Getter, ObjCMethodDecl *Setter,
691 ObjCPropertyRefExpr(ObjCMethodDecl *Getter, ObjCMethodDecl *Setter,
691 ObjCPropertyRefExpr(ObjCMethodDecl *Getter, ObjCMethodDecl *Setter,
712 ObjCMethodDecl *getImplicitPropertyGetter() const {
714 return cast_or_null<ObjCMethodDecl>(PropertyOrGetter.getPointer());
717 ObjCMethodDecl *getImplicitPropertySetter() const {
818 void setImplicitProperty(ObjCMethodDecl *Getter, ObjCMethodDecl *Setter,
818 void setImplicitProperty(ObjCMethodDecl *Getter, ObjCMethodDecl *Setter,
855 ObjCMethodDecl *GetAtIndexMethodDecl;
859 ObjCMethodDecl *SetAtIndexMethodDecl;
864 ObjCMethodDecl *getMethod,
865 ObjCMethodDecl *setMethod, SourceLocation RB)
896 ObjCMethodDecl *getAtIndexMethodDecl() const {
900 ObjCMethodDecl *setAtIndexMethodDecl() const {
1011 ObjCMethodDecl *Method,
1021 ObjCMethodDecl *Method,
1031 ObjCMethodDecl *Method,
1143 ObjCMethodDecl *Method,
1177 ObjCMethodDecl *Method,
1211 ObjCMethodDecl *Method,
1356 const ObjCMethodDecl *getMethodDecl() const {
1363 ObjCMethodDecl *getMethodDecl() {
1370 void setMethodDecl(ObjCMethodDecl *MD) {
tools/clang/include/clang/AST/GlobalDecl.h 60 GlobalDecl(const ObjCMethodDecl *D) { Init(D); }
tools/clang/include/clang/AST/JSONNodeDumper.h 246 void VisitObjCMethodDecl(const ObjCMethodDecl *D);
tools/clang/include/clang/AST/Mangle.h 128 void mangleObjCMethodNameWithoutSize(const ObjCMethodDecl *MD, raw_ostream &);
129 void mangleObjCMethodName(const ObjCMethodDecl *MD, raw_ostream &);
tools/clang/include/clang/AST/RecursiveASTVisitor.h 1551 if (D->getReturnTypeSourceInfo()) {
1552 TRY_TO(TraverseTypeLoc(D->getReturnTypeSourceInfo()->getTypeLoc()));
1554 for (ParmVarDecl *Parameter : D->parameters()) {
1557 if (D->isThisDeclarationADefinition()) {
1558 TRY_TO(TraverseStmt(D->getBody()));
tools/clang/include/clang/AST/TextNodeDumper.h 337 void VisitObjCMethodDecl(const ObjCMethodDecl *D);
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 110 const T *getNodeAs(StringRef ID) const {
111 return MyBoundNodes.getNodeAs<T>(ID);
1388 extern const internal::VariadicDynCastAllOfMatcher<Decl, ObjCMethodDecl>
tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h 160 const T *getNodeAs(StringRef ID) const {
165 return It->second.get<T>();
302 virtual bool matches(const T &Node,
309 return matches(DynNode.getUnchecked<T>(), Finder, Builder);
345 DynTypedMatcher(MatcherInterface<T> *Implementation)
346 : SupportedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()),
436 return canConvertTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
445 template <typename T> Matcher<T> convertTo() const {
447 return unconditionalConvertTo<T>();
479 class WrapperMatcherInterface : public MatcherInterface<T> {
499 explicit Matcher(MatcherInterface<T> *Implementation)
507 typename std::enable_if<std::is_base_of<From, T>::value &&
508 !std::is_same<From, T>::value>::type * = nullptr)
520 std::is_same<T, QualType>::value &&
529 static_assert(std::is_base_of<To, T>::value, "Invalid dynCast call.");
534 bool matches(const T &Node,
581 return Other.dynCastTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
596 inline Matcher<T> makeMatcher(MatcherInterface<T> *Implementation) {
596 inline Matcher<T> makeMatcher(MatcherInterface<T> *Implementation) {
1009 bool matchesDescendantOf(const T &Node,
1013 static_assert(std::is_base_of<Decl, T>::value ||
1014 std::is_base_of<Stmt, T>::value ||
1015 std::is_base_of<NestedNameSpecifier, T>::value ||
1016 std::is_base_of<NestedNameSpecifierLoc, T>::value ||
1017 std::is_base_of<TypeLoc, T>::value ||
1018 std::is_base_of<QualType, T>::value,
1067 using head = T1;
1073 using tail = TypeList<Ts...>;
1084 std::is_base_of<typename AnyTypeList::head, T>::value ||
1085 TypeListContainsSuperOf<typename AnyTypeList::tail, T>::value;
1146 template <typename To> operator Matcher<To>() const {
1184 operator Matcher<T>() const {
1185 static_assert(TypeListContainsSuperOf<ReturnTypes, T>::value,
1202 operator Matcher<T>() const {
1203 static_assert(TypeListContainsSuperOf<ReturnTypes, T>::value,
1223 operator Matcher<T>() const {
1224 static_assert(TypeListContainsSuperOf<ReturnTypes, T>::value,
1243 operator Matcher<T>() const {
1245 ast_type_traits::ASTNodeKind::getFromNodeKind<T>())
1246 .template unconditionalConvertTo<T>();
1255 class BindableMatcher : public Matcher<T> {
1257 explicit BindableMatcher(const Matcher<T> &M) : Matcher<T>(M) {}
1258 explicit BindableMatcher(MatcherInterface<T> *Implementation)
1265 Matcher<T> bind(StringRef ID) const {
1335 template <typename T> operator Matcher<T>() const {
1337 Op, ast_type_traits::ASTNodeKind::getFromNodeKind<T>(),
1338 getMatchers<T>(std::index_sequence_for<Ps...>()))
1339 .template unconditionalConvertTo<T>();
1370 inline Matcher<T> DynTypedMatcher::unconditionalConvertTo() const {
1376 BindableMatcher<T> makeAllOfComposite(
1377 ArrayRef<const Matcher<T> *> InnerMatchers) {
1388 using PI = llvm::pointee_iterator<const Matcher<T> *const *>;
1395 ast_type_traits::ASTNodeKind::getFromNodeKind<T>(),
1397 .template unconditionalConvertTo<T>());
1408 ArrayRef<const Matcher<InnerT> *> InnerMatchers) {
1480 class ForEachDescendantMatcher : public WrapperMatcherInterface<T> {
1489 bool matches(const T &Node, ASTMatchFinder *Finder,
1557 : public VariadicFunction<BindableMatcher<SourceT>, Matcher<TargetT>,
1558 makeDynCastAllOfComposite<SourceT, TargetT>> {
tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h 199 ast_matchers::internal::Matcher<T> getTypedMatcher() const {
202 ->template convertTo<T>();
227 : MatcherOps(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()) {}
228 typedef ast_matchers::internal::Matcher<T> MatcherT;
232 return DynTypedMatcher(Matcher.convertTo<T>());
tools/clang/include/clang/Analysis/AnyCall.h 91 AnyCall(const ObjCMethodDecl *D) : E(nullptr), D(D), K(ObjCMethod) {}
128 } else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
128 } else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
141 } else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
141 } else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
165 return cast<ObjCMethodDecl>(D)->getReturnType();
tools/clang/include/clang/Analysis/BodyFarm.h 39 Stmt *getBody(const ObjCMethodDecl *D);
tools/clang/include/clang/Analysis/CallGraph.h 121 bool VisitObjCMethodDecl(ObjCMethodDecl *MD) {
tools/clang/include/clang/Analysis/CodeInjector.h 41 virtual Stmt *getBody(const ObjCMethodDecl *D) = 0;
tools/clang/include/clang/Analysis/RetainSummaryManager.h 671 const RetainSummary *getMethodSummary(const ObjCMethodDecl *MD);
676 const ObjCMethodDecl *MD,
685 const RetainSummary *getStandardMethodSummary(const ObjCMethodDecl *MD,
693 const ObjCMethodDecl *MD);
tools/clang/include/clang/CodeGen/CodeGenABITypes.h 54 const ObjCMethodDecl *MD,
tools/clang/include/clang/Sema/Initialization.h 183 ObjCMethodDecl *MethodDecl;
336 static InitializedEntity InitializeRelatedResult(ObjCMethodDecl *MD,
433 ObjCMethodDecl *getMethodDecl() const { return MethodDecl; }
tools/clang/include/clang/Sema/ObjCMethodList.h 28 llvm::PointerIntPair<ObjCMethodDecl *, 1> MethodAndHasMoreThanOneDecl;
33 ObjCMethodList(ObjCMethodDecl *M)
44 ObjCMethodDecl *getMethod() const {
47 void setMethod(ObjCMethodDecl *M) {
tools/clang/include/clang/Sema/Sema.h 935 ObjCMethodDecl *NSNumberLiteralMethods[NSAPI::NumNSNumberLiteralMethods];
944 ObjCMethodDecl *StringWithUTF8StringMethod;
947 ObjCMethodDecl *ValueWithBytesObjCTypeMethod;
953 ObjCMethodDecl *ArrayWithObjectsMethod;
959 ObjCMethodDecl *DictionaryWithObjectsMethod;
1273 bool isSelfExpr(Expr *RExpr, const ObjCMethodDecl *Method);
2296 return D && isa<ObjCMethodDecl>(D);
2713 ObjCMethodDecl *getCurMethodDecl();
2836 void mergeObjCMethodDecls(ObjCMethodDecl *New, ObjCMethodDecl *Old);
2836 void mergeObjCMethodDecls(ObjCMethodDecl *New, ObjCMethodDecl *Old);
3764 void WarnConflictingTypedMethods(ObjCMethodDecl *Method,
3765 ObjCMethodDecl *MethodDecl,
3768 void CheckConflictingOverridingMethod(ObjCMethodDecl *Method,
3769 ObjCMethodDecl *Overridden,
3774 void WarnExactTypedMethods(ObjCMethodDecl *Method,
3775 ObjCMethodDecl *MethodDecl,
3812 ObjCMethodDecl *Method, ObjCIvarDecl *IV);
3822 ObjCIvarDecl *GetIvarBackingPropertyAccessor(const ObjCMethodDecl *Method,
3882 bool MatchTwoMethodDeclarations(const ObjCMethodDecl *Method,
3883 const ObjCMethodDecl *PrevMethod,
3904 void addMethodToGlobalList(ObjCMethodList *List, ObjCMethodDecl *Method);
3909 void AddMethodToGlobalPool(ObjCMethodDecl *Method, bool impl, bool instance);
3913 ObjCMethodDecl *LookupMethodInGlobalPool(Selector Sel, SourceRange R,
3925 SmallVectorImpl<ObjCMethodDecl*>& Methods,
3930 AreMultipleMethodsInGlobalPool(Selector Sel, ObjCMethodDecl *BestMethod,
3932 SmallVectorImpl<ObjCMethodDecl*>& Methods);
3935 DiagnoseMultipleMethodInGlobalPool(SmallVectorImpl<ObjCMethodDecl*> &Methods,
3942 ObjCMethodDecl *SelectBestMethod(Selector Sel, MultiExprArg Args,
3944 SmallVectorImpl<ObjCMethodDecl*>& Methods);
3960 void AddInstanceMethodToGlobalPool(ObjCMethodDecl *Method, bool impl=false) {
3965 void AddFactoryMethodToGlobalPool(ObjCMethodDecl *Method, bool impl=false) {
3975 ObjCMethodDecl *LookupInstanceMethodInGlobalPool(Selector Sel, SourceRange R,
3983 ObjCMethodDecl *LookupFactoryMethodInGlobalPool(Selector Sel, SourceRange R,
3989 const ObjCMethodDecl *SelectorsForTypoCorrection(Selector Sel,
3993 ObjCMethodDecl *LookupImplementedMethodInGlobalPool(Selector Sel);
4366 ObjCMethodDecl *Getter,
6168 ObjCMethodDecl *getterMethod,
6169 ObjCMethodDecl *setterMethod);
8750 ObjCMethodDecl *LookupMethodInQualifiedType(Selector Sel,
8753 ObjCMethodDecl *LookupMethodInObjectType(Selector Sel, QualType Ty,
8756 bool CheckARCMethodDecl(ObjCMethodDecl *method);
8774 ObjCMethodDecl *tryCaptureObjCSelf(SourceLocation Loc);
8806 ObjCMethodDecl *Method,
8817 ObjCMethodDecl *Method,
8832 ObjCMethodDecl *Method,
8843 ObjCMethodDecl *Method,
8878 ObjCMethodDecl *&ClassMethod,
8879 ObjCMethodDecl *&InstanceMethod,
8890 bool checkInitMethod(ObjCMethodDecl *method, QualType receiverTypeIfCall);
8894 void CheckObjCMethodOverride(ObjCMethodDecl *NewMethod,
8895 const ObjCMethodDecl *Overridden);
8904 void CheckObjCMethodOverrides(ObjCMethodDecl *ObjCMethod,
10573 ObjCMethodDecl *Method, bool isClassMessage,
10582 ObjCMethodDecl *Method, bool isClassMessage,
11249 bool CheckObjCMethodCall(ObjCMethodDecl *Method, SourceLocation loc,
tools/clang/include/clang/Serialization/ASTReader.h 1855 T *GetLocalDeclAs(ModuleFile &F, uint32_t LocalID) {
1856 return cast_or_null<T>(GetLocalDecl(F, LocalID));
1887 T *ReadDeclAs(ModuleFile &F, const RecordData &R, unsigned &I) {
1888 return cast_or_null<T>(GetDecl(ReadDeclID(F, R, I)));
2541 T *readDeclAs() {
2542 return Reader->ReadDeclAs<T>(*F, Record, Idx);
tools/clang/include/clang/StaticAnalyzer/Core/Checker.h 33 ((const CHECKER *)checker)->checkASTDecl(cast<DECL>(D), mgr, BR);
37 return isa<DECL>(D);
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h 966 const ObjCMethodDecl *getDecl() const override {
tools/clang/lib/ARCMigrate/ObjCMT.cpp 58 ObjCMethodDecl *OM);
59 bool migrateProperty(ASTContext &Ctx, ObjCContainerDecl *D, ObjCMethodDecl *OM);
60 void migrateNsReturnsInnerPointer(ASTContext &Ctx, ObjCMethodDecl *OM);
63 ObjCMethodDecl *OM,
72 const ObjCMethodDecl *MethodDecl, bool ResultAnnotated);
82 const ObjCMethodDecl *MethodDecl);
183 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D))
183 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D))
254 const ObjCMethodDecl *Method = Msg->getMethodDecl();
388 if (isa<ObjCMethodDecl>(D))
463 static void rewriteToObjCProperty(const ObjCMethodDecl *Getter,
464 const ObjCMethodDecl *Setter,
587 for (auto *Method : D->methods()) {
650 for (const auto *MD : PDecl->methods()) {
653 if (MD->getImplementationControl() == ObjCMethodDecl::Optional)
661 if (ObjCMethodDecl *ImpMD = dyn_cast<ObjCMethodDecl>(R[0]))
661 if (ObjCMethodDecl *ImpMD = dyn_cast<ObjCMethodDecl>(R[0]))
968 ObjCMethodDecl *OM) {
990 ObjCMethodDecl *OM) {
1013 ObjCMethodDecl *OM) {
1167 ObjCMethodDecl *Method) {
1188 ObjCMethodDecl *SetterMethod = D->getInstanceMethod(SetterSelector);
1261 ObjCMethodDecl *OM) {
1295 for (auto *Method : CDecl->methods()) {
1304 ObjCMethodDecl *OM,
1461 migrateAddMethodAnnotation(Ctx, cast<ObjCMethodDecl>(Decl));
1575 for (const auto *Method : CDecl->methods())
1581 const ObjCMethodDecl *MethodDecl,
1618 for (ObjCMethodDecl::param_const_iterator pi = MethodDecl->param_begin(),
1635 const ObjCMethodDecl *MethodDecl) {
1677 for (ObjCMethodDecl::param_const_iterator pi = MethodDecl->param_begin(),
1705 static bool hasSuperInitCall(const ObjCMethodDecl *MD) {
1719 for (const auto *MD : ImplD->instance_methods()) {
1724 const ObjCMethodDecl *IFaceM = IFace->getMethod(MD->getSelector(),
tools/clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp 204 ObjCMethodDecl *DeallocM = nullptr;
205 ObjCMethodDecl *FinalizeM = nullptr;
206 for (auto *MD : I->instance_methods()) {
tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp 186 if (ObjCMethodDecl *method = dyn_cast_or_null<ObjCMethodDecl>(ParentD)) {
186 if (ObjCMethodDecl *method = dyn_cast_or_null<ObjCMethodDecl>(ParentD)) {
tools/clang/lib/ARCMigrate/TransZeroOutPropsInDealloc.cpp 99 bool TraverseObjCMethodDecl(ObjCMethodDecl *D) {
119 ObjCMethodDecl *setterM = PD->getSetterMethodDecl();
133 base::TraverseObjCMethodDecl(D);
tools/clang/lib/ARCMigrate/Transforms.cpp 528 for (const auto *MD : I->instance_methods()) {
533 const ObjCMethodDecl *FinalizeM = MD;
tools/clang/lib/ARCMigrate/Transforms.h 199 bool TraverseObjCMethodDecl(ObjCMethodDecl *D) {
201 return base::TraverseObjCMethodDecl(D);
tools/clang/lib/AST/ASTContext.cpp 163 if (isa<ObjCMethodDecl>(D) || isa<ObjCContainerDecl>(D) ||
222 isa<ObjCMethodDecl>(D) || isa<ObjCPropertyDecl>(D))) {
445 static void addRedeclaredMethods(const ObjCMethodDecl *ObjCMethod,
454 if (ObjCMethodDecl *RedeclaredMethod =
552 if (isa<ObjCMethodDecl>(D) || isa<FunctionDecl>(D)) {
554 const auto *OMD = dyn_cast<ObjCMethodDecl>(D);
554 const auto *OMD = dyn_cast<ObjCMethodDecl>(D);
1550 const auto *Method = dyn_cast<ObjCMethodDecl>(D);
1550 const auto *Method = dyn_cast<ObjCMethodDecl>(D);
1554 SmallVector<const ObjCMethodDecl *, 8> OverDecls;
2632 const ObjCMethodDecl *
2633 ASTContext::getObjCMethodRedeclaration(const ObjCMethodDecl *MD) const {
2637 void ASTContext::setObjCMethodRedeclaration(const ObjCMethodDecl *MD,
2638 const ObjCMethodDecl *Redecl) {
6435 std::string ASTContext::getObjCEncodingForMethodDecl(const ObjCMethodDecl *Decl,
6449 for (ObjCMethodDecl::param_const_iterator PI = Decl->param_begin(),
6466 for (ObjCMethodDecl::param_const_iterator PI = Decl->param_begin(),
10520 ASTContext::ObjCMethodsAreEqual(const ObjCMethodDecl *MethodDecl,
10521 const ObjCMethodDecl *MethodImpl) {
10535 for (ObjCMethodDecl::param_const_iterator IM = MethodImpl->param_begin(),
tools/clang/lib/AST/ASTDiagnostic.cpp 447 else if (isa<ObjCMethodDecl>(ND))
tools/clang/lib/AST/ASTImporter.cpp 162 Expected<T *> import(T *From) {
162 Expected<T *> import(T *From) {
166 return cast_or_null<T>(*ToOrErr);
170 Expected<T *> import(const T *From) {
170 Expected<T *> import(const T *From) {
217 -> decltype(ToDeclT::Create(std::forward<Args>(args)...)) {
218 return ToDeclT::Create(std::forward<Args>(args)...);
229 LLVM_NODISCARD bool GetImportedOrCreateDecl(ToDeclT *&ToD, FromDeclT *FromD,
229 LLVM_NODISCARD bool GetImportedOrCreateDecl(ToDeclT *&ToD, FromDeclT *FromD,
234 CallOverloadedCreateFun<ToDeclT> OC;
256 GetImportedOrCreateSpecialDecl(ToDeclT *&ToD, CreateFunT CreateFun,
257 FromDeclT *FromD, Args &&... args) {
262 ToD = cast_or_null<ToDeclT>(Importer.GetAlreadyImportedOrNull(FromD));
476 ExpectedDecl VisitObjCMethodDecl(ObjCMethodDecl *D);
3877 ExpectedDecl ASTNodeImporter::VisitObjCMethodDecl(ObjCMethodDecl *D) {
3890 if (auto *FoundMethod = dyn_cast<ObjCMethodDecl>(FoundDecl)) {
3890 if (auto *FoundMethod = dyn_cast<ObjCMethodDecl>(FoundDecl)) {
3920 for (ObjCMethodDecl::param_iterator P = D->param_begin(),
3962 ObjCMethodDecl *ToMethod;
4837 ObjCMethodDecl *ToGetterMethodDecl, *ToSetterMethodDecl;
tools/clang/lib/AST/Comment.cpp 253 const ObjCMethodDecl *MD = cast<ObjCMethodDecl>(CommentDecl);
253 const ObjCMethodDecl *MD = cast<ObjCMethodDecl>(CommentDecl);
tools/clang/lib/AST/CommentSema.cpp 824 if (const ObjCMethodDecl *MD =
825 dyn_cast<ObjCMethodDecl>(ThisDeclInfo->CurrentDecl))
840 isa<ObjCMethodDecl>(ThisDeclInfo->CurrentDecl);
tools/clang/lib/AST/Decl.cpp 1585 if (auto *MD = dyn_cast<ObjCMethodDecl>(this))
1589 if (auto *MD = PD->getGetterMethodDecl())
1704 if (isa<ObjCMethodDecl>(this))
2689 if (isa<ObjCMethodDecl>(getDeclContext()))
tools/clang/lib/AST/DeclBase.cpp 982 else if (auto *MD = dyn_cast<ObjCMethodDecl>(D))
982 else if (auto *MD = dyn_cast<ObjCMethodDecl>(D))
tools/clang/lib/AST/DeclObjC.cpp 90 ObjCMethodDecl *
111 auto *MD = dyn_cast<ObjCMethodDecl>(*Meth);
111 auto *MD = dyn_cast<ObjCMethodDecl>(*Meth);
129 auto *MD = dyn_cast<ObjCMethodDecl>(*Meth);
129 auto *MD = dyn_cast<ObjCMethodDecl>(*Meth);
138 if (ObjCMethodDecl *MD = Cat->getInstanceMethod(Sel))
487 for (const auto *MD : D->instance_methods()) {
492 for (const auto *MD : Ext->instance_methods()) {
498 for (const auto *MD : ImplD->instance_methods()) {
539 llvm::SmallVectorImpl<const ObjCMethodDecl *> &Methods) const {
550 for (const auto *MD : IFace->instance_methods())
554 for (const auto *MD : Ext->instance_methods())
561 const ObjCMethodDecl **InitMethod) const {
581 if (const ObjCMethodDecl *MD = IFace->getInstanceMethod(Sel)) {
589 if (const ObjCMethodDecl *MD = Ext->getInstanceMethod(Sel)) {
682 ObjCMethodDecl *ObjCInterfaceDecl::lookupMethod(Selector Sel,
693 ObjCMethodDecl *MethodDecl = nullptr;
739 ObjCMethodDecl *ObjCInterfaceDecl::lookupPrivateMethod(
749 ObjCMethodDecl *Method = nullptr;
809 ObjCMethodDecl *ObjCMethodDecl::Create(
815 return new (C, contextDecl) ObjCMethodDecl(
821 ObjCMethodDecl *ObjCMethodDecl::CreateDeserialized(ASTContext &C, unsigned ID) {
822 return new (C, ID) ObjCMethodDecl(SourceLocation(), SourceLocation(),
840 const ObjCMethodDecl **InitMethod) const {
855 void ObjCMethodDecl::setAsRedeclaration(const ObjCMethodDecl *PrevMethod) {
905 ObjCMethodDecl *ObjCMethodDecl::getNextRedeclarationImpl() {
907 ObjCMethodDecl *Redecl = nullptr;
953 ObjCMethodDecl *ObjCMethodDecl::getCanonicalDecl() {
958 if (ObjCMethodDecl *MD = IFD->getMethod(getSelector(),
963 if (ObjCMethodDecl *MD = CatD->getMethod(getSelector(),
970 ObjCMethodDecl *MD =
1052 ObjCMethodDecl::param_type_iterator it = param_type_begin();
1177 const ObjCMethodDecl *Method,
1178 SmallVectorImpl<const ObjCMethodDecl *> &Methods,
1190 if (ObjCMethodDecl *
1207 if (const ObjCMethodDecl *
1237 const ObjCMethodDecl *Method,
1238 SmallVectorImpl<const ObjCMethodDecl *> &Methods) {
1243 static void collectOverriddenMethodsSlow(const ObjCMethodDecl *Method,
1244 SmallVectorImpl<const ObjCMethodDecl *> &overridden) {
1258 if (const ObjCMethodDecl *IFaceMeth = ID->getMethod(Method->getSelector(),
1271 if (const ObjCMethodDecl *IFaceMeth = ID->getMethod(Method->getSelector(),
1285 SmallVectorImpl<const ObjCMethodDecl *> &Overridden) const {
1286 const ObjCMethodDecl *Method = this;
1367 using OverridesTy = SmallVector<const ObjCMethodDecl *, 8>;
1371 for (const auto *Override : Overrides)
1678 ObjCMethodDecl *
1682 if (ObjCMethodDecl *MD = Impl->getInstanceMethod(Sel))
1689 ObjCMethodDecl *ObjCInterfaceDecl::getCategoryClassMethod(Selector Sel) const {
1692 if (ObjCMethodDecl *MD = Impl->getClassMethod(Sel))
1890 ObjCMethodDecl *ObjCProtocolDecl::lookupMethod(Selector Sel,
1892 ObjCMethodDecl *MethodDecl = nullptr;
tools/clang/lib/AST/DeclPrinter.cpp 89 void VisitObjCMethodDecl(ObjCMethodDecl *D);
445 else if (isa<ObjCMethodDecl>(*D) && cast<ObjCMethodDecl>(*D)->hasBody())
445 else if (isa<ObjCMethodDecl>(*D) && cast<ObjCMethodDecl>(*D)->hasBody())
1263 void DeclPrinter::VisitObjCMethodDecl(ObjCMethodDecl *OMD) {
tools/clang/lib/AST/Expr.cpp 868 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(CurrentDecl)) {
868 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(CurrentDecl)) {
2612 if (const ObjCMethodDecl *MD = ME->getMethodDecl())
3834 const ObjCMethodDecl *M = dyn_cast<ObjCMethodDecl>(Param->getDeclContext());
3834 const ObjCMethodDecl *M = dyn_cast<ObjCMethodDecl>(Param->getDeclContext());
tools/clang/lib/AST/ExprClassification.cpp 376 if (const ObjCMethodDecl *Method =
tools/clang/lib/AST/ExprObjC.cpp 27 ObjCMethodDecl *Method, SourceRange SR)
46 QualType T, ObjCMethodDecl *Method,
60 ObjCMethodDecl *method,
97 ObjCMethodDecl *method, SourceRange SR) {
128 ObjCMethodDecl *Method, ArrayRef<Expr *> Args,
149 ObjCMethodDecl *Method, ArrayRef<Expr *> Args,
166 ObjCMethodDecl *Method, ArrayRef<Expr *> Args,
210 ObjCMethodDecl *Method, ArrayRef<Expr *> Args,
229 ObjCMethodDecl *Method, ArrayRef<Expr *> Args,
248 ObjCMethodDecl *Method, ArrayRef<Expr *> Args,
297 if (const ObjCMethodDecl *MD = getMethodDecl()) {
tools/clang/lib/AST/ItaniumMangle.cpp 84 return isa<FunctionDecl>(DC) || isa<ObjCMethodDecl>(DC) || isa<BlockDecl>(DC);
513 void mangleObjCMethodName(const ObjCMethodDecl *MD);
1562 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(DC))
1562 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(DC))
2384 void CXXNameMangler::mangleObjCMethodName(const ObjCMethodDecl *MD) {
tools/clang/lib/AST/JSONNodeDumper.cpp 910 void JSONNodeDumper::VisitObjCMethodDecl(const ObjCMethodDecl *D) {
1073 if (const ObjCMethodDecl *MD = OBE->getBoxingMethod()) {
1097 if (const ObjCMethodDecl *MD = OPRE->getImplicitPropertyGetter())
1099 if (const ObjCMethodDecl *MD = OPRE->getImplicitPropertySetter())
1116 if (const ObjCMethodDecl *MD = OSRE->getAtIndexMethodDecl())
1118 if (const ObjCMethodDecl *MD = OSRE->setAtIndexMethodDecl())
tools/clang/lib/AST/Mangle.cpp 151 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D))
151 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D))
168 else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D))
168 else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D))
237 if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(DC)) {
237 if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(DC)) {
267 void MangleContext::mangleObjCMethodNameWithoutSize(const ObjCMethodDecl *MD,
284 void MangleContext::mangleObjCMethodName(const ObjCMethodDecl *MD,
314 } else if (auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
tools/clang/lib/AST/MicrosoftMangle.cpp 354 void mangleObjCMethodName(const ObjCMethodDecl *MD);
1122 } else if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(DC)) {
1122 } else if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(DC)) {
1311 void MicrosoftCXXNameMangler::mangleObjCMethodName(const ObjCMethodDecl *MD) {
tools/clang/lib/AST/StmtPrinter.cpp 1017 if (const auto *Getter = Node->getImplicitPropertyGetter())
tools/clang/lib/AST/TextNodeDumper.cpp 266 const auto *MD = dyn_cast<ObjCMethodDecl>(D);
266 const auto *MD = dyn_cast<ObjCMethodDecl>(D);
985 if (auto *BoxingMethod = Node->getBoxingMethod()) {
1018 if (ObjCMethodDecl *Setter = Node->getImplicitPropertySetter())
1816 void TextNodeDumper::VisitObjCMethodDecl(const ObjCMethodDecl *D) {
tools/clang/lib/AST/Type.cpp 1445 if (const auto method = dyn_cast<ObjCMethodDecl>(dc))
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp 637 const internal::VariadicDynCastAllOfMatcher<Decl, ObjCMethodDecl>
tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h 75 return Value.isMatcher() && Value.getMatcher().hasTypedMatcher<T>();
78 static ast_matchers::internal::Matcher<T> get(const VariantValue &Value) {
79 return Value.getMatcher().getTypedMatcher<T>();
83 return ArgKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
361 RetTypes.push_back(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
466 ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT> Func,
469 DerivedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<DerivedT>()) {
778 ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT>
tools/clang/lib/Analysis/AnalysisDeclContext.cpp 108 else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
108 else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
149 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D))
149 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D))
tools/clang/lib/Analysis/BodyFarm.cpp 800 Stmt *BodyFarm::getBody(const ObjCMethodDecl *D) {
tools/clang/lib/Analysis/CallGraph.cpp 200 if (F && !isa<ObjCMethodDecl>(F))
tools/clang/lib/Analysis/PathDiagnostic.cpp 798 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D))
798 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D))
866 if (const auto *MD = dyn_cast<ObjCMethodDecl>(Callee))
866 if (const auto *MD = dyn_cast<ObjCMethodDecl>(Callee))
tools/clang/lib/Analysis/RetainSummaryManager.cpp 676 Summ = getMethodSummary(cast<ObjCMethodDecl>(C.getDecl()));
898 } else if (const auto *MD = dyn_cast<ObjCMethodDecl>(ND)) {
898 } else if (const auto *MD = dyn_cast<ObjCMethodDecl>(ND)) {
993 const ObjCMethodDecl *MD) {
1016 RetainSummaryManager::getStandardMethodSummary(const ObjCMethodDecl *MD,
1141 const ObjCMethodDecl *Method = ME->getMethodDecl();
1152 const ObjCMethodDecl *MD, QualType RetTy,
1275 RetainSummaryManager::getMethodSummary(const ObjCMethodDecl *MD) {
tools/clang/lib/Analysis/ThreadSafetyCommon.cpp 285 : (cast<ObjCMethodDecl>(D)->getCanonicalDecl() == Canonical)) {
295 : cast<ObjCMethodDecl>(D)->getCanonicalDecl()->getParamDecl(I);
827 auto Parms = isa<ObjCMethodDecl>(D) ? cast<ObjCMethodDecl>(D)->parameters()
827 auto Parms = isa<ObjCMethodDecl>(D) ? cast<ObjCMethodDecl>(D)->parameters()
tools/clang/lib/CodeGen/Address.h 108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGCall.cpp 457 CodeGenTypes::arrangeObjCMethodDeclaration(const ObjCMethodDecl *MD) {
470 CodeGenTypes::arrangeObjCMessageSendSignature(const ObjCMethodDecl *MD,
2677 const ObjCMethodDecl *method =
2678 dyn_cast_or_null<ObjCMethodDecl>(CGF.CurCodeDecl);
2901 else if (auto *MD = dyn_cast<ObjCMethodDecl>(CurCodeDecl))
tools/clang/lib/CodeGen/CGDebugInfo.cpp 278 StringRef CGDebugInfo::getObjCMethodName(const ObjCMethodDecl *OMD) {
2309 const ObjCMethodDecl *Getter) {
2321 const ObjCMethodDecl *Setter) {
2491 ObjCMethodDecl *Getter = PD->getGetterMethodDecl();
2492 ObjCMethodDecl *Setter = PD->getSetterMethodDecl();
2580 ObjCMethodDecl *Getter = PD->getGetterMethodDecl();
2581 ObjCMethodDecl *Setter = PD->getSetterMethodDecl();
3290 !isa<ObjCMethodDecl>(VD->getDeclContext()))
3479 if (const auto *OMethod = dyn_cast<ObjCMethodDecl>(D)) {
3479 if (const auto *OMethod = dyn_cast<ObjCMethodDecl>(D)) {
3569 } else if (const auto *OMD = dyn_cast<ObjCMethodDecl>(D)) {
3569 } else if (const auto *OMD = dyn_cast<ObjCMethodDecl>(D)) {
3634 if (const auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) {
3634 if (const auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) {
3677 } else if (const auto *OMD = dyn_cast<ObjCMethodDecl>(D)) {
3677 } else if (const auto *OMD = dyn_cast<ObjCMethodDecl>(D)) {
tools/clang/lib/CodeGen/CGDebugInfo.h 654 StringRef getObjCMethodName(const ObjCMethodDecl *FD);
tools/clang/lib/CodeGen/CGDecl.cpp 209 else if (const auto *OMD = dyn_cast<ObjCMethodDecl>(DC))
209 else if (const auto *OMD = dyn_cast<ObjCMethodDecl>(DC))
1087 } else if (const auto *OM = dyn_cast<ObjCMethodDecl>(DC)) {
1087 } else if (const auto *OM = dyn_cast<ObjCMethodDecl>(DC)) {
tools/clang/lib/CodeGen/CGObjC.cpp 62 const ObjCMethodDecl *BoxingMethod = E->getBoxingMethod();
118 const ObjCMethodDecl *MethodWithObjects) {
198 ObjCMethodDecl::param_const_iterator PI = MethodWithObjects->param_begin();
374 const ObjCMethodDecl *method,
460 if (const auto *CurMD = dyn_cast_or_null<ObjCMethodDecl>(CGF.CurFuncDecl))
460 if (const auto *CurMD = dyn_cast_or_null<ObjCMethodDecl>(CGF.CurFuncDecl))
492 const ObjCMethodDecl *method = E->getMethodDecl();
528 if (auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(CurFuncDecl))
595 GetAddrOfLocalVar(cast<ObjCMethodDecl>(CurCodeDecl)->getSelfDecl());
602 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl);
602 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl);
630 GetAddrOfLocalVar(cast<ObjCMethodDecl>(CurCodeDecl)->getSelfDecl());
647 const ObjCMethodDecl *method = cast<ObjCMethodDecl>(CGF.CurCodeDecl);
647 const ObjCMethodDecl *method = cast<ObjCMethodDecl>(CGF.CurCodeDecl);
675 void CodeGenFunction::StartObjCMethod(const ObjCMethodDecl *OMD,
715 void CodeGenFunction::GenerateObjCMethod(const ObjCMethodDecl *OMD) {
958 ObjCMethodDecl *OMD = PD->getGetterMethodDecl();
1024 const ObjCMethodDecl *GetterMethodDecl,
1044 ObjCMethodDecl *getterMethod = prop->getGetterMethodDecl();
1200 static void emitStructSetterCall(CodeGenFunction &CGF, ObjCMethodDecl *OMD,
1245 ObjCMethodDecl *OMD,
1316 ObjCMethodDecl *setterMethod = prop->getSetterMethodDecl();
1494 ObjCMethodDecl *OMD = PD->getSetterMethodDecl();
1571 ObjCMethodDecl *MD,
1607 VarDecl *Self = cast<ObjCMethodDecl>(CurFuncDecl)->getSelfDecl();
1615 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl);
1615 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl);
tools/clang/lib/CodeGen/CGObjCGNU.cpp 456 ArrayRef<const ObjCMethodDecl*> Methods,
501 ArrayRef<const ObjCMethodDecl*> Methods);
506 SmallVector<const ObjCMethodDecl*, 16> RequiredMethods;
507 SmallVector<const ObjCMethodDecl*, 16> OptionalMethods;
508 for (const auto *I : Methods)
583 const ObjCMethodDecl *Method) override;
590 const ObjCMethodDecl *Method) override;
596 const ObjCMethodDecl *Method) override;
601 llvm::Constant *GetConstantSelector(const ObjCMethodDecl *M) {
607 llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
761 if (isa<ObjCMethodDecl>(CGF.CurCodeDecl)) {
1150 GenerateProtocolMethodList(ArrayRef<const ObjCMethodDecl*> Methods) override {
1722 SmallVector<ObjCMethodDecl*, 16> ClassMethods;
1877 SmallVector<const ObjCMethodDecl*, 16> InstanceMethods;
2354 const ObjCMethodDecl *Method) {
2502 const ObjCMethodDecl *Method) {
2620 const ObjCMethodDecl *Method) {
2768 ArrayRef<const ObjCMethodDecl*> Methods,
2808 for (const auto *OMD : Methods) {
2984 GenerateProtocolMethodList(ArrayRef<const ObjCMethodDecl*> Methods) {
3078 SmallVector<const ObjCMethodDecl*, 16> InstanceMethods;
3079 SmallVector<const ObjCMethodDecl*, 16> OptionalInstanceMethods;
3080 for (const auto *I : PD->instance_methods())
3086 SmallVector<const ObjCMethodDecl*, 16> ClassMethods;
3087 SmallVector<const ObjCMethodDecl*, 16> OptionalClassMethods;
3088 for (const auto *I : PD->class_methods())
3240 SmallVector<ObjCMethodDecl*, 16> InstanceMethods;
3248 SmallVector<ObjCMethodDecl*, 16> ClassMethods;
3484 SmallVector<const ObjCMethodDecl*, 16> InstanceMethods;
3488 SmallVector<const ObjCMethodDecl*, 16> ClassMethods;
3853 llvm::Function *CGObjCGNU::GenerateMethod(const ObjCMethodDecl *OMD,
tools/clang/lib/CodeGen/CGObjCMac.cpp 875 llvm::DenseMap<const ObjCMethodDecl*, llvm::Function*> MethodDefinitions;
924 void GetNameForMethod(const ObjCMethodDecl *OMD,
937 llvm::Constant *GetMethodVarType(const ObjCMethodDecl *D,
954 llvm::Function *GetMethodDefinition(const ObjCMethodDecl *MD);
1073 const ObjCMethodDecl *OMD,
1092 llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
1165 SmallVector<const ObjCMethodDecl *, 4> Methods[NumProtocolMethodLists];
1265 ArrayRef<const ObjCMethodDecl *> Methods);
1268 const ObjCMethodDecl *MD);
1271 const ObjCMethodDecl *MD);
1276 ArrayRef<const ObjCMethodDecl *> Methods);
1321 const ObjCMethodDecl *Method) override;
1329 const ObjCMethodDecl *Method) override;
1340 const ObjCMethodDecl *Method) override;
1442 const ObjCMethodDecl *MD,
1448 ArrayRef<const ObjCMethodDecl *> Methods);
1486 const ObjCMethodDecl *Method);
1576 if (const ObjCMethodDecl *MD =
1577 dyn_cast_or_null<ObjCMethodDecl>(CGF.CurFuncDecl))
1606 const ObjCMethodDecl *Method) override;
1614 const ObjCMethodDecl *Method) override;
1627 const ObjCMethodDecl *Method) override
1732 const ObjCMethodDecl *Method) {
1753 for (ObjCMethodDecl::param_const_iterator i = Method->param_begin(),
1892 llvm::Value *CGObjCMac::GetSelector(CodeGenFunction &CGF, const ObjCMethodDecl
2061 const ObjCMethodDecl *Method) {
2120 const ObjCMethodDecl *Method) {
2145 const ObjCMethodDecl *Method,
2178 dyn_cast_or_null<ObjCMethodDecl>(CGF.CurCodeDecl)) {
3373 SmallVector<const ObjCMethodDecl *, 16> Methods[NumMethodLists];
3374 for (const auto *MD : OCD->methods()) {
3555 SmallVector<const ObjCMethodDecl *, 16> Methods[NumMethodLists];
3556 for (const auto *MD : ID->methods()) {
3564 if (ObjCMethodDecl *MD = PD->getGetterMethodDecl())
3567 if (ObjCMethodDecl *MD = PD->getSetterMethodDecl())
3622 ArrayRef<const ObjCMethodDecl*> Methods) {
3842 const ObjCMethodDecl *MD) {
3858 const ObjCMethodDecl *MD) {
3884 ArrayRef<const ObjCMethodDecl *> methods) {
3971 llvm::Function *CGObjCCommonMac::GenerateMethod(const ObjCMethodDecl *OMD,
5148 llvm::Function *CGObjCCommonMac::GetMethodDefinition(const ObjCMethodDecl *MD) {
5149 llvm::DenseMap<const ObjCMethodDecl*, llvm::Function*>::iterator
5514 llvm::Constant *CGObjCCommonMac::GetMethodVarType(const ObjCMethodDecl *D,
5543 void CGObjCCommonMac::GetNameForMethod(const ObjCMethodDecl *D,
6228 SmallVector<const ObjCMethodDecl*, 16> methods;
6230 for (const auto *MD : ID->class_methods())
6233 for (const auto *MD : ID->instance_methods())
6565 SmallVector<const ObjCMethodDecl *, 16> instanceMethods;
6566 SmallVector<const ObjCMethodDecl *, 8> classMethods;
6567 for (const auto *MD : OCD->methods()) {
6629 const ObjCMethodDecl *MD,
6658 ArrayRef<const ObjCMethodDecl *> methods) {
7121 const ObjCMethodDecl *method) {
7232 const ObjCMethodDecl *Method) {
7438 const ObjCMethodDecl *Method) {
tools/clang/lib/CodeGen/CGObjCRuntime.cpp 360 CGObjCRuntime::getMessageSendInfo(const ObjCMethodDecl *method,
tools/clang/lib/CodeGen/CGObjCRuntime.h 135 const ObjCMethodDecl *Method) = 0;
170 const ObjCMethodDecl *Method = nullptr) = 0;
188 const ObjCMethodDecl *Method = nullptr) = 0;
205 virtual llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD,
297 MessageSendInfo getMessageSendInfo(const ObjCMethodDecl *method,
tools/clang/lib/CodeGen/CodeGenABITypes.cpp 30 const ObjCMethodDecl *MD,
tools/clang/lib/CodeGen/CodeGenFunction.cpp 591 else if (auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(F))
714 if (const auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) {
714 if (const auto *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) {
tools/clang/lib/CodeGen/CodeGenFunction.h 435 AbstractCallee(const ObjCMethodDecl *OMD) : CalleeDecl(OMD) {}
443 return cast<ObjCMethodDecl>(CalleeDecl)->param_size();
448 return *(cast<ObjCMethodDecl>(CalleeDecl)->param_begin() + I);
1733 void GenerateObjCMethod(const ObjCMethodDecl *OMD);
1735 void StartObjCMethod(const ObjCMethodDecl *MD, const ObjCContainerDecl *CD);
1742 const ObjCMethodDecl *GetterMothodDecl,
1746 ObjCMethodDecl *MD, bool ctor);
3794 const ObjCMethodDecl *MethodWithObjects);
4219 static bool isObjCMethodWithTypeParams(const ObjCMethodDecl *method) {
4233 static bool isObjCMethodWithTypeParams(const T *) { return false; }
4247 void EmitCallArgs(CallArgList &Args, const T *CallArgTypeInfo,
tools/clang/lib/CodeGen/CodeGenModule.cpp 5155 ObjCMethodDecl *DTORMethod =
5156 ObjCMethodDecl::Create(getContext(), D->getLocation(), D->getLocation(),
5160 /*isDefined=*/false, ObjCMethodDecl::Required);
5175 ObjCMethodDecl *CTORMethod = ObjCMethodDecl::Create(getContext(),
5175 ObjCMethodDecl *CTORMethod = ObjCMethodDecl::Create(getContext(),
5185 ObjCMethodDecl::Required);
5212 for (auto *M : OID->methods())
5345 auto *OMD = cast<ObjCMethodDecl>(D);
5345 auto *OMD = cast<ObjCMethodDecl>(D);
tools/clang/lib/CodeGen/CodeGenPGO.cpp 408 void VisitObjCMethodDecl(const ObjCMethodDecl *D) {
807 else if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D))
807 else if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D))
874 else if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D))
874 else if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D))
tools/clang/lib/CodeGen/CodeGenTypes.h 224 const CGFunctionInfo &arrangeObjCMethodDeclaration(const ObjCMethodDecl *MD);
225 const CGFunctionInfo &arrangeObjCMessageSendSignature(const ObjCMethodDecl *MD,
tools/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp 115 bool VisitObjCMethodDecl(ObjCMethodDecl *D) {
tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp 164 if (const ObjCMethodDecl *MD = IFace->lookupInstanceMethod(subscriptSel)) {
294 const ObjCMethodDecl *Method = Msg->getMethodDecl();
tools/clang/lib/Frontend/ASTConsumers.cpp 184 if (isa<FunctionDecl>(D) || isa<ObjCMethodDecl>(D)) {
tools/clang/lib/Frontend/ASTUnit.cpp 956 if (isa<ObjCMethodDecl>(D))
1045 if (isa<ObjCMethodDecl>(D))
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp 93 ObjCMethodDecl *CurMethodDef;
187 llvm::DenseMap<ObjCMethodDecl*, std::string> MethodInternalNames;
325 ObjCMethodDecl *MDecl, std::string &ResultStr);
334 void RewriteMethodDeclaration(ObjCMethodDecl *Method);
421 ObjCMethodDecl *Method);
488 void InsertBlockLiteralsWithinMethod(ObjCMethodDecl *MD);
1103 void RewriteModernObjC::RewriteMethodDeclaration(ObjCMethodDecl *Method) {
1142 for (auto *I : CatDecl->instance_methods())
1144 for (auto *I : CatDecl->class_methods())
1159 for (auto *I : PDecl->instance_methods())
1161 for (auto *I : PDecl->class_methods())
1228 ObjCMethodDecl *OMD,
1348 for (auto *OMD : IMD ? IMD->instance_methods() : CID->instance_methods()) {
1359 for (auto *OMD : IMD ? IMD->class_methods() : CID->class_methods()) {
1397 for (auto *I : ClassDecl->instance_methods())
1399 for (auto *I : ClassDecl->class_methods())
2630 ObjCMethodDecl *BoxingMethod = Exp->getBoxingMethod();
2765 ObjCMethodDecl *ArrayMethod = Exp->getArrayWithObjectsMethod();
2907 ObjCMethodDecl *DictMethod = Exp->getDictWithObjectsMethod();
3057 if (isa<ObjCMethodDecl>(D))
3089 ObjCMethodDecl *Method) {
3213 if (ObjCMethodDecl *mDecl = Exp->getMethodDecl()) {
3489 if (ObjCMethodDecl *OMD = Exp->getMethodDecl()) {
3522 const ObjCMethodDecl *MD = Exp->getMethodDecl();
4439 ObjCMethodDecl *MD) {
4449 void RewriteModernObjC::InsertBlockLiteralsWithinMethod(ObjCMethodDecl *MD) {
5714 ObjCMethodDecl *MD = cast<ObjCMethodDecl>(D);
5714 ObjCMethodDecl *MD = cast<ObjCMethodDecl>(D);
6314 ArrayRef<ObjCMethodDecl *> Methods,
6327 ObjCMethodDecl *MD = Methods[i];
6405 ArrayRef<ObjCMethodDecl *>baseMethods,
6612 ArrayRef<ObjCMethodDecl *> InstanceMethods,
6613 ArrayRef<ObjCMethodDecl *> ClassMethods,
6692 ArrayRef<ObjCMethodDecl *> Methods,
6703 ObjCMethodDecl *MD = Methods[i];
6851 std::vector<ObjCMethodDecl *> InstanceMethods, ClassMethods;
6852 std::vector<ObjCMethodDecl *> OptInstanceMethods, OptClassMethods;
6853 for (auto *MD : PDecl->instance_methods()) {
6854 if (MD->getImplementationControl() == ObjCMethodDecl::Optional) {
6861 for (auto *MD : PDecl->class_methods()) {
6862 if (MD->getImplementationControl() == ObjCMethodDecl::Optional) {
6868 std::vector<ObjCMethodDecl *> AllMethods;
7022 SmallVector<ObjCMethodDecl *, 32> InstanceMethods(IDecl->instance_methods());
7034 if (ObjCMethodDecl *Getter = PD->getGetterMethodDecl())
7039 if (ObjCMethodDecl *Setter = PD->getSetterMethodDecl())
7048 SmallVector<ObjCMethodDecl *, 32> ClassMethods(IDecl->class_methods());
7272 SmallVector<ObjCMethodDecl *, 32> InstanceMethods(IDecl->instance_methods());
7284 if (ObjCMethodDecl *Getter = PD->getGetterMethodDecl())
7288 if (ObjCMethodDecl *Setter = PD->getSetterMethodDecl())
7296 SmallVector<ObjCMethodDecl *, 32> ClassMethods(IDecl->class_methods());
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp 90 ObjCMethodDecl *CurMethodDef;
114 llvm::DenseMap<ObjCMethodDecl*, std::string> MethodInternalNames;
273 ObjCMethodDecl *MDecl, std::string &ResultStr);
282 void RewriteMethodDeclaration(ObjCMethodDecl *Method);
358 ObjCMethodDecl *Method);
399 void InsertBlockLiteralsWithinMethod(ObjCMethodDecl *MD);
942 void RewriteObjC::RewriteMethodDeclaration(ObjCMethodDecl *Method) {
974 for (auto *I : CatDecl->instance_methods())
976 for (auto *I : CatDecl->class_methods())
991 for (auto *I : PDecl->instance_methods())
993 for (auto *I : PDecl->class_methods())
1060 ObjCMethodDecl *OMD,
1170 for (auto *OMD : IMD ? IMD->instance_methods() : CID->instance_methods()) {
1181 for (auto *OMD : IMD ? IMD->class_methods() : CID->class_methods()) {
1217 for (auto *I : ClassDecl->instance_methods())
1219 for (auto *I : ClassDecl->class_methods())
2588 ObjCMethodDecl *Method) {
2640 if (ObjCMethodDecl *mDecl = Exp->getMethodDecl()) {
2918 if (ObjCMethodDecl *OMD = Exp->getMethodDecl()) {
2951 const ObjCMethodDecl *MD = Exp->getMethodDecl();
3626 ObjCMethodDecl *MD) {
3636 void RewriteObjC::InsertBlockLiteralsWithinMethod(ObjCMethodDecl *MD) {
4813 ObjCMethodDecl *MD = cast<ObjCMethodDecl>(D);
4813 ObjCMethodDecl *MD = cast<ObjCMethodDecl>(D);
5346 SmallVector<ObjCMethodDecl *, 32> InstanceMethods(IDecl->instance_methods());
5358 if (ObjCMethodDecl *Getter = PD->getGetterMethodDecl())
5363 if (ObjCMethodDecl *Setter = PD->getSetterMethodDecl())
5624 SmallVector<ObjCMethodDecl *, 32> InstanceMethods(IDecl->instance_methods());
5636 if (ObjCMethodDecl *Getter = PD->getGetterMethodDecl())
5640 if (ObjCMethodDecl *Setter = PD->getSetterMethodDecl())
tools/clang/lib/Index/IndexBody.cpp 132 else if (auto *MD = dyn_cast<ObjCMethodDecl>(ParentDC))
228 if (ObjCMethodDecl *MD = E->getMethodDecl()) {
243 if (const ObjCMethodDecl *Getter = PRE->getImplicitPropertyGetter()) {
297 } else if (const ObjCMethodDecl *Getter = E->getImplicitPropertyGetter()) {
326 bool passObjCLiteralMethodCall(const ObjCMethodDecl *MD, const Expr *E) {
336 if (ObjCMethodDecl *MD = E->getBoxingMethod()) {
343 if (ObjCMethodDecl *MD = E->getDictWithObjectsMethod()) {
350 if (ObjCMethodDecl *MD = E->getArrayWithObjectsMethod()) {
tools/clang/lib/Index/IndexDecl.cpp 47 static bool hasUserDefined(const ObjCMethodDecl *D,
49 const ObjCMethodDecl *MD = Container->getMethod(D->getSelector(),
97 } else if (auto *MD = dyn_cast<ObjCMethodDecl>(DC)) {
125 bool handleObjCMethod(const ObjCMethodDecl *D,
128 SmallVector<const ObjCMethodDecl*, 4> Overriden;
490 bool VisitObjCMethodDecl(const ObjCMethodDecl *D) {
501 if (ObjCMethodDecl *MD = D->getGetterMethodDecl())
504 if (ObjCMethodDecl *MD = D->getSetterMethodDecl())
536 if (ObjCMethodDecl *MD = PD->getGetterMethodDecl()) {
541 if (ObjCMethodDecl *MD = PD->getSetterMethodDecl()) {
759 if (isa<ObjCMethodDecl>(D))
tools/clang/lib/Index/IndexSymbol.cpp 33 static bool isUnitTest(const ObjCMethodDecl *D) {
217 const ObjCMethodDecl *MD = cast<ObjCMethodDecl>(D);
217 const ObjCMethodDecl *MD = cast<ObjCMethodDecl>(D);
tools/clang/lib/Index/IndexingContext.cpp 189 if (isa<ObjCMethodDecl>(D))
250 if (auto MD = dyn_cast<ObjCMethodDecl>(D))
358 if (D->isImplicit() && !isa<ObjCMethodDecl>(D))
tools/clang/lib/Index/USRGeneration.cpp 92 void VisitObjCMethodDecl(const ObjCMethodDecl *MD);
384 void USRGenerator::VisitObjCMethodDecl(const ObjCMethodDecl *D) {
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp 653 else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
653 else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
705 } else if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D)) {
705 } else if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D)) {
1433 else if (isa<ObjCMethodDecl>(D))
1470 else if (isa<ObjCMethodDecl>(KeyProp))
tools/clang/lib/Sema/ScopeInfo.cpp 196 if (const ObjCMethodDecl *MD = MsgE->getMethodDecl()) {
tools/clang/lib/Sema/Sema.cpp 1276 ObjCMethodDecl *Sema::getCurMethodDecl() {
1280 return dyn_cast<ObjCMethodDecl>(DC);
1285 if (isa<ObjCMethodDecl>(DC) || isa<FunctionDecl>(DC))
tools/clang/lib/Sema/SemaAccess.cpp 1916 if (ObjCMethodDecl *MD = getCurMethodDecl())
tools/clang/lib/Sema/SemaCXXScopeSpec.cpp 1025 if (isa<ObjCContainerDecl>(CurContext) || isa<ObjCMethodDecl>(CurContext))
tools/clang/lib/Sema/SemaChecking.cpp 4238 if (FDecl && (isa<FunctionDecl>(FDecl) || isa<ObjCMethodDecl>(FDecl))) {
4245 parms = cast<ObjCMethodDecl>(FDecl)->parameters();
4332 : FDecl && isa<ObjCMethodDecl>(FDecl)
4333 ? cast<ObjCMethodDecl>(FDecl)->param_size()
4427 bool Sema::CheckObjCMethodCall(ObjCMethodDecl *Method, SourceLocation lbrac,
5563 } else if (auto *MD = dyn_cast<ObjCMethodDecl>(Caller)) {
5563 } else if (auto *MD = dyn_cast<ObjCMethodDecl>(Caller)) {
6995 if (const auto *MD = ME->getMethodDecl()) {
13852 const ObjCMethodDecl *MD = msg->getMethodDecl();
tools/clang/lib/Sema/SemaCodeComplete.cpp 211 if (ObjCMethodDecl *Method = SemaRef.getCurMethodDecl())
381 } else if (const auto *Method = dyn_cast<ObjCMethodDecl>(S.CurContext)) {
381 } else if (const auto *Method = dyn_cast<ObjCMethodDecl>(S.CurContext)) {
891 else if (const auto *Method = dyn_cast<ObjCMethodDecl>(ND))
891 else if (const auto *Method = dyn_cast<ObjCMethodDecl>(ND))
989 if (const auto *Method = dyn_cast<ObjCMethodDecl>(R.Declaration))
989 if (const auto *Method = dyn_cast<ObjCMethodDecl>(R.Declaration))
2300 else if (const auto *Method = dyn_cast<ObjCMethodDecl>(SemaRef.CurContext))
2300 else if (const auto *Method = dyn_cast<ObjCMethodDecl>(SemaRef.CurContext))
2534 if (ObjCMethodDecl *Method = SemaRef.getCurMethodDecl()) {
2605 else if (const auto *Method = dyn_cast<ObjCMethodDecl>(ND)) {
2605 else if (const auto *Method = dyn_cast<ObjCMethodDecl>(ND)) {
2748 bool ObjCMethodParam = isa<ObjCMethodDecl>(Param->getDeclContext());
2783 cast<ObjCMethodDecl>(Param->getDeclContext())->isPropertyAccessor()) {
2784 if (const auto *PD = cast<ObjCMethodDecl>(Param->getDeclContext())
3432 if (const auto *Method = dyn_cast<ObjCMethodDecl>(ND)) {
3432 if (const auto *Method = dyn_cast<ObjCMethodDecl>(ND)) {
3453 for (ObjCMethodDecl::param_const_iterator P = Method->param_begin(),
3538 const auto *M = dyn_cast<ObjCMethodDecl>(ND);
3538 const auto *M = dyn_cast<ObjCMethodDecl>(ND);
3550 const auto *M = dyn_cast_or_null<ObjCMethodDecl>(ND);
3550 const auto *M = dyn_cast_or_null<ObjCMethodDecl>(ND);
3744 return cast<ObjCMethodDecl>(D)->isInstanceMethod()
4598 for (const auto *M : Container->methods()) {
4608 for (auto *M : Container->methods()) {
6156 static bool isAcceptableObjCMethod(ObjCMethodDecl *Method,
6199 for (ObjCMethodDecl *M : Container->methods()) {
6425 ObjCMethodDecl *Method = Msg->getMethodDecl();
6495 static ObjCMethodDecl *
6499 ObjCMethodDecl *CurMethod = S.getCurMethodDecl();
6508 ObjCMethodDecl *SuperMethod = nullptr;
6532 for (ObjCMethodDecl::param_iterator CurP = CurMethod->param_begin(),
6569 ObjCMethodDecl::param_iterator CurP = CurMethod->param_begin();
6614 if (ObjCMethodDecl *Method = getCurMethodDecl())
6637 if (ObjCMethodDecl *CurMethod = getCurMethodDecl()) {
6707 isa<ObjCMethodDecl>(R.Declaration)) {
6709 const ObjCMethodDecl *Method = cast<ObjCMethodDecl>(R.Declaration);
6709 const ObjCMethodDecl *Method = cast<ObjCMethodDecl>(R.Declaration);
6752 if (ObjCMethodDecl *SuperMethod =
6759 if (ObjCMethodDecl *CurMethod = SemaRef.getCurMethodDecl())
6893 if (ObjCMethodDecl *SuperMethod =
6900 if (ObjCMethodDecl *CurMethod = getCurMethodDecl())
6911 if (ObjCMethodDecl *CurMethod = getCurMethodDecl()) {
7420 llvm::PointerIntPair<ObjCMethodDecl *, 1, bool>>
7499 for (auto *M : Container->methods()) {
8204 ObjCMethodDecl *Method = M->second.getPointer();
8231 for (ObjCMethodDecl::param_iterator P = Method->param_begin(),
tools/clang/lib/Sema/SemaCoroutine.cpp 196 S.Diag(Loc, isa<ObjCMethodDecl>(S.CurContext)
tools/clang/lib/Sema/SemaDecl.cpp 854 ObjCMethodDecl *CurMethod = getCurMethodDecl();
3794 void Sema::mergeObjCMethodDecls(ObjCMethodDecl *newMethod,
3795 ObjCMethodDecl *oldMethod) {
3806 ObjCMethodDecl::param_const_iterator oi = oldMethod->param_begin(),
3808 for (ObjCMethodDecl::param_iterator
13704 else if (ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(Decl))
13704 else if (ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(Decl))
13925 } else if (ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(dcl)) {
13925 } else if (ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(dcl)) {
13941 const ObjCMethodDecl *InitMethod = nullptr;
tools/clang/lib/Sema/SemaDeclAttr.cpp 59 return (D->getFunctionType() != nullptr) || isa<ObjCMethodDecl>(D);
82 return isa<ObjCMethodDecl>(D) || isa<BlockDecl>(D);
93 return cast<ObjCMethodDecl>(D)->param_size();
100 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D))
100 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D))
113 return cast<ObjCMethodDecl>(D)->parameters()[Idx]->getType();
125 return cast<ObjCMethodDecl>(D)->getReturnType();
131 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D))
131 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D))
141 return cast<ObjCMethodDecl>(D)->isVariadic();
1963 if (!isa<ObjCMethodDecl>(D)) {
2554 const auto *M = cast<ObjCMethodDecl>(D);
2554 const auto *M = cast<ObjCMethodDecl>(D);
2690 } else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
2690 } else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
2731 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D))
2731 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D))
2769 else if (isa<ObjCPropertyDecl>(D) || isa<ObjCMethodDecl>(D) ||
4274 if (!isa<ObjCMethodDecl>(D)) {
4969 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
4969 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
5058 if (isa<ObjCMethodDecl>(D))
5102 if (isa<ObjCMethodDecl>(D))
5103 resultType = cast<ObjCMethodDecl>(D)->getReturnType();
5111 << (isa<ObjCMethodDecl>(D) ? EP_ObjCMethod : EP_ObjCProperty)
5123 const auto *Method = cast<ObjCMethodDecl>(D);
5123 const auto *Method = cast<ObjCMethodDecl>(D);
7269 cast<ObjCMethodDecl>(D)->getMethodFamily() != OMF_init) {
7585 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
7585 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
7587 ObjCMethodDecl *Init = ClassReceiver->lookupInstanceMethod(
7624 if (const auto *MD = dyn_cast<ObjCMethodDecl>(OffendingDecl)) {
7624 if (const auto *MD = dyn_cast<ObjCMethodDecl>(OffendingDecl)) {
7643 if (const auto *MethodD = dyn_cast<ObjCMethodDecl>(Ctx))
7643 if (const auto *MethodD = dyn_cast<ObjCMethodDecl>(Ctx))
7692 if (isa<TagDecl>(Ctx) || isa<FunctionDecl>(Ctx) || isa<ObjCMethodDecl>(Ctx))
7770 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
7770 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
7985 if (const auto *MethodDecl = dyn_cast<ObjCMethodDecl>(ReferringDecl)) {
7985 if (const auto *MethodDecl = dyn_cast<ObjCMethodDecl>(ReferringDecl)) {
8252 if (ObjCMethodDecl *D = Msg->getMethodDecl()) {
8462 } else if (auto *MD = dyn_cast<ObjCMethodDecl>(D))
8462 } else if (auto *MD = dyn_cast<ObjCMethodDecl>(D))
8504 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
8504 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
tools/clang/lib/Sema/SemaDeclObjC.cpp 41 bool Sema::checkInitMethod(ObjCMethodDecl *method,
132 << cast<ObjCMethodDecl>(NewD->getDeclContext());
135 void Sema::CheckObjCMethodOverride(ObjCMethodDecl *NewMethod,
136 const ObjCMethodDecl *Overridden) {
202 ObjCMethodDecl::param_const_iterator oi = Overridden->param_begin(),
204 for (ObjCMethodDecl::param_iterator ni = NewMethod->param_begin(),
224 bool Sema::CheckARCMethodDecl(ObjCMethodDecl *method) {
291 if (isa<ObjCMethodDecl>(ND)) {
314 << (isa<ObjCMethodDecl>(ND)
318 if (isa<ObjCMethodDecl>(ND))
329 ObjCMethodDecl *MDecl = dyn_cast_or_null<ObjCMethodDecl>(D);
329 ObjCMethodDecl *MDecl = dyn_cast_or_null<ObjCMethodDecl>(D);
364 ObjCMethodDecl *MDecl = dyn_cast_or_null<ObjCMethodDecl>(D);
364 ObjCMethodDecl *MDecl = dyn_cast_or_null<ObjCMethodDecl>(D);
437 ObjCMethodDecl *IMD =
488 const ObjCMethodDecl *SuperMethod =
1749 llvm::DenseMap<Selector, const ObjCMethodDecl*> MethodMap;
1750 for (auto *MD : ID->methods())
1755 for (const auto *Method : CAT->methods()) {
1756 const ObjCMethodDecl *&PrevMethod = MethodMap[Method->getSelector()];
2206 ObjCMethodDecl *method,
2309 ObjCMethodDecl *MethodImpl,
2310 ObjCMethodDecl *MethodDecl,
2393 ObjCMethodDecl *MethodImpl,
2394 ObjCMethodDecl *MethodDecl,
2477 static bool checkMethodFamilyMismatch(Sema &S, ObjCMethodDecl *impl,
2478 ObjCMethodDecl *decl) {
2491 const ObjCMethodDecl *unmatched = impl;
2547 void Sema::WarnConflictingTypedMethods(ObjCMethodDecl *ImpMethodDecl,
2548 ObjCMethodDecl *MethodDecl,
2558 for (ObjCMethodDecl::param_iterator IM = ImpMethodDecl->param_begin(),
2573 void Sema::CheckConflictingOverridingMethod(ObjCMethodDecl *Method,
2574 ObjCMethodDecl *Overridden,
2581 for (ObjCMethodDecl::param_iterator IM = Method->param_begin(),
2598 void Sema::WarnExactTypedMethods(ObjCMethodDecl *ImpMethodDecl,
2599 ObjCMethodDecl *MethodDecl,
2604 if (MethodDecl->getImplementationControl() == ObjCMethodDecl::Optional)
2615 for (ObjCMethodDecl::param_iterator IM = ImpMethodDecl->param_begin(),
2741 for (auto *method : PDecl->instance_methods()) {
2742 if (method->getImplementationControl() != ObjCMethodDecl::Optional &&
2759 if (ObjCMethodDecl *MethodInClass =
2774 for (auto *method : PDecl->class_methods()) {
2775 if (method->getImplementationControl() != ObjCMethodDecl::Optional &&
2815 for (auto *I : CDecl->instance_methods()) {
2825 ObjCMethodDecl *ImpMethodDecl =
2842 for (auto *I : CDecl->class_methods()) {
2851 ObjCMethodDecl *ImpMethodDecl =
2923 for (const auto *I : CatIMPDecl->instance_methods()) {
2933 for (const auto *I : CatIMPDecl->class_methods()) {
2956 for (const auto *I : IMPDecl->instance_methods())
2987 for (const auto *I : IMPDecl->class_methods())
3225 bool Sema::MatchTwoMethodDeclarations(const ObjCMethodDecl *left,
3226 const ObjCMethodDecl *right,
3243 ObjCMethodDecl::param_const_iterator
3261 static bool isMethodContextSameForKindofLookup(ObjCMethodDecl *Method,
3262 ObjCMethodDecl *MethodInList) {
3282 ObjCMethodDecl *Method) {
3339 ObjCMethodDecl *PrevObjCMethod = List->getMethod();
3397 void Sema::AddMethodToGlobalPool(ObjCMethodDecl *Method, bool impl,
3422 static bool isAcceptableMethodMismatch(ObjCMethodDecl *chosen,
3423 ObjCMethodDecl *other) {
3437 static bool FilterMethodsByTypeBound(ObjCMethodDecl *Method,
3472 Selector Sel, SmallVectorImpl<ObjCMethodDecl *> &Methods,
3511 Selector Sel, ObjCMethodDecl *BestMethod, SourceRange R,
3512 bool receiverIdOrClass, SmallVectorImpl<ObjCMethodDecl *> &Methods) {
3514 SmallVector<ObjCMethodDecl *, 4> FilteredMethods;
3517 for (auto *M : Methods)
3535 ObjCMethodDecl *Sema::LookupMethodInGlobalPool(Selector Sel, SourceRange R,
3547 SmallVector<ObjCMethodDecl *, 4> Methods;
3555 void Sema::DiagnoseMultipleMethodInGlobalPool(SmallVectorImpl<ObjCMethodDecl*> &Methods,
3609 ObjCMethodDecl *Sema::LookupImplementedMethodInGlobalPool(Selector Sel) {
3633 SmallVectorImpl<const ObjCMethodDecl *> &BestMethod,
3634 StringRef Typo, const ObjCMethodDecl * Method) {
3664 const ObjCMethodDecl *
3668 SmallVector<const ObjCMethodDecl *, 8> Methods;
3714 SmallVector<const ObjCMethodDecl *, 8> SelectedMethods;
3907 llvm::DenseMap<Selector, const ObjCMethodDecl*> InsMap;
3908 llvm::DenseMap<Selector, const ObjCMethodDecl*> ClsMap;
3911 ObjCMethodDecl *Method =
3912 cast_or_null<ObjCMethodDecl>(allMethods[i]);
3917 const ObjCMethodDecl *&PrevMethod = InsMap[Method->getSelector()];
3941 const ObjCMethodDecl *&PrevMethod = ClsMap[Method->getSelector()];
4004 if (ObjCMethodDecl *GetterMethod
4008 if (ObjCMethodDecl *SetterMethod
4134 CheckRelatedResultTypeCompatibility(Sema &S, ObjCMethodDecl *Method,
4174 const ObjCMethodDecl *Method;
4175 llvm::SmallSetVector<ObjCMethodDecl*, 4> Overridden;
4179 OverrideSearch(Sema &S, const ObjCMethodDecl *method) : Method(method) {
4296 ObjCMethodDecl *meth = container->getMethod(Method->getSelector(),
4317 void Sema::CheckObjCMethodOverrides(ObjCMethodDecl *ObjCMethod,
4330 for (ObjCMethodDecl *overridden : overrides) {
4357 for (ObjCMethodDecl *SuperOverridden : overrides) {
4390 ObjCMethodDecl::param_iterator ParamI = ObjCMethod->param_begin(),
4392 ObjCMethodDecl::param_iterator PrevI = overridden->param_begin(),
4456 ObjCMethodDecl *method,
4457 ObjCMethodDecl *prevMethod) {
4499 const ObjCMethodDecl *Method) {
4574 ObjCMethodDecl *ObjCMethod = ObjCMethodDecl::Create(
4574 ObjCMethodDecl *ObjCMethod = ObjCMethodDecl::Create(
4579 MethodDeclKind == tok::objc_optional ? ObjCMethodDecl::Optional
4580 : ObjCMethodDecl::Required,
4659 const ObjCMethodDecl *PrevMethod = nullptr;
4672 if (auto *IMD = IDecl->lookupMethod(ObjCMethod->getSelector(),
4689 if (auto *IMD = P->lookupMethod(ObjCMethod->getSelector(),
4989 Sema::GetIvarBackingPropertyAccessor(const ObjCMethodDecl *Method,
5020 const ObjCMethodDecl *Method;
5025 UnusedBackingIvarChecker(Sema &S, const ObjCMethodDecl *Method,
5055 for (const auto *CurMethod : ImplD->instance_methods()) {
tools/clang/lib/Sema/SemaExpr.cpp 289 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D))
289 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D))
353 if (ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D)) {
353 if (ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D)) {
2494 ObjCMethodDecl *CurMethod = getCurMethodDecl();
2566 ObjCMethodDecl *CurMethod = getCurMethodDecl();
10133 ObjCMethodDecl *Method = S.LookupMethodInObjectType(IsEqualSel,
11743 ObjCMethodDecl *method = S.getCurMethodDecl();
17626 if (ObjCMethodDecl *Method = E->getMethodDecl()) {
tools/clang/lib/Sema/SemaExprCXX.cpp 6414 ObjCMethodDecl *D = nullptr;
tools/clang/lib/Sema/SemaExprMember.cpp 438 if (ObjCMethodDecl *OMD = PDecl->getInstanceMethod(Sel))
463 if (ObjCMethodDecl *OMD = I->getInstanceMethod(Sel)) {
1407 if (ObjCMethodDecl *MD = S.getCurMethodDecl())
1449 if (ObjCMethodDecl *MD = S.getCurMethodDecl()) {
1509 if (ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(PMDecl)) {
1509 if (ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(PMDecl)) {
1514 ObjCMethodDecl *SMD = nullptr;
1518 SMD = dyn_cast<ObjCMethodDecl>(SDecl);
1538 ObjCMethodDecl *MD = S.getCurMethodDecl();
1553 ObjCMethodDecl *Getter;
1566 ObjCMethodDecl *Setter = IFace->lookupClassMethod(SetterSel);
tools/clang/lib/Sema/SemaExprObjC.cpp 148 Selector Sel, const ObjCMethodDecl *Method) {
241 static ObjCMethodDecl *getNSNumberFactoryMethod(Sema &S, SourceLocation Loc,
282 ObjCMethodDecl *Method = S.NSNumberDecl->lookupClassMethod(Sel);
287 ObjCMethodDecl::Create(CX, SourceLocation(), SourceLocation(), Sel,
292 /*isDefined=*/false, ObjCMethodDecl::Required,
343 ObjCMethodDecl *Method = getNSNumberFactoryMethod(*this, AtLoc, NumberType,
504 ObjCMethodDecl *BoxingMethod = nullptr;
561 ObjCMethodDecl *M = ObjCMethodDecl::Create(
561 ObjCMethodDecl *M = ObjCMethodDecl::Create(
567 /*isDefined=*/false, ObjCMethodDecl::Required,
673 ObjCMethodDecl *M = ObjCMethodDecl::Create(
673 ObjCMethodDecl *M = ObjCMethodDecl::Create(
686 ObjCMethodDecl::Required,
767 ObjCMethodDecl *getterMethod,
768 ObjCMethodDecl *setterMethod) {
811 ObjCMethodDecl *Method = NSArrayDecl->lookupClassMethod(Sel);
814 Method = ObjCMethodDecl::Create(
820 ObjCMethodDecl::Required, false);
917 ObjCMethodDecl *Method = NSDictionaryDecl->lookupClassMethod(Sel);
919 Method = ObjCMethodDecl::Create(Context,
927 ObjCMethodDecl::Required,
1125 ObjCMethodDecl *Method,
1130 ObjCMethodDecl *MatchingMethodDecl = M->getMethod();
1153 ObjCMethodDecl *Method,
1183 ObjCMethodDecl *Method = LookupInstanceMethodInGlobalPool(Sel,
1189 if (const ObjCMethodDecl *OM = SelectorsForTypoCorrection(Sel)) {
1204 Method->getImplementationControl() != ObjCMethodDecl::Optional &&
1264 ObjCMethodDecl *Sema::tryCaptureObjCSelf(SourceLocation Loc) {
1270 ObjCMethodDecl *method = dyn_cast<ObjCMethodDecl>(DC);
1270 ObjCMethodDecl *method = dyn_cast<ObjCMethodDecl>(DC);
1305 ObjCMethodDecl *Method,
1344 if (ObjCMethodDecl *CurMethod = S.getCurMethodDecl())
1370 ObjCMethodDecl *Method,
1391 const ObjCMethodDecl *MD = cast<ObjCMethodDecl>(
1391 const ObjCMethodDecl *MD = cast<ObjCMethodDecl>(
1464 static const ObjCMethodDecl *
1465 findExplicitInstancetypeDeclarer(const ObjCMethodDecl *MD,
1482 const ObjCMethodDecl *ifaceMD =
1487 SmallVector<const ObjCMethodDecl *, 4> overrides;
1490 if (const ObjCMethodDecl *result =
1501 ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(CurContext);
1501 ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(CurContext);
1508 if (const ObjCMethodDecl *overridden =
1533 const ObjCMethodDecl *Method = MsgSend->getMethodDecl();
1555 Selector Sel, ArrayRef<SourceLocation> SelectorLocs, ObjCMethodDecl *Method,
1590 const ObjCMethodDecl *OMD = SelectorsForTypoCorrection(Sel, ReceiverType);
1761 ObjCMethodDecl *Method =
1762 dyn_cast_or_null<ObjCMethodDecl>(CurContext->getNonClosureAncestor());
1766 bool Sema::isSelfExpr(Expr *receiver, const ObjCMethodDecl *method) {
1777 ObjCMethodDecl *Sema::LookupMethodInObjectType(Selector sel, QualType type,
1782 if (ObjCMethodDecl *method = iface->lookupMethod(sel, isInstance))
1787 if (ObjCMethodDecl *method = iface->lookupPrivateMethod(sel, isInstance))
1793 if (ObjCMethodDecl *method = I->lookupMethod(sel, isInstance))
1801 ObjCMethodDecl *Sema::LookupMethodInQualifiedType(Selector Sel,
1805 ObjCMethodDecl *MD = nullptr;
1879 ObjCMethodDecl *Getter = IFace->lookupInstanceMethod(Sel);
1899 ObjCMethodDecl *Setter = IFace->lookupInstanceMethod(SetterSel);
2013 if (ObjCMethodDecl *CurMethod = tryCaptureObjCSelf(receiverNameLoc)) {
2060 ObjCMethodDecl *Getter = IFace->lookupClassMethod(GetterSel);
2074 ObjCMethodDecl *Setter = IFace->lookupClassMethod(SetterSel);
2106 ObjCInterfaceOrSuperCCC(ObjCMethodDecl *Method) {
2147 if (ObjCMethodDecl *Method = getCurMethodDecl()) {
2230 ObjCMethodDecl *Method = tryCaptureObjCSelf(SuperLoc);
2277 ObjCMethodDecl *Method,
2334 const ObjCMethodDecl *Method,
2345 ObjCMethodDecl *ImpliedMethod;
2384 ObjCMethodDecl *Method,
2451 ObjCMethodDecl *Method,
2552 else if (ObjCMethodDecl *CurMeth = getCurMethodDecl()) {
2616 ObjCMethodDecl *Method,
2624 static bool isMethodDeclaredInRootProtocol(Sema &S, const ObjCMethodDecl *M) {
2674 ObjCMethodDecl *Method,
2789 SmallVector<ObjCMethodDecl*, 4> Methods;
2798 if (ObjCMethodDecl *BestMethod =
2829 if (ObjCMethodDecl *CurMeth = getCurMethodDecl()) {
2849 SmallVector<ObjCMethodDecl*, 4> Methods;
2868 if (ObjCMethodDecl *BestMethod =
2937 SmallVector<ObjCMethodDecl*, 4> Methods;
2946 if (ObjCMethodDecl *BestMethod =
2997 const ObjCMethodDecl *InitMethod = nullptr;
3073 ObjCMethodDecl *SelMethod =
3146 if (const auto *CurMeth = getCurMethodDecl()) {
3164 ObjCMethodDecl *method = dyn_cast<ObjCMethodDecl>(CurContext);
3164 ObjCMethodDecl *method = dyn_cast<ObjCMethodDecl>(CurContext);
3496 ObjCMethodDecl *method;
3504 ACCResult checkCallToMethod(ObjCMethodDecl *method) {
3994 if (ObjCMethodDecl *Getter = PRE->getImplicitPropertyGetter())
4027 ObjCMethodDecl *&ClassMethod,
4028 ObjCMethodDecl *&InstanceMethod,
4109 ObjCMethodDecl *ClassMethod = nullptr;
4110 ObjCMethodDecl *InstanceMethod = nullptr;
tools/clang/lib/Sema/SemaInit.cpp 5945 isa<ObjCMethodDecl>(Entity.getDecl()->getDeclContext()))
5952 isa<ObjCMethodDecl>(Entity.getDecl()->getDeclContext()))
tools/clang/lib/Sema/SemaLookup.cpp 1342 if (ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(Ctx)) {
1342 if (ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(Ctx)) {
3974 if (ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(Ctx)) {
3974 if (ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(Ctx)) {
4631 if (ObjCMethodDecl *Method = SemaRef.getCurMethodDecl()) {
tools/clang/lib/Sema/SemaObjCProperty.cpp 1405 if (ObjCMethodDecl *getterMethod = property->getGetterMethodDecl()) {
1459 if (ObjCMethodDecl *setterMethod = property->getSetterMethodDecl()) {
1480 ObjCMethodDecl::param_iterator P = setterMethod->param_begin();
1655 ObjCMethodDecl *GetterMethod,
1783 ObjCMethodDecl *Method, ObjCIvarDecl *IV) {
1786 ObjCMethodDecl *IMD = IFace->lookupMethod(Method->getSelector(),
1942 llvm::SmallPtrSet<const ObjCMethodDecl *, 8> &SMap) {
2045 llvm::SmallPtrSet<const ObjCMethodDecl *, 8> InsMap;
2047 for (const auto *I : IMPDecl->methods())
2059 for (const auto *I : IMP->methods())
2095 auto *getterMethod = property->getGetterMethodDecl();
2096 auto *setterMethod = property->getSetterMethodDecl();
2126 ObjCMethodDecl *GetterMethod = nullptr;
2127 ObjCMethodDecl *SetterMethod = nullptr;
2215 ObjCMethodDecl *method = PD->getGetterMethodDecl();
2272 for (const auto *I : ImplD->instance_methods())
2276 SmallVector<const ObjCMethodDecl *, 8> DesignatedInits;
2278 for (SmallVector<const ObjCMethodDecl *, 8>::iterator
2280 const ObjCMethodDecl *MD = *I;
2285 if (auto *IMD = IFD->getInstanceMethod(MD->getSelector())) {
2290 if (auto *IMD = Ext->getInstanceMethod(MD->getSelector())) {
2307 static void AddPropertyAttrs(Sema &S, ObjCMethodDecl *PropertyMethod,
2323 ObjCMethodDecl *GetterMethod, *SetterMethod;
2399 GetterMethod = ObjCMethodDecl::Create(Context, Loc, Loc,
2407 ObjCMethodDecl::Optional :
2408 ObjCMethodDecl::Required);
2445 ObjCMethodDecl::Create(Context, Loc, Loc,
2454 ObjCMethodDecl::Optional :
2455 ObjCMethodDecl::Required);
tools/clang/lib/Sema/SemaOverload.cpp 6298 ObjCMethodDecl *
6300 SmallVectorImpl<ObjCMethodDecl *> &Methods) {
6306 ObjCMethodDecl *Method = Methods[b];
tools/clang/lib/Sema/SemaPseudoObject.cpp 275 ObjCMethodDecl *Getter;
277 ObjCMethodDecl *Setter;
315 ObjCMethodDecl *AtIndexGetter;
318 ObjCMethodDecl *AtIndexSetter;
555 static ObjCMethodDecl *LookupMethodInReceiverType(Sema &S, Selector sel,
566 ObjCMethodDecl *method =
567 cast<ObjCMethodDecl>(S.CurContext->getNonClosureAncestor());
617 ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter();
641 if (ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter()) {
662 if (ObjCMethodDecl *setter =
1136 ObjCMethodDecl *Getter = S.LookupMethodInObjectType(GetterSelector, ContainerT,
1193 AtIndexGetter = ObjCMethodDecl::Create(S.Context, SourceLocation(),
1201 ObjCMethodDecl::Required,
1301 AtIndexSetter = ObjCMethodDecl::Create(
1307 ObjCMethodDecl::Required, false);
tools/clang/lib/Sema/SemaStmt.cpp 329 const ObjCMethodDecl *MD = ME->getMethodDecl();
1875 ObjCMethodDecl *method = nullptr;
3602 } else if (ObjCMethodDecl *MD = getCurMethodDecl()) {
3658 if (isa<ObjCMethodDecl>(CurDecl))
3704 if (isa<ObjCMethodDecl>(CurDecl))
tools/clang/lib/Serialization/ASTReader.cpp 869 if (ObjCMethodDecl *Method = Reader.GetLocalDeclAs<ObjCMethodDecl>(
869 if (ObjCMethodDecl *Method = Reader.GetLocalDeclAs<ObjCMethodDecl>(
876 if (ObjCMethodDecl *Method = Reader.GetLocalDeclAs<ObjCMethodDecl>(
876 if (ObjCMethodDecl *Method = Reader.GetLocalDeclAs<ObjCMethodDecl>(
3964 static void moveMethodToBackOfGlobalList(Sema &S, ObjCMethodDecl *Method) {
3999 if (ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(D)) {
3999 if (ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(D)) {
8113 for (auto *I : ImplD->methods())
8520 SmallVector<ObjCMethodDecl *, 4> InstanceMethods;
8521 SmallVector<ObjCMethodDecl *, 4> FactoryMethods;
8563 ArrayRef<ObjCMethodDecl *> getInstanceMethods() const {
8568 ArrayRef<ObjCMethodDecl *> getFactoryMethods() const {
8586 static void addMethodsToPool(Sema &S, ArrayRef<ObjCMethodDecl *> Methods,
10050 ObjCMethodDecl *MD = cast<ObjCMethodDecl>(PB->first);
10050 ObjCMethodDecl *MD = cast<ObjCMethodDecl>(PB->first);
tools/clang/lib/Serialization/ASTReaderDecl.cpp 144 T *ReadDeclAs() {
145 return Record.readDeclAs<T>();
433 void VisitObjCMethodDecl(ObjCMethodDecl *D);
1009 void ASTDeclReader::VisitObjCMethodDecl(ObjCMethodDecl *MD) {
1030 ReadDeclAs<ObjCMethodDecl>());
1282 D->setGetterMethodDecl(ReadDeclAs<ObjCMethodDecl>());
1283 D->setSetterMethodDecl(ReadDeclAs<ObjCMethodDecl>());
3239 if (auto *MD = dyn_cast<ObjCMethodDecl>(D))
3239 if (auto *MD = dyn_cast<ObjCMethodDecl>(D))
3780 D = ObjCMethodDecl::CreateDeserialized(Context, ID);
tools/clang/lib/Serialization/ASTReaderInternals.h 202 SmallVector<ObjCMethodDecl *, 2> Instance;
203 SmallVector<ObjCMethodDecl *, 2> Factory;
tools/clang/lib/Serialization/ASTReaderStmt.cpp 95 T *ReadDeclAs() {
96 return Record.readDeclAs<T>();
1171 E->BoxingMethod = ReadDeclAs<ObjCMethodDecl>();
1182 E->ArrayWithObjectsMethod = ReadDeclAs<ObjCMethodDecl>();
1204 E->DictWithObjectsMethod = ReadDeclAs<ObjCMethodDecl>();
1245 auto *Getter = ReadDeclAs<ObjCMethodDecl>();
1245 auto *Getter = ReadDeclAs<ObjCMethodDecl>();
1246 auto *Setter = ReadDeclAs<ObjCMethodDecl>();
1246 auto *Setter = ReadDeclAs<ObjCMethodDecl>();
1271 E->GetAtIndexMethodDecl = ReadDeclAs<ObjCMethodDecl>();
1272 E->SetAtIndexMethodDecl = ReadDeclAs<ObjCMethodDecl>();
1305 E->setMethodDecl(ReadDeclAs<ObjCMethodDecl>());
tools/clang/lib/Serialization/ASTWriterDecl.cpp 133 void VisitObjCMethodDecl(ObjCMethodDecl *D);
661 void ASTDeclWriter::VisitObjCMethodDecl(ObjCMethodDecl *D) {
tools/clang/lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp 96 if (isa<FunctionDecl>(D) || isa<ObjCMethodDecl>(D)) {
tools/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp 670 const ObjCMethodDecl *MD = msg.getDecl();
1058 const ObjCMethodDecl *MD = Message->getDecl();
tools/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp 220 const ObjCMethodDecl *MD = nullptr;
223 for (const auto *I : D->instance_methods()) {
525 cast<ObjCMethodDecl>(LCtx->getDecl())->getClassInterface())
798 auto *MD = cast<ObjCMethodDecl>(LCtx->getDecl());
978 auto *MD = dyn_cast<ObjCMethodDecl>(LCtx->getDecl());
tools/clang/lib/StaticAnalyzer/Checkers/CheckObjCInstMethSignature.cpp 39 static void CompareReturnTypes(const ObjCMethodDecl *MethDerived,
40 const ObjCMethodDecl *MethAncestor,
91 typedef llvm::DenseMap<Selector,ObjCMethodDecl*> MapTy;
95 for (auto *M : ID->instance_methods()) {
103 for (const auto *M : C->instance_methods()) {
112 ObjCMethodDecl *MethDerived = MI->second;
tools/clang/lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp 42 static bool DefaultMethodFilter(const ObjCMethodDecl *M) {
61 const ObjCMethodDecl *MD;
68 MethodCrawler(const IvarToPropertyMapTy &InMap, const ObjCMethodDecl *InMD,
86 bool (*ShouldSkipMethod)(const ObjCMethodDecl *);
140 for (const auto *M : D->instance_methods()) {
187 ObjCMethodDecl *GetterMethod =
189 ObjCMethodDecl *SetterMethod =
210 static bool AttrFilter(const ObjCMethodDecl *M) {
tools/clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp 199 const ObjCMethodDecl *D = Msg->getDecl();
331 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(SFCtx->getDecl()))
331 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(SFCtx->getDecl()))
648 static const ObjCMethodDecl *
651 const ObjCMethodDecl *Method = nullptr;
684 const ObjCMethodDecl *Method, ArrayRef<QualType> TypeArgs,
721 const ObjCMethodDecl *Method =
856 const ObjCMethodDecl *Method =
tools/clang/lib/StaticAnalyzer/Checkers/GCDAntipatternChecker.cpp 81 if (const auto *OD = dyn_cast<ObjCMethodDecl>(D)) {
81 if (const auto *OD = dyn_cast<ObjCMethodDecl>(D)) {
tools/clang/lib/StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp 56 typedef llvm::SmallSetVector<const ObjCMethodDecl*, 2> MethodSet;
57 typedef llvm::DenseMap<const ObjCMethodDecl*,
72 void addInvalidationMethod(const ObjCMethodDecl *MD) {
80 bool hasMethod(const ObjCMethodDecl *MD) {
116 const ObjCMethodDecl *InvalidationMethod;
210 const ObjCMethodDecl *MethodD) const;
226 static bool isInvalidationMethod(const ObjCMethodDecl *M, bool LookForPartial) {
248 for (const auto *MDI : D->methods())
251 cast<ObjCMethodDecl>(MDI->getCanonicalDecl()));
402 const ObjCMethodDecl *SetterD = PD->getSetterMethodDecl();
408 const ObjCMethodDecl *GetterD = PD->getGetterMethodDecl();
429 const ObjCMethodDecl *InterfD = *I;
432 const ObjCMethodDecl *D = ImplD->getMethod(InterfD->getSelector(),
481 const ObjCMethodDecl *InterfD = *I;
484 const ObjCMethodDecl *D = ImplD->getMethod(InterfD->getSelector(),
554 const ObjCMethodDecl *MethodD) const {
606 const ObjCMethodDecl *MD = ME->getMethodDecl();
630 const ObjCMethodDecl *MD = PA->getImplicitPropertySetter();
692 const ObjCMethodDecl *MD = ME->getMethodDecl();
tools/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp 848 if (const ObjCMethodDecl *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) {
848 if (const ObjCMethodDecl *OMD = dyn_cast_or_null<ObjCMethodDecl>(D)) {
1040 const ObjCMethodDecl *MD;
1047 MethodCrawler(const ObjCMethodDecl *InMD, BugReporter &InBR,
1076 for (const ObjCMethodDecl *M : D->methods()) {
tools/clang/lib/StaticAnalyzer/Checkers/NSErrorChecker.cpp 40 : public Checker< check::ASTDecl<ObjCMethodDecl> > {
46 void checkASTDecl(const ObjCMethodDecl *D,
51 void NSErrorMethodChecker::checkASTDecl(const ObjCMethodDecl *D,
tools/clang/lib/StaticAnalyzer/Checkers/NoReturnFunctionChecker.cpp 90 if (const ObjCMethodDecl *MD = Msg.getDecl()) {
tools/clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp 376 auto *MD = dyn_cast<ObjCMethodDecl>(LocCtxt->getDecl());
419 else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D))
419 else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D))
545 if (auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
tools/clang/lib/StaticAnalyzer/Checkers/ObjCAutoreleaseWriteChecker.cpp 132 bool IsMethod = Match.getNodeAs<ObjCMethodDecl>(IsMethodBind) != nullptr;
tools/clang/lib/StaticAnalyzer/Checkers/ObjCMissingSuperCallChecker.cpp 181 for (auto *MD : D->instance_methods()) {
tools/clang/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp 52 static bool isInitializationMethod(const ObjCMethodDecl *MD);
389 const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(ND);
389 const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(ND);
424 static bool isInitializationMethod(const ObjCMethodDecl *MD) {
tools/clang/lib/StaticAnalyzer/Checkers/ObjCUnusedIVarsChecker.cpp 79 for (const auto *I : D->instance_methods())
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp 1053 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(CD)) {
1053 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(CD)) {
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h 387 auto Method = dyn_cast_or_null<ObjCMethodDecl>(SFC->getDecl());
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp 519 if (const ObjCMethodDecl *Method = BL->getBoxingMethod())
766 os << (isa<ObjCMethodDecl>(D) ? " is returned from a method "
776 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D)) {
776 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D)) {
tools/clang/lib/StaticAnalyzer/Checkers/TrustNonnullChecker.cpp 171 const ObjCMethodDecl *MD = MCall->getDecl();
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp 599 if (isa<ObjCMethodDecl>(D))
3050 } else if (const auto OD = dyn_cast<ObjCMethodDecl>(Signature)) {
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp 474 if (const auto *MD = dyn_cast_or_null<ObjCMethodDecl>(RD.getDecl()))
474 if (const auto *MD = dyn_cast_or_null<ObjCMethodDecl>(RD.getDecl()))
tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp 243 else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D))
243 else if (const auto *MD = dyn_cast<ObjCMethodDecl>(D))
466 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D))
466 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D))
496 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D))
496 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D))
938 const ObjCMethodDecl *D = getDecl();
1095 const ObjCMethodDecl *MD = getDecl();
1126 ObjCMethodDecl *D = nullptr;
1157 static const ObjCMethodDecl *findDefiningRedecl(const ObjCMethodDecl *MD) {
1157 static const ObjCMethodDecl *findDefiningRedecl(const ObjCMethodDecl *MD) {
1165 MD = cast<ObjCMethodDecl>(I);
1272 llvm::DenseMap<PrivateMethodKey, Optional<const ObjCMethodDecl *>>;
1275 Optional<const ObjCMethodDecl *> &Val = PMC[std::make_pair(IDecl, Sel)];
1284 if (const ObjCMethodDecl *CompileTimeMD = E->getMethodDecl())
1311 const ObjCMethodDecl *MD = Val.getValue();
1344 const auto *D = cast<ObjCMethodDecl>(CalleeCtx->getDecl());
1344 const auto *D = cast<ObjCMethodDecl>(CalleeCtx->getDecl());
tools/clang/lib/StaticAnalyzer/Core/CheckerContext.cpp 37 if (isa<ObjCMethodDecl>(D) || isa<CXXMethodDecl>(D))
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp 275 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
275 if (const auto *MD = dyn_cast<ObjCMethodDecl>(D)) {
tools/clang/lib/StaticAnalyzer/Core/MemRegion.cpp 899 if (isa<FunctionDecl>(STCD) || isa<ObjCMethodDecl>(STCD))
tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp 434 bool VisitObjCMethodDecl(ObjCMethodDecl *MD) {
493 if (isa<ObjCMethodDecl>(*I))
513 if (isa<ObjCMethodDecl>(D))
533 if (Visited.count(D) && isa<ObjCMethodDecl>(D)) {
534 const ObjCMethodDecl *ObjCM = cast<ObjCMethodDecl>(D);
534 const ObjCMethodDecl *ObjCM = cast<ObjCMethodDecl>(D);
587 Visited.insert(isa<ObjCMethodDecl>(Callee) ? Callee
706 } else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) {
706 } else if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) {
tools/clang/lib/StaticAnalyzer/Frontend/ModelInjector.cpp 35 Stmt *ModelInjector::getBody(const ObjCMethodDecl *D) {
tools/clang/lib/StaticAnalyzer/Frontend/ModelInjector.h 42 Stmt *getBody(const ObjCMethodDecl *D) override;
tools/clang/lib/Tooling/Refactoring/ASTSelection.cpp 416 return isa<FunctionDecl>(D) || isa<ObjCMethodDecl>(D);
tools/clang/tools/extra/clang-tidy/google/AvoidNSObjectNewCheck.cpp 42 for (const auto *MethodDecl : ClassDecl->instance_methods()) {
121 if (const auto *DeclExpr =
122 Result.Nodes.getNodeAs<ObjCMethodDecl>("new_override")) {
tools/clang/tools/extra/clang-tidy/objc/MissingHashCheck.cpp 30 for (const auto *I : Node.instance_methods()) {
tools/clang/tools/extra/clangd/ParsedAST.cpp 80 if (isa<ObjCMethodDecl>(D))
tools/clang/tools/libclang/CIndex.cpp 202 if (D->isImplicit() && !isa<ObjCMethodDecl>(D))
970 bool CursorVisitor::VisitObjCMethodDecl(ObjCMethodDecl *ND) {
1123 if (ObjCMethodDecl *MD = prevDecl->getGetterMethodDecl())
1128 if (ObjCMethodDecl *MD = prevDecl->getSetterMethodDecl())
4468 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(ND))
4468 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(ND))
4678 if (const ObjCMethodDecl *
4679 MD = dyn_cast_or_null<ObjCMethodDecl>(getCursorDecl(C))) {
5573 if (const ObjCMethodDecl *MD
5574 = dyn_cast_or_null<ObjCMethodDecl>(getCursorDecl(cursor))) {
5938 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D))
5938 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D))
6386 const ObjCMethodDecl *Method = cast<ObjCMethodDecl>(D);
6386 const ObjCMethodDecl *Method = cast<ObjCMethodDecl>(D);
6396 if (ObjCMethodDecl *Def = ClassImpl->getMethod(Method->getSelector(),
7108 if (const ObjCMethodDecl *Method
7109 = dyn_cast_or_null<ObjCMethodDecl>(getCursorDecl(cursor))) {
8153 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D))
8153 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D))
8178 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D))
8178 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D))
8179 return MD->getImplementationControl() == ObjCMethodDecl::Optional;
8191 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D))
8191 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D))
tools/clang/tools/libclang/CIndexHigh.cpp 27 if (!isa<ObjCMethodDecl>(D) && !isa<CXXMethodDecl>(D))
104 if (isa<ObjCMethodDecl>(D) || isa<CXXMethodDecl>(D))
tools/clang/tools/libclang/CXCursor.cpp 111 cast<ObjCMethodDecl>(D)->getSelectorLocs(SelLocs);
512 if (const ObjCMethodDecl *MD =
513 dyn_cast<ObjCMethodDecl>(IPD->getDeclContext())) {
1078 cast<ObjCMethodDecl>(getCursorDecl(cursor))
1098 unsigned(SelIdx) >= cast<ObjCMethodDecl>(getCursorDecl(cursor))
1176 if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D))
1176 if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D))
1198 if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D)) {
1198 if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D)) {
tools/clang/tools/libclang/CXIndexDataConsumer.cpp 93 bool VisitObjCMethodDecl(const ObjCMethodDecl *D) {
803 bool CXIndexDataConsumer::handleObjCMethod(const ObjCMethodDecl *D,
828 bool CXIndexDataConsumer::handleSynthesizedObjCMethod(const ObjCMethodDecl *D,
845 if (ObjCMethodDecl *Getter = D->getGetterMethodDecl()) {
851 if (ObjCMethodDecl *Setter = D->getSetterMethodDecl()) {
1223 if (isa<ObjCMethodDecl>(D))
tools/clang/tools/libclang/CXIndexDataConsumer.h 399 bool handleObjCMethod(const ObjCMethodDecl *D, SourceLocation Loc);
402 bool handleSynthesizedObjCMethod(const ObjCMethodDecl *D, SourceLocation Loc,
tools/clang/tools/libclang/CXType.cpp 722 if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D))
722 if (const ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(D))
1105 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) {
1105 if (const ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(D)) {
tools/clang/tools/libclang/CursorVisitor.h 221 bool VisitObjCMethodDecl(ObjCMethodDecl *ND);
tools/lldb/include/lldb/Symbol/ClangASTContext.h 314 GetAsDeclContext(clang::ObjCMethodDecl *objc_method_decl);
491 static clang::ObjCMethodDecl *
847 static clang::ObjCMethodDecl *AddMethodToObjCObjectType(
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.cpp 63 else if (ObjCMethodDecl *method_decl = dyn_cast<ObjCMethodDecl>(D))
63 else if (ObjCMethodDecl *method_decl = dyn_cast<ObjCMethodDecl>(D))
83 if (ObjCMethodDecl *method_decl = dyn_cast<ObjCMethodDecl>(D)) {
83 if (ObjCMethodDecl *method_decl = dyn_cast<ObjCMethodDecl>(D)) {
156 ObjCMethodDecl *MethodDecl) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.h 111 bool SynthesizeObjCMethodResult(clang::ObjCMethodDecl *MethodDecl);
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp 1106 if (ObjCMethodDecl *instance_method_decl =
1109 } else if (ObjCMethodDecl *class_method_decl =
1123 ObjCMethodDecl *result_method = dyn_cast<ObjCMethodDecl>(named_decl);
1123 ObjCMethodDecl *result_method = dyn_cast<ObjCMethodDecl>(named_decl);
1133 ObjCMethodDecl *copied_method_decl = dyn_cast<ObjCMethodDecl>(copied_decl);
1133 ObjCMethodDecl *copied_method_decl = dyn_cast<ObjCMethodDecl>(copied_decl);
1322 ObjCMethodDecl *method_decl =
1340 ObjCMethodDecl *copied_method_decl =
1341 dyn_cast<ObjCMethodDecl>(copied_decl);
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp 996 clang::ObjCMethodDecl *method_decl =
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp 182 } else if (clang::ObjCMethodDecl *method_decl =
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp 322 clang::ObjCMethodDecl *
336 const clang::ObjCMethodDecl::ImplementationControl impControl =
337 clang::ObjCMethodDecl::None;
377 clang::ObjCMethodDecl *ret = clang::ObjCMethodDecl::Create(
377 clang::ObjCMethodDecl *ret = clang::ObjCMethodDecl::Create(
466 clang::ObjCMethodDecl *method_decl =
484 clang::ObjCMethodDecl *method_decl = method_type.BuildMethod(
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp 851 clang::ObjCMethodDecl *objc_method_decl =
tools/lldb/source/Symbol/ClangASTContext.cpp 2510 ClangASTContext::GetAsDeclContext(clang::ObjCMethodDecl *objc_method_decl) {
4677 clang::ObjCMethodDecl *objc_method_decl =
4707 clang::ObjCMethodDecl *objc_method_decl =
8495 const clang::ObjCMethodDecl::ImplementationControl impControl =
8496 clang::ObjCMethodDecl::None;
8499 clang::ObjCMethodDecl *getter = clang::ObjCMethodDecl::Create(
8499 clang::ObjCMethodDecl *getter = clang::ObjCMethodDecl::Create(
8527 const clang::ObjCMethodDecl::ImplementationControl impControl =
8528 clang::ObjCMethodDecl::None;
8531 clang::ObjCMethodDecl *setter = clang::ObjCMethodDecl::Create(
8531 clang::ObjCMethodDecl *setter = clang::ObjCMethodDecl::Create(
8573 clang::ObjCMethodDecl *ClangASTContext::AddMethodToObjCObjectType(
8639 clang::ObjCMethodDecl::ImplementationControl imp_control =
8640 clang::ObjCMethodDecl::None;
8648 clang::ObjCMethodDecl *objc_method_decl = clang::ObjCMethodDecl::Create(
8648 clang::ObjCMethodDecl *objc_method_decl = clang::ObjCMethodDecl::Create(
9898 if (nd != nullptr && !llvm::isa<clang::ObjCMethodDecl>(nd)) {
9932 if (clang::ObjCMethodDecl *objc_method =
9933 llvm::dyn_cast<clang::ObjCMethodDecl>((clang::Decl *)opaque_decl))
9943 if (clang::ObjCMethodDecl *objc_method =
9944 llvm::dyn_cast<clang::ObjCMethodDecl>((clang::Decl *)opaque_decl))
9959 } else if (clang::ObjCMethodDecl *objc_method =
9960 llvm::dyn_cast<clang::ObjCMethodDecl>(
10185 if (ObjCMethodDecl *objc_method =
10186 llvm::dyn_cast<clang::ObjCMethodDecl>(decl_ctx)) {
10245 ObjCMethodDecl *
10248 return llvm::dyn_cast<clang::ObjCMethodDecl>(
usr/include/c++/7.4.0/type_traits 215 : public __is_void_helper<typename remove_cv<_Tp>::type>::type
581 : public __or_<is_lvalue_reference<_Tp>,
582 is_rvalue_reference<_Tp>>::type
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
602 is_void<_Tp>>>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
1554 { typedef _Tp type; };
1558 { typedef _Tp type; };
1563 { typedef _Tp type; };
1574 remove_const<typename remove_volatile<_Tp>::type>::type type;
1580 { typedef _Tp const type; };
1629 { typedef _Tp type; };
1983 { typedef _Up type; };
1999 { typedef typename remove_reference<_Tp>::type* type; };
2003 : public __add_pointer_helper<_Tp>