/external/clang/lib/Sema/ |
D | SemaDeclObjC.cpp | 653 ObjCInterfaceDecl *CDecl = dyn_cast_or_null<ObjCInterfaceDecl>(CDeclU); in ActOnCompatibilityAlias() local 654 if (!CDecl) { in ActOnCompatibilityAlias() 663 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl); in ActOnCompatibilityAlias() 892 ObjCCategoryDecl *CDecl; in ActOnStartCategoryInterface() local 904 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface() 906 CDecl->setInvalidDecl(); in ActOnStartCategoryInterface() 907 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface() 911 return ActOnObjCContainerStartDefinition(CDecl); in ActOnStartCategoryInterface() 931 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, in ActOnStartCategoryInterface() 934 CurContext->addDecl(CDecl); in ActOnStartCategoryInterface() [all …]
|
D | SemaObjCProperty.cpp | 169 if (ObjCCategoryDecl *CDecl = dyn_cast<ObjCCategoryDecl>(ClassDecl)) { in ActOnProperty() local 170 if (CDecl->IsClassExtension()) { in ActOnProperty() 327 ObjCCategoryDecl *CDecl = cast<ObjCCategoryDecl>(CurContext); in HandlePropertyInClassExtension() local 331 ObjCInterfaceDecl *CCPrimary = CDecl->getClassInterface(); in HandlePropertyInClassExtension() 371 Diag(CDecl->getLocation(), diag::err_continuation_class); in HandlePropertyInClassExtension() 393 /* lexicalDC = */ CDecl); in HandlePropertyInClassExtension() 398 CDecl); in HandlePropertyInClassExtension() 487 /* lexicalDC = */ CDecl); in HandlePropertyInClassExtension() 515 ProcessPropertyDecl(PIDecl, CCPrimary, PDecl, CDecl); in HandlePropertyInClassExtension() 519 L->AddedObjCPropertyInClassExtension(PDecl, PIDecl, CDecl); in HandlePropertyInClassExtension() [all …]
|
D | SemaCodeComplete.cpp | 5393 ObjCInterfaceDecl *CDecl = nullptr; in CodeCompleteObjCSuperMessage() local 5396 CDecl = CurMethod->getClassInterface(); in CodeCompleteObjCSuperMessage() 5397 if (!CDecl) in CodeCompleteObjCSuperMessage() 5401 CDecl = CDecl->getSuperClass(); in CodeCompleteObjCSuperMessage() 5402 if (!CDecl) in CodeCompleteObjCSuperMessage() 5411 CDecl); in CodeCompleteObjCSuperMessage() 5421 if ((CDecl = dyn_cast_or_null<ObjCInterfaceDecl>(ND))) { in CodeCompleteObjCSuperMessage() 5426 CDecl = Iface->getInterface(); in CodeCompleteObjCSuperMessage() 5446 if (CDecl) in CodeCompleteObjCSuperMessage() 5447 Receiver = ParsedType::make(Context.getObjCInterfaceType(CDecl)); in CodeCompleteObjCSuperMessage() [all …]
|
D | SemaDecl.cpp | 6508 for (TypoCorrection::const_decl_iterator CDecl = candidate.begin(), in ValidateCandidate() local 6510 CDecl != CDeclEnd; ++CDecl) { in ValidateCandidate() 6511 FunctionDecl *FD = dyn_cast<FunctionDecl>(*CDecl); in ValidateCandidate() 6594 for (TypoCorrection::decl_iterator CDecl = Correction.begin(), in DiagnoseInvalidRedeclaration() local 6596 CDecl != CDeclEnd; ++CDecl) { in DiagnoseInvalidRedeclaration() 6597 FunctionDecl *FD = dyn_cast<FunctionDecl>(*CDecl); in DiagnoseInvalidRedeclaration() 12708 if (ObjCCategoryDecl *CDecl = in ActOnIvar() local 12710 if (LangOpts.ObjCRuntime.isFragile() || !CDecl->IsClassExtension()) { in ActOnIvar() 12711 Diag(Loc, diag::err_misplaced_ivar) << CDecl->IsClassExtension(); in ActOnIvar() 13173 } else if (ObjCCategoryDecl *CDecl = in ActOnFields() local [all …]
|
D | SemaLookup.cpp | 4392 void TypoCorrection::addCorrectionDecl(NamedDecl *CDecl) { in addCorrectionDecl() argument 4393 if (!CDecl) return; in addCorrectionDecl() 4398 CorrectionDecls.push_back(CDecl->getUnderlyingDecl()); in addCorrectionDecl() 4401 CorrectionName = CDecl->getDeclName(); in addCorrectionDecl()
|
/external/clang/lib/Frontend/Rewrite/ |
D | RewriteModernObjC.cpp | 396 void RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl, 407 void RewriteIvarOffsetSymbols(ObjCInterfaceDecl *CDecl, 460 void RewriteObjCCategoryImplDecl(ObjCCategoryImplDecl *CDecl, 867 ObjCContainerDecl *CDecl = in getIvarAccessString() local 870 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in getIvarAccessString() 871 CDecl = CatDecl->getClassInterface(); in getIvarAccessString() 872 std::string RecName = CDecl->getName(); in getIvarAccessString() 3846 const ObjCInterfaceDecl *CDecl = IV->getContainingInterface(); in ObjCIvarBitfieldGroupNo() local 3847 if (ObjCInterefaceHasBitfieldGroups.count(CDecl)) { in ObjCIvarBitfieldGroupNo() 3852 for (const ObjCIvarDecl *IVD = CDecl->all_declared_ivar_begin(); in ObjCIvarBitfieldGroupNo() [all …]
|
D | RewriteObjC.cpp | 321 void RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl, 332 virtual void RewriteObjCCategoryImplDecl(ObjCCategoryImplDecl *CDecl, 535 void RewriteObjCCategoryImplDecl(ObjCCategoryImplDecl *CDecl, 3104 void RewriteObjC::RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl, in RewriteObjCInternalStruct() argument 3106 assert(CDecl && "Class missing in SynthesizeObjCInternalStruct"); in RewriteObjCInternalStruct() 3107 assert(CDecl->getName() != "" && in RewriteObjCInternalStruct() 3110 if (ObjCSynthesizedStructs.count(CDecl)) in RewriteObjCInternalStruct() 3112 ObjCInterfaceDecl *RCDecl = CDecl->getSuperClass(); in RewriteObjCInternalStruct() 3113 int NumIvars = CDecl->ivar_size(); in RewriteObjCInternalStruct() 3114 SourceLocation LocStart = CDecl->getLocStart(); in RewriteObjCInternalStruct() [all …]
|
/external/clang/lib/ARCMigrate/ |
D | ObjCMT.cpp | 57 void migrateAllMethodInstaceType(ASTContext &Ctx, ObjCContainerDecl *CDecl); 58 void migrateMethodInstanceType(ASTContext &Ctx, ObjCContainerDecl *CDecl, 63 void migrateFactoryMethod(ASTContext &Ctx, ObjCContainerDecl *CDecl, 78 void migrateARCSafeAnnotation(ASTContext &Ctx, ObjCContainerDecl *CDecl); 1022 ObjCContainerDecl *CDecl, in migrateMethodInstanceType() argument 1030 migrateFactoryMethod(Ctx, CDecl, OM); in migrateMethodInstanceType() 1039 migrateFactoryMethod(Ctx, CDecl, OM, OIT_Singleton); in migrateMethodInstanceType() 1046 migrateFactoryMethod(Ctx, CDecl, OM, OIT_ReturnsSelf); in migrateMethodInstanceType() 1052 ObjCInterfaceDecl *IDecl = dyn_cast<ObjCInterfaceDecl>(CDecl); in migrateMethodInstanceType() 1054 if (ObjCCategoryDecl *CatDecl = dyn_cast<ObjCCategoryDecl>(CDecl)) in migrateMethodInstanceType() [all …]
|
/external/clang/include/clang/Sema/ |
D | TypoCorrection.h | 147 void setCorrectionDecl(NamedDecl *CDecl) { in setCorrectionDecl() argument 149 addCorrectionDecl(CDecl); in setCorrectionDecl() 160 void addCorrectionDecl(NamedDecl *CDecl);
|
D | Sema.h | 2798 ObjCContainerDecl *CDecl, 2843 ObjCContainerDecl *CDecl,
|
/external/clang/lib/AST/ |
D | DeclPrinter.cpp | 402 CXXConstructorDecl *CDecl = dyn_cast<CXXConstructorDecl>(D); in VisitFunctionDecl() local 418 if ((CDecl && CDecl->isExplicitSpecified()) || in VisitFunctionDecl() 506 if (CDecl) { in VisitFunctionDecl() 508 for (const auto *BMInitializer : CDecl->inits()) { in VisitFunctionDecl()
|
D | ASTContext.cpp | 1856 void ASTContext::CollectInheritedProtocols(const Decl *CDecl, in CollectInheritedProtocols() argument 1858 if (const ObjCInterfaceDecl *OI = dyn_cast<ObjCInterfaceDecl>(CDecl)) { in CollectInheritedProtocols() 1878 } else if (const ObjCCategoryDecl *OC = dyn_cast<ObjCCategoryDecl>(CDecl)) { in CollectInheritedProtocols() 1884 } else if (const ObjCProtocolDecl *OP = dyn_cast<ObjCProtocolDecl>(CDecl)) { in CollectInheritedProtocols()
|
/external/clang/lib/Parse/ |
D | ParseObjc.cpp | 323 Decl *CDecl) { in ParseObjCInterfaceDeclList() argument 421 Diag(CDecl->getLocStart(), diag::note_objc_container_start) in ParseObjCInterfaceDeclList() 502 Diag(CDecl->getLocStart(), diag::note_objc_container_start) in ParseObjCInterfaceDeclList()
|
/external/clang/tools/libclang/ |
D | CIndex.cpp | 1053 ObjCCategoryDecl *CDecl = dyn_cast<ObjCCategoryDecl>(PD->getDeclContext()); in VisitObjCPropertyDecl() local 1054 if (!CDecl || !CDecl->IsClassExtension()) in VisitObjCPropertyDecl() 1057 ObjCInterfaceDecl *ID = CDecl->getClassInterface(); in VisitObjCPropertyDecl() 1071 if (MD->isPropertyAccessor() && MD->getLexicalDeclContext() == CDecl) in VisitObjCPropertyDecl() 1076 if (MD->isPropertyAccessor() && MD->getLexicalDeclContext() == CDecl) in VisitObjCPropertyDecl()
|
/external/clang/include/clang/AST/ |
D | ASTContext.h | 1770 void CollectInheritedProtocols(const Decl *CDecl,
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 1247 Decl *CDecl);
|
/external/clang/include/clang/Basic/ |
D | Attr.td | 473 def CDecl : InheritableAttr {
|