/external/clang/lib/StaticAnalyzer/Checkers/ |
D | IvarInvalidationChecker.cpp | 56 typedef llvm::SmallSetVector<const ObjCMethodDecl*, 2> MethodSet; 57 typedef llvm::DenseMap<const ObjCMethodDecl*, 73 void addInvalidationMethod(const ObjCMethodDecl *MD) { in addInvalidationMethod() 81 bool hasMethod(const ObjCMethodDecl *MD) { in hasMethod() 117 const ObjCMethodDecl *InvalidationMethod; 209 const ObjCMethodDecl *MethodD) const; 225 static bool isInvalidationMethod(const ObjCMethodDecl *M, bool LookForPartial) { in isInvalidationMethod() 253 const ObjCMethodDecl *MDI = *I; in containsInvalidationMethod() 256 cast<ObjCMethodDecl>(MDI->getCanonicalDecl())); in containsInvalidationMethod() 417 const ObjCMethodDecl *SetterD = PD->getSetterMethodDecl(); in visit() [all …]
|
D | CheckObjCInstMethSignature.cpp | 40 static void CompareReturnTypes(const ObjCMethodDecl *MethDerived, in CompareReturnTypes() 41 const ObjCMethodDecl *MethAncestor, in CompareReturnTypes() 91 typedef llvm::DenseMap<Selector,ObjCMethodDecl*> MapTy; in CheckObjCInstMethSignature() 98 ObjCMethodDecl *M = *I; in CheckObjCInstMethSignature() 109 ObjCMethodDecl *M = *I; in CheckObjCInstMethSignature() 118 ObjCMethodDecl *MethDerived = MI->second; in CheckObjCInstMethSignature()
|
D | DirectIvarAssignment.cpp | 45 virtual bool operator()(ObjCMethodDecl *M) { in operator ()() 69 const ObjCMethodDecl *MD; 75 MethodCrawler(const IvarToPropertyMapTy &InMap, const ObjCMethodDecl *InMD, in MethodCrawler() 152 ObjCMethodDecl *M = *I; in checkASTDecl() 202 ObjCMethodDecl *GetterMethod = in VisitBinaryOperator() 204 ObjCMethodDecl *SetterMethod = in VisitBinaryOperator() 236 virtual bool operator()(ObjCMethodDecl *M) { in operator ()()
|
D | NSErrorChecker.cpp | 41 : public Checker< check::ASTDecl<ObjCMethodDecl> > { 47 void checkASTDecl(const ObjCMethodDecl *D, 52 void NSErrorMethodChecker::checkASTDecl(const ObjCMethodDecl *D, in checkASTDecl() 64 for (ObjCMethodDecl::param_const_iterator in checkASTDecl()
|
D | DynamicTypePropagation.cpp | 113 const ObjCMethodDecl *D = Msg->getDecl(); in checkPostCall() 218 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(SFCtx->getDecl())) in getObjectTypeForAllocAndNew()
|
D | ObjCSelfInitChecker.cpp | 53 static bool isInitializationMethod(const ObjCMethodDecl *MD); 393 const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(ND); in shouldRunOnFunctionOrMethod() 431 static bool isInitializationMethod(const ObjCMethodDecl *MD) { in isInitializationMethod()
|
/external/clang/lib/AST/ |
D | DeclObjC.cpp | 67 ObjCMethodDecl * 88 ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(*Meth); in getMethod() 379 ObjCMethodDecl *ObjCInterfaceDecl::lookupMethod(Selector Sel, in lookupMethod() 387 ObjCMethodDecl *MethodDecl = 0; in lookupMethod() 430 ObjCMethodDecl *ObjCInterfaceDecl::lookupPrivateMethod( in lookupPrivateMethod() 440 ObjCMethodDecl *Method = 0; in lookupPrivateMethod() 470 ObjCMethodDecl *ObjCMethodDecl::Create(ASTContext &C, in Create() 483 return new (C) ObjCMethodDecl(beginLoc, endLoc, in Create() 491 ObjCMethodDecl *ObjCMethodDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized() 492 void *Mem = AllocateDeserializedDecl(C, ID, sizeof(ObjCMethodDecl)); in CreateDeserialized() [all …]
|
D | Mangle.cpp | 114 if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(DC)) { in mangleBlock() 133 void MangleContext::mangleObjCMethodName(const ObjCMethodDecl *MD, in mangleObjCMethodName()
|
/external/clang/include/clang/AST/ |
D | ExprObjC.h | 94 ObjCMethodDecl *BoxingMethod; 97 ObjCBoxedExpr(Expr *E, QualType T, ObjCMethodDecl *method, in ObjCBoxedExpr() 109 ObjCMethodDecl *getBoxingMethod() const { in getBoxingMethod() 136 ObjCMethodDecl *ArrayWithObjectsMethod; 139 QualType T, ObjCMethodDecl * Method, 148 QualType T, ObjCMethodDecl * Method, 182 ObjCMethodDecl *getArrayWithObjectsMethod() const { in getArrayWithObjectsMethod() 257 ObjCMethodDecl *DictWithObjectsMethod; 261 QualType T, ObjCMethodDecl *method, 295 QualType T, ObjCMethodDecl *method, [all …]
|
D | DeclObjC.h | 28 class ObjCMethodDecl; variable 113 class ObjCMethodDecl : public NamedDecl, public DeclContext { 226 ObjCMethodDecl(SourceLocation beginLoc, SourceLocation endLoc, 254 virtual ObjCMethodDecl *getNextRedeclaration(); 257 static ObjCMethodDecl *Create(ASTContext &C, 272 static ObjCMethodDecl *CreateDeserialized(ASTContext &C, unsigned ID); 274 virtual ObjCMethodDecl *getCanonicalDecl(); 275 const ObjCMethodDecl *getCanonicalDecl() const { in getCanonicalDecl() 276 return const_cast<ObjCMethodDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl() 293 void setAsRedeclaration(const ObjCMethodDecl *PrevMethod); [all …]
|
D | Mangle.h | 32 class ObjCMethodDecl; variable 136 void mangleObjCMethodName(const ObjCMethodDecl *MD,
|
/external/clang/test/Misc/ |
D | ast-dump-decl.m | 31 // CHECK: ObjCMethodDecl{{.*}} - TestObjCMethodDecl: 'int' 40 // CHECK: ObjCMethodDecl{{.*}} - TestObjCMethodDecl: 'int' 52 // CHECK-NEXT: ObjCMethodDecl{{.*}} foo 61 // CHECK-NEXT: ObjCMethodDecl{{.*}} foo 73 // CHECK-NEXT: ObjCMethodDecl{{.*}} foo 82 // CHECK-NEXT: ObjCMethodDecl{{.*}} bar 91 // CHECK-NEXT: ObjCMethodDecl{{.*}} bar 106 // CHECK-NEXT: ObjCMethodDecl{{.*}} getterFoo 107 // CHECK-NEXT: ObjCMethodDecl{{.*}} setterFoo: 109 // CHECK-NEXT: ObjCMethodDecl{{.*}} bar [all …]
|
/external/clang/lib/Sema/ |
D | SemaDeclObjC.cpp | 41 bool Sema::checkInitMethod(ObjCMethodDecl *method, in checkInitMethod() 111 void Sema::CheckObjCMethodOverride(ObjCMethodDecl *NewMethod, in CheckObjCMethodOverride() 112 const ObjCMethodDecl *Overridden) { in CheckObjCMethodOverride() 175 ObjCMethodDecl::param_const_iterator oi = Overridden->param_begin(), in CheckObjCMethodOverride() 177 for (ObjCMethodDecl::param_iterator in CheckObjCMethodOverride() 195 static bool CheckARCMethodDecl(Sema &S, ObjCMethodDecl *method) { in CheckARCMethodDecl() 273 ObjCMethodDecl *MDecl = dyn_cast_or_null<ObjCMethodDecl>(D); in AddAnyMethodToGlobalPool() 307 ObjCMethodDecl *MDecl = dyn_cast_or_null<ObjCMethodDecl>(D); in ActOnStartOfObjCMethodDef() 327 for (ObjCMethodDecl::param_iterator PI = MDecl->param_begin(), in ActOnStartOfObjCMethodDef() 372 ObjCMethodDecl *IMD = in ActOnStartOfObjCMethodDef() [all …]
|
D | SemaExprObjC.cpp | 147 Selector Sel, const ObjCMethodDecl *Method) { in validateBoxingMethod() 169 static ObjCMethodDecl *getNSNumberFactoryMethod(Sema &S, SourceLocation Loc, in getNSNumberFactoryMethod() 224 ObjCMethodDecl *Method = S.NSNumberDecl->lookupClassMethod(Sel); in getNSNumberFactoryMethod() 228 Method = ObjCMethodDecl::Create(CX, SourceLocation(), SourceLocation(), Sel, in getNSNumberFactoryMethod() 235 ObjCMethodDecl::Required, in getNSNumberFactoryMethod() 285 ObjCMethodDecl *Method = getNSNumberFactoryMethod(*this, AtLoc, NumberType, in BuildObjCNumericLiteral() 426 ObjCMethodDecl *BoxingMethod = NULL; in BuildObjCBoxedExpr() 475 ObjCMethodDecl *M = in BuildObjCBoxedExpr() 476 ObjCMethodDecl::Create(Context, SourceLocation(), SourceLocation(), in BuildObjCBoxedExpr() 483 ObjCMethodDecl::Required, in BuildObjCBoxedExpr() [all …]
|
D | SemaPseudoObject.cpp | 222 ObjCMethodDecl *Getter; 224 ObjCMethodDecl *Setter; 260 ObjCMethodDecl *AtIndexGetter; 263 ObjCMethodDecl *AtIndexSetter; 451 static ObjCMethodDecl *LookupMethodInReceiverType(Sema &S, Selector sel, in LookupMethodInReceiverType() 462 ObjCMethodDecl *method = in LookupMethodInReceiverType() 463 cast<ObjCMethodDecl>(S.CurContext->getNonClosureAncestor()); in LookupMethodInReceiverType() 513 ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter(); in findGetter() 539 if (ObjCMethodDecl *setter = RefExpr->getImplicitPropertySetter()) { in findSetter() 560 if (ObjCMethodDecl *setter = in findSetter() [all …]
|
D | SemaObjCProperty.cpp | 1122 if (ObjCMethodDecl *getterMethod = property->getGetterMethodDecl()) { in ActOnPropertyImplDecl() 1159 if (ObjCMethodDecl *setterMethod = property->getSetterMethodDecl()) { in ActOnPropertyImplDecl() 1173 ObjCMethodDecl::param_iterator P = setterMethod->param_begin(); in ActOnPropertyImplDecl() 1336 ObjCMethodDecl *GetterMethod, in DiagnosePropertyAccessorMismatch() 1460 if (ObjCMethodDecl *OMD = dyn_cast<ObjCMethodDecl>(CurContext)) { in isPropertyReadonly() 1550 ObjCMethodDecl *Method, ObjCIvarDecl *IV) { in IvarBacksCurrentMethodAccessor() 1553 ObjCMethodDecl *IMD = IFace->lookupMethod(Method->getSelector(), in IvarBacksCurrentMethodAccessor() 1740 ObjCMethodDecl *GetterMethod = 0; in AtomicPropertySetterGetterRules() 1741 ObjCMethodDecl *SetterMethod = 0; in AtomicPropertySetterGetterRules() 1833 ObjCMethodDecl *method = PD->getGetterMethodDecl(); in DiagnoseOwningPropertyGetterSynthesis() [all …]
|
/external/clang/include/clang/Sema/ |
D | ObjCMethodList.h | 19 class ObjCMethodDecl; variable 23 ObjCMethodDecl *Method; 30 ObjCMethodList(ObjCMethodDecl *M, ObjCMethodList *C) { in ObjCMethodList()
|
/external/clang/tools/libclang/ |
D | IndexDecl.cpp | 44 void handleObjCMethod(const ObjCMethodDecl *D) { in handleObjCMethod() 50 for (ObjCMethodDecl::param_const_iterator I = D->param_begin(), in handleObjCMethod() 195 bool VisitObjCMethodDecl(const ObjCMethodDecl *D) { in VisitObjCMethodDecl() 206 if (ObjCMethodDecl *MD = D->getGetterMethodDecl()) in VisitObjCPropertyDecl() 209 if (ObjCMethodDecl *MD = D->getSetterMethodDecl()) in VisitObjCPropertyDecl() 231 if (ObjCMethodDecl *MD = PD->getGetterMethodDecl()) { in VisitObjCPropertyImplDecl() 236 if (ObjCMethodDecl *MD = PD->getSetterMethodDecl()) { in VisitObjCPropertyImplDecl() 338 if (isa<ObjCMethodDecl>(D)) in indexTopLevelDecl()
|
D | IndexBody.cpp | 74 if (ObjCMethodDecl *MD = E->getMethodDecl()) in VisitObjCMessageExpr() 99 if (ObjCMethodDecl *MD = E->getBoxingMethod()) in VisitObjCBoxedExpr() 106 if (ObjCMethodDecl *MD = E->getDictWithObjectsMethod()) in VisitObjCDictionaryLiteral() 113 if (ObjCMethodDecl *MD = E->getArrayWithObjectsMethod()) in VisitObjCArrayLiteral()
|
/external/clang/lib/CodeGen/ |
D | CGObjCRuntime.h | 48 class ObjCMethodDecl; variable 127 const ObjCMethodDecl *Method) = 0; 160 const ObjCMethodDecl *Method = 0) = 0; 178 const ObjCMethodDecl *Method = 0) = 0; 195 virtual llvm::Function *GenerateMethod(const ObjCMethodDecl *OMD, 282 MessageSendInfo getMessageSendInfo(const ObjCMethodDecl *method,
|
D | CGObjC.cpp | 34 const ObjCMethodDecl *Method, 63 const ObjCMethodDecl *BoxingMethod = E->getBoxingMethod(); in EmitObjCBoxedExpr() 89 const ObjCMethodDecl *MethodWithObjects) { in EmitObjCCollectionLiteral() 143 ObjCMethodDecl::param_const_iterator PI = MethodWithObjects->param_begin(); in EmitObjCCollectionLiteral() 206 const ObjCMethodDecl *Method, in AdjustRelatedResultType() 276 const ObjCMethodDecl *method = E->getMethodDecl(); in EmitObjCMessageExpr() 362 LocalDeclMap[cast<ObjCMethodDecl>(CurCodeDecl)->getSelfDecl()]; in EmitObjCMessageExpr() 371 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl); in EmitObjCMessageExpr() 392 LocalDeclMap[cast<ObjCMethodDecl>(CurCodeDecl)->getSelfDecl()]; in EmitObjCMessageExpr() 410 const ObjCMethodDecl *method = cast<ObjCMethodDecl>(CGF.CurCodeDecl); in Emit() [all …]
|
/external/clang/lib/StaticAnalyzer/Frontend/ |
D | AnalysisConsumer.cpp | 250 if (isa<FunctionDecl>(D) || isa<ObjCMethodDecl>(D)) { in DisplayFunction() 258 else if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D)) { in DisplayFunction() 338 bool VisitObjCMethodDecl(ObjCMethodDecl *MD) { in VisitObjCMethodDecl() 383 if (isa<ObjCMethodDecl>(*I)) in storeTopLevelDecls() 403 if (isa<ObjCMethodDecl>(D)) in shouldSkipFunction() 421 assert(isa<ObjCMethodDecl>(D) && in getInliningModeForFunction() 423 const ObjCMethodDecl *ObjCM = cast<ObjCMethodDecl>(D); in getInliningModeForFunction() 541 if (const ObjCMethodDecl *ID = dyn_cast<ObjCMethodDecl>(D)) { in getFunctionName()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | CallEvent.cpp | 278 else if (const ObjCMethodDecl* MD = dyn_cast<ObjCMethodDecl>(D)) in getDeclaredResultType() 624 const ObjCMethodDecl *D = getDecl(); in param_begin() 632 const ObjCMethodDecl *D = getDecl(); in param_end() 772 ObjCMethodDecl *D = 0; in canBeOverridenInSubclass() 856 Optional<const ObjCMethodDecl *> > in getRuntimeDefinition() 860 Optional<const ObjCMethodDecl *> &Val = PMC[std::make_pair(IDecl, Sel)]; in getRuntimeDefinition() 866 const ObjCMethodDecl *MD = Val.getValue(); in getRuntimeDefinition() 889 const ObjCMethodDecl *D = cast<ObjCMethodDecl>(CalleeCtx->getDecl()); in getInitialStackFrameContents()
|
/external/clang/lib/ARCMigrate/ |
D | TransEmptyStatementsAndDealloc.cpp | 211 ObjCMethodDecl *DeallocM = 0; in cleanupDeallocOrFinalize() 212 ObjCMethodDecl *FinalizeM = 0; in cleanupDeallocOrFinalize() 216 ObjCMethodDecl *MD = *MI; in cleanupDeallocOrFinalize()
|
/external/clang/lib/Serialization/ |
D | ASTReaderInternals.h | 155 SmallVector<ObjCMethodDecl *, 2> Instance; 156 SmallVector<ObjCMethodDecl *, 2> Factory;
|