/external/clang/lib/AST/ |
D | DeclObjC.cpp | 252 for (ObjCCategoryDecl *CDecl = getCategoryList(); CDecl; in getFirstClassExtension() local 253 CDecl = CDecl->getNextClassCategory()) in getFirstClassExtension() 254 if (CDecl->IsClassExtension()) in getFirstClassExtension() 255 return CDecl; in getFirstClassExtension() 261 for (const ObjCCategoryDecl *CDecl = getNextClassCategory(); CDecl; in getNextClassExtension() local 262 CDecl = CDecl->getNextClassCategory()) in getNextClassExtension() 263 if (CDecl->IsClassExtension()) in getNextClassExtension() 264 return CDecl; in getNextClassExtension() 283 for (const ObjCCategoryDecl *CDecl = ClassDecl->getFirstClassExtension(); in lookupInstanceVariable() local 284 CDecl; CDecl = CDecl->getNextClassExtension()) { in lookupInstanceVariable() [all …]
|
D | DeclPrinter.cpp | 481 if (CXXConstructorDecl *CDecl = dyn_cast<CXXConstructorDecl>(D)) { in VisitFunctionDecl() local 483 for (CXXConstructorDecl::init_const_iterator B = CDecl->init_begin(), in VisitFunctionDecl() 484 E = CDecl->init_end(); in VisitFunctionDecl()
|
D | ASTContext.cpp | 1566 void ASTContext::CollectInheritedProtocols(const Decl *CDecl, in CollectInheritedProtocols() argument 1568 if (const ObjCInterfaceDecl *OI = dyn_cast<ObjCInterfaceDecl>(CDecl)) { in CollectInheritedProtocols() 1591 } else if (const ObjCCategoryDecl *OC = dyn_cast<ObjCCategoryDecl>(CDecl)) { in CollectInheritedProtocols() 1600 } else if (const ObjCProtocolDecl *OP = dyn_cast<ObjCProtocolDecl>(CDecl)) { in CollectInheritedProtocols() 1615 for (const ObjCCategoryDecl *CDecl = OI->getFirstClassExtension(); CDecl; in CountNonClassIvars() local 1616 CDecl = CDecl->getNextClassExtension()) in CountNonClassIvars() 1617 count += CDecl->ivar_size(); in CountNonClassIvars()
|
/external/clang/lib/Sema/ |
D | SemaObjCProperty.cpp | 143 if (ObjCCategoryDecl *CDecl = dyn_cast<ObjCCategoryDecl>(ClassDecl)) in ActOnProperty() local 144 if (CDecl->IsClassExtension()) { in ActOnProperty() 266 ObjCCategoryDecl *CDecl = cast<ObjCCategoryDecl>(CurContext); in HandlePropertyInClassExtension() local 270 ObjCInterfaceDecl *CCPrimary = CDecl->getClassInterface(); in HandlePropertyInClassExtension() 307 Diag(CDecl->getLocation(), diag::err_continuation_class); in HandlePropertyInClassExtension() 328 /* lexicalDC = */ CDecl); in HandlePropertyInClassExtension() 332 L->AddedObjCPropertyInClassExtension(PrimaryPDecl, /*OrigProp=*/0, CDecl); in HandlePropertyInClassExtension() 388 /* lexicalDC = */ CDecl); in HandlePropertyInClassExtension() 415 ProcessPropertyDecl(PIDecl, CCPrimary, PDecl, CDecl); in HandlePropertyInClassExtension() 419 L->AddedObjCPropertyInClassExtension(PDecl, PIDecl, CDecl); in HandlePropertyInClassExtension() [all …]
|
D | SemaDeclObjC.cpp | 588 ObjCInterfaceDecl *CDecl = dyn_cast_or_null<ObjCInterfaceDecl>(CDeclU); in ActOnCompatibilityAlias() local 589 if (CDecl == 0) { in ActOnCompatibilityAlias() 598 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias() 807 ObjCCategoryDecl *CDecl; in ActOnStartCategoryInterface() local 819 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface() 821 CDecl->setInvalidDecl(); in ActOnStartCategoryInterface() 822 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface() 826 return ActOnObjCContainerStartDefinition(CDecl); in ActOnStartCategoryInterface() 850 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface() 853 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface() [all …]
|
D | SemaCodeComplete.cpp | 5201 ObjCInterfaceDecl *CDecl = 0; in CodeCompleteObjCSuperMessage() local 5204 CDecl = CurMethod->getClassInterface(); in CodeCompleteObjCSuperMessage() 5205 if (!CDecl) in CodeCompleteObjCSuperMessage() 5209 CDecl = CDecl->getSuperClass(); in CodeCompleteObjCSuperMessage() 5210 if (!CDecl) in CodeCompleteObjCSuperMessage() 5220 CDecl); in CodeCompleteObjCSuperMessage() 5230 if ((CDecl = dyn_cast_or_null<ObjCInterfaceDecl>(ND))) { in CodeCompleteObjCSuperMessage() 5235 CDecl = Iface->getInterface(); in CodeCompleteObjCSuperMessage() 5255 if (CDecl) in CodeCompleteObjCSuperMessage() 5256 Receiver = ParsedType::make(Context.getObjCInterfaceType(CDecl)); in CodeCompleteObjCSuperMessage() [all …]
|
D | SemaDecl.cpp | 4766 for (TypoCorrection::const_decl_iterator CDecl = candidate.begin(), in ValidateCandidate() local 4768 CDecl != CDeclEnd; ++CDecl) { in ValidateCandidate() 4769 FunctionDecl *FD = dyn_cast<FunctionDecl>(*CDecl); in ValidateCandidate() 4851 for (TypoCorrection::decl_iterator CDecl = Correction.begin(), in DiagnoseInvalidRedeclaration() local 4853 CDecl != CDeclEnd; ++CDecl) { in DiagnoseInvalidRedeclaration() 4854 FunctionDecl *FD = dyn_cast<FunctionDecl>(*CDecl); in DiagnoseInvalidRedeclaration() 9801 if (ObjCCategoryDecl *CDecl = in ActOnIvar() local 9803 if (LangOpts.ObjCRuntime.isFragile() || !CDecl->IsClassExtension()) { in ActOnIvar() 9804 Diag(Loc, diag::err_misplaced_ivar) << CDecl->IsClassExtension(); in ActOnIvar() 10233 } else if (ObjCCategoryDecl *CDecl = in ActOnFields() local [all …]
|
D | SemaLookup.cpp | 4089 void TypoCorrection::addCorrectionDecl(NamedDecl *CDecl) { in addCorrectionDecl() argument 4090 if (!CDecl) return; in addCorrectionDecl() 4095 CorrectionDecls.push_back(CDecl); in addCorrectionDecl() 4098 CorrectionName = CDecl->getDeclName(); in addCorrectionDecl()
|
/external/clang/lib/Rewrite/Frontend/ |
D | RewriteModernObjC.cpp | 348 void RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl, 359 void RewriteIvarOffsetSymbols(ObjCInterfaceDecl *CDecl, 413 void RewriteObjCCategoryImplDecl(ObjCCategoryImplDecl *CDecl, 809 ObjCContainerDecl *CDecl = in getIvarAccessString() local 812 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in getIvarAccessString() 813 CDecl = CatDecl->getClassInterface(); in getIvarAccessString() 814 std::string RecName = CDecl->getName(); in getIvarAccessString() 3834 void RewriteModernObjC::RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl, in RewriteObjCInternalStruct() argument 3836 assert(CDecl && "Class missing in SynthesizeObjCInternalStruct"); in RewriteObjCInternalStruct() 3837 assert(CDecl->getName() != "" && in RewriteObjCInternalStruct() [all …]
|
D | RewriteObjC.cpp | 327 void RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl, 338 virtual void RewriteObjCCategoryImplDecl(ObjCCategoryImplDecl *CDecl, 535 virtual void RewriteObjCCategoryImplDecl(ObjCCategoryImplDecl *CDecl, 3172 void RewriteObjC::RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl, in RewriteObjCInternalStruct() argument 3174 assert(CDecl && "Class missing in SynthesizeObjCInternalStruct"); in RewriteObjCInternalStruct() 3175 assert(CDecl->getName() != "" && in RewriteObjCInternalStruct() 3178 if (ObjCSynthesizedStructs.count(CDecl)) in RewriteObjCInternalStruct() 3180 ObjCInterfaceDecl *RCDecl = CDecl->getSuperClass(); in RewriteObjCInternalStruct() 3181 int NumIvars = CDecl->ivar_size(); in RewriteObjCInternalStruct() 3182 SourceLocation LocStart = CDecl->getLocStart(); in RewriteObjCInternalStruct() [all …]
|
/external/clang/include/clang/Sema/ |
D | TypoCorrection.h | 127 void setCorrectionDecl(NamedDecl *CDecl) { in setCorrectionDecl() argument 129 addCorrectionDecl(CDecl); in setCorrectionDecl() 134 void addCorrectionDecl(NamedDecl *CDecl);
|
D | Sema.h | 2260 ObjCContainerDecl *CDecl); 2277 ObjCContainerDecl *CDecl, 2288 void CollectImmediateProperties(ObjCContainerDecl *CDecl, 2295 ObjCPropertyDecl *LookupPropertyDecl(const ObjCContainerDecl *CDecl, 2317 ObjCContainerDecl *CDecl, 6078 void CompareProperties(Decl *CDecl, Decl *MergeProtocols); 6083 void MatchOneProtocolPropertiesInClass(Decl *CDecl,
|
/external/clang/lib/Parse/ |
D | ParseObjc.cpp | 367 Decl *CDecl) { in ParseObjCInterfaceDeclList() argument 465 Diag(CDecl->getLocStart(), diag::note_objc_container_start) in ParseObjCInterfaceDeclList() 514 Diag(CDecl->getLocStart(), diag::note_objc_container_start) in ParseObjCInterfaceDeclList()
|
/external/clang/tools/libclang/ |
D | CIndex.cpp | 1006 ObjCCategoryDecl *CDecl = dyn_cast<ObjCCategoryDecl>(PD->getDeclContext()); in VisitObjCPropertyDecl() local 1007 if (!CDecl || !CDecl->IsClassExtension()) in VisitObjCPropertyDecl() 1010 ObjCInterfaceDecl *ID = CDecl->getClassInterface(); in VisitObjCPropertyDecl() 1024 if (MD->isSynthesized() && MD->getLexicalDeclContext() == CDecl) in VisitObjCPropertyDecl() 1029 if (MD->isSynthesized() && MD->getLexicalDeclContext() == CDecl) in VisitObjCPropertyDecl()
|
/external/clang/include/clang/Basic/ |
D | Attr.td | 216 def CDecl : InheritableAttr {
|
/external/clang/include/clang/AST/ |
D | ASTContext.h | 1542 void CollectInheritedProtocols(const Decl *CDecl,
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 1128 Decl *CDecl);
|