Home
last modified time | relevance | path

Searched refs:ClassDecl (Results 1 – 21 of 21) sorted by relevance

/external/clang/lib/Sema/
DSemaDeclCXX.cpp800 void Sema::ActOnBaseSpecifiers(Decl *ClassDecl, BaseTy **Bases, in ActOnBaseSpecifiers() argument
802 if (!ClassDecl || !Bases || !NumBases) in ActOnBaseSpecifiers()
805 AdjustDeclIfTemplate(ClassDecl); in ActOnBaseSpecifiers()
806 AttachBaseSpecifiers(cast<CXXRecordDecl>(ClassDecl), in ActOnBaseSpecifiers()
1282 CXXRecordDecl *ClassDecl, in FindBaseInitializer() argument
1289 = ClassDecl->bases_begin(); in FindBaseInitializer()
1290 Base != ClassDecl->bases_end(); ++Base) { in FindBaseInitializer()
1308 if (SemaRef.IsDerivedFrom(SemaRef.Context.getTypeDeclType(ClassDecl), in FindBaseInitializer()
1350 CXXRecordDecl *ClassDecl = Constructor->getParent(); in ActOnMemInitializer() local
1366 = ClassDecl->lookup(MemberOrBase); in ActOnMemInitializer()
[all …]
DSemaExprObjC.cpp466 ObjCInterfaceDecl *ClassDecl) { in LookupPrivateClassMethod() argument
469 while (ClassDecl && !Method) { in LookupPrivateClassMethod()
470 if (ObjCImplementationDecl *ImpDecl = ClassDecl->getImplementation()) in LookupPrivateClassMethod()
475 Method = ClassDecl->getCategoryClassMethod(Sel); in LookupPrivateClassMethod()
480 if (!Method && !ClassDecl->getSuperClass()) { in LookupPrivateClassMethod()
481 Method = ClassDecl->lookupInstanceMethod(Sel); in LookupPrivateClassMethod()
485 Method = LookupPrivateInstanceMethod(Sel, ClassDecl); in LookupPrivateClassMethod()
488 ClassDecl = ClassDecl->getSuperClass(); in LookupPrivateClassMethod()
494 ObjCInterfaceDecl *ClassDecl) { in LookupPrivateInstanceMethod() argument
496 while (ClassDecl && !Method) { in LookupPrivateInstanceMethod()
[all …]
DSemaDeclObjC.cpp1953 void Sema::CompareMethodParamsInBaseAndSuper(Decl *ClassDecl, in CompareMethodParamsInBaseAndSuper() argument
1956 ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(ClassDecl); in CompareMethodParamsInBaseAndSuper()
2013 Decl *ClassDecl, in ActOnAtEnd() argument
2020 if (!ClassDecl) in ActOnAtEnd()
2024 isa<ObjCInterfaceDecl>(ClassDecl) || isa<ObjCCategoryDecl>(ClassDecl) in ActOnAtEnd()
2025 || isa<ObjCProtocolDecl>(ClassDecl); in ActOnAtEnd()
2026 bool checkIdenticalMethods = isa<ObjCImplementationDecl>(ClassDecl); in ActOnAtEnd()
2031 SourceLocation L = ClassDecl->getLocation(); in ActOnAtEnd()
2063 CompareMethodParamsInBaseAndSuper(ClassDecl, Method, true); in ActOnAtEnd()
2082 CompareMethodParamsInBaseAndSuper(ClassDecl, Method, false); in ActOnAtEnd()
[all …]
DSemaObjCProperty.cpp104 ObjCContainerDecl *ClassDecl = in ActOnProperty() local
107 if (ObjCCategoryDecl *CDecl = dyn_cast<ObjCCategoryDecl>(ClassDecl)) in ActOnProperty()
123 ObjCPropertyDecl *Res = CreatePropertyDecl(S, ClassDecl, AtLoc, FD, in ActOnProperty()
1014 Decl *ClassDecl = ClassOrProtocol; in CompareProperties() local
1021 if (ObjCCategoryDecl *MDecl = dyn_cast<ObjCCategoryDecl>(ClassDecl)) { in CompareProperties()
1033 ObjCProtocolDecl *MD = cast<ObjCProtocolDecl>(ClassDecl); in CompareProperties()
1041 if (ObjCInterfaceDecl *MDecl = dyn_cast<ObjCInterfaceDecl>(ClassDecl)) { in CompareProperties()
1055 ObjCProtocolDecl *MD = cast<ObjCProtocolDecl>(ClassDecl); in CompareProperties()
DSemaCodeComplete.cpp3879 CXXRecordDecl *ClassDecl = Constructor->getParent(); in CodeCompleteConstructorInitializer() local
3880 for (CXXRecordDecl::base_class_iterator Base = ClassDecl->bases_begin(), in CodeCompleteConstructorInitializer()
3881 BaseEnd = ClassDecl->bases_end(); in CodeCompleteConstructorInitializer()
3905 for (CXXRecordDecl::base_class_iterator Base = ClassDecl->vbases_begin(), in CodeCompleteConstructorInitializer()
3906 BaseEnd = ClassDecl->vbases_end(); in CodeCompleteConstructorInitializer()
3930 for (CXXRecordDecl::field_iterator Field = ClassDecl->field_begin(), in CodeCompleteConstructorInitializer()
3931 FieldEnd = ClassDecl->field_end(); in CodeCompleteConstructorInitializer()
4428 void Sema::CodeCompleteObjCPropertyGetter(Scope *S, Decl *ClassDecl) { in CodeCompleteObjCPropertyGetter() argument
4432 ObjCInterfaceDecl *Class = dyn_cast_or_null<ObjCInterfaceDecl>(ClassDecl); in CodeCompleteObjCPropertyGetter()
4435 = dyn_cast_or_null<ObjCCategoryDecl>(ClassDecl)) in CodeCompleteObjCPropertyGetter()
[all …]
DSemaInit.cpp2998 if (CXXRecordDecl *ClassDecl = dyn_cast<CXXRecordDecl>(RT->getDecl())) { in TryValueInitialization() local
3006 if (ClassDecl->hasUserDeclaredConstructor()) in TryValueInitialization()
3013 if ((ClassDecl->getTagKind() == TTK_Class || in TryValueInitialization()
3014 ClassDecl->getTagKind() == TTK_Struct)) { in TryValueInitialization()
4277 CXXRecordDecl *ClassDecl = Constructor->getParent(); in Perform() local
4278 assert(ClassDecl && "No parent class for constructor."); in Perform()
4280 ClassDecl->hasTrivialDefaultConstructor() && in Perform()
DSemaOverload.cpp5115 CXXRecordDecl *ClassDecl = cast<CXXRecordDecl>(TyRec->getDecl()); in AddTypesConvertedFrom() local
5117 = ClassDecl->getVisibleConversionFunctions(); in AddTypesConvertedFrom()
5181 CXXRecordDecl *ClassDecl = cast<CXXRecordDecl>(TyRec->getDecl()); in CollectVRQualifiers() local
5182 if (!ClassDecl->hasDefinition()) in CollectVRQualifiers()
5186 ClassDecl->getVisibleConversionFunctions(); in CollectVRQualifiers()
/external/clang/lib/AST/
DDeclObjC.cpp239 ObjCInterfaceDecl* ClassDecl = this; in lookupInstanceVariable() local
240 while (ClassDecl != NULL) { in lookupInstanceVariable()
241 if (ObjCIvarDecl *I = ClassDecl->getIvarDecl(ID)) { in lookupInstanceVariable()
242 clsDeclared = ClassDecl; in lookupInstanceVariable()
245 for (const ObjCCategoryDecl *CDecl = ClassDecl->getFirstClassExtension(); in lookupInstanceVariable()
248 clsDeclared = ClassDecl; in lookupInstanceVariable()
253 ClassDecl = ClassDecl->getSuperClass(); in lookupInstanceVariable()
263 ObjCInterfaceDecl* ClassDecl = this; in lookupInheritedClass() local
264 while (ClassDecl != NULL) { in lookupInheritedClass()
265 if (ClassDecl->getIdentifier() == ICName) in lookupInheritedClass()
[all …]
DType.cpp838 if (CXXRecordDecl *ClassDecl = dyn_cast<CXXRecordDecl>(Record->getDecl())) in isAggregateType() local
839 return ClassDecl->isAggregate(); in isAggregateType()
945 if (CXXRecordDecl *ClassDecl in isPODType() local
947 return ClassDecl->isPOD(); in isPODType()
999 if (const CXXRecordDecl *ClassDecl = in isTrivialType() local
1003 if (!ClassDecl->hasTrivialDefaultConstructor()) return false; in isTrivialType()
1005 if (!ClassDecl->isTriviallyCopyable()) return false; in isTrivialType()
1055 if (const CXXRecordDecl *ClassDecl = in isTriviallyCopyableType() local
1057 if (!ClassDecl->isTriviallyCopyable()) return false; in isTriviallyCopyableType()
1102 if (const CXXRecordDecl *ClassDecl = in isLiteralType() local
[all …]
/external/clang/lib/CodeGen/
DCGClass.cpp54 CodeGenModule::GetNonVirtualBaseClassOffset(const CXXRecordDecl *ClassDecl, in GetNonVirtualBaseClassOffset() argument
60 ComputeNonVirtualBaseClassOffset(getContext(), ClassDecl, in GetNonVirtualBaseClassOffset()
370 const CXXRecordDecl *ClassDecl, in EmitBaseInitializer() argument
392 CGF.InitializeVTablePointers(ClassDecl); in EmitBaseInitializer()
397 CGF.GetAddressOfDirectBaseInCompleteClass(ThisPtr, ClassDecl, in EmitBaseInitializer()
526 const CXXRecordDecl *ClassDecl, in EmitMemberInitializer() argument
730 const CXXRecordDecl *ClassDecl = CD->getParent(); in EmitCtorPrologue() local
740 EmitBaseInitializer(*this, ClassDecl, Member, CtorType); in EmitCtorPrologue()
748 InitializeVTablePointers(ClassDecl); in EmitCtorPrologue()
751 EmitMemberInitializer(*this, ClassDecl, MemberInitializers[I], CD, Args); in EmitCtorPrologue()
[all …]
DCGExprCXX.cpp337 const CXXRecordDecl *ClassDecl = cast<CXXRecordDecl>(MD->getDeclContext()); in EmitCXXOperatorMemberCallExpr() local
338 if (ClassDecl->hasTrivialCopyAssignment()) { in EmitCXXOperatorMemberCallExpr()
339 assert(!ClassDecl->hasUserDeclaredCopyAssignment() && in EmitCXXOperatorMemberCallExpr()
DCGObjCGNU.cpp449 virtual void GenerateClass(const ObjCImplementationDecl *ClassDecl);
1828 ObjCInterfaceDecl *ClassDecl = in GenerateClass() local
1830 std::string ClassName = ClassDecl->getNameAsString(); in GenerateClass()
1864 CGM.getContext().ShallowCollectObjCIvars(ClassDecl, OIvars); in GenerateClass()
1933 const ObjCList<ObjCProtocolDecl> &Protos =ClassDecl->getReferencedProtocols(); in GenerateClass()
DCodeGenModule.h467 GetNonVirtualBaseClassOffset(const CXXRecordDecl *ClassDecl,
DCGExpr.cpp364 CXXRecordDecl *ClassDecl = cast<CXXRecordDecl>(RT->getDecl()); in EmitExprForReferenceBinding() local
365 if (!ClassDecl->hasTrivialDestructor()) in EmitExprForReferenceBinding()
366 ReferenceTemporaryDtor = ClassDecl->getDestructor(); in EmitExprForReferenceBinding()
DCodeGenFunction.h1351 void InitializeVTablePointers(const CXXRecordDecl *ClassDecl);
1670 const CXXRecordDecl *ClassDecl,
DCGObjCMac.cpp1017 virtual void GenerateClass(const ObjCImplementationDecl *ClassDecl);
1270 virtual void GenerateClass(const ObjCImplementationDecl *ClassDecl);
/external/clang/lib/Rewrite/
DRewriteObjC.cpp759 const ObjCInterfaceDecl *ClassDecl = OID->getContainingInterface(); in getIvarAccessString() local
762 S += ClassDecl->getIdentifier()->getName(); in getIvarAccessString()
889 void RewriteObjC::RewriteForwardClassDecl(ObjCClassDecl *ClassDecl) { in RewriteForwardClassDecl() argument
891 SourceLocation startLoc = ClassDecl->getLocation(); in RewriteForwardClassDecl()
900 for (ObjCClassDecl::iterator I = ClassDecl->begin(), E = ClassDecl->end(); in RewriteForwardClassDecl()
910 for (ObjCClassDecl::iterator I = ClassDecl->begin(), E = ClassDecl->end(); in RewriteForwardClassDecl()
1198 void RewriteObjC::RewriteInterfaceDecl(ObjCInterfaceDecl *ClassDecl) { in RewriteInterfaceDecl() argument
1200 if (!ObjCForwardDecls.count(ClassDecl)) { in RewriteInterfaceDecl()
1203 ResultStr += ClassDecl->getNameAsString(); in RewriteInterfaceDecl()
1206 ResultStr += ClassDecl->getNameAsString(); in RewriteInterfaceDecl()
[all …]
/external/clang/include/clang/Sema/
DSema.h2699 ComputeDefaultedDefaultCtorExceptionSpec(CXXRecordDecl *ClassDecl);
2705 ComputeDefaultedCopyCtorExceptionSpecAndConst(CXXRecordDecl *ClassDecl);
2711 ComputeDefaultedCopyAssignmentExceptionSpecAndConst(CXXRecordDecl *ClassDecl);
2716 ComputeDefaultedDtorExceptionSpec(CXXRecordDecl *ClassDecl);
2740 CXXRecordDecl *ClassDecl);
2753 CXXDestructorDecl *DeclareImplicitDestructor(CXXRecordDecl *ClassDecl);
2764 void AdjustDestructorExceptionSpec(CXXRecordDecl *ClassDecl,
2771 void DeclareInheritedConstructors(CXXRecordDecl *ClassDecl);
2782 CXXConstructorDecl *DeclareImplicitCopyConstructor(CXXRecordDecl *ClassDecl);
2798 CXXMethodDecl *DeclareImplicitCopyAssignment(CXXRecordDecl *ClassDecl);
[all …]
/external/clang/lib/Parse/
DParseDeclCXX.cpp1319 void Parser::ParseBaseClause(Decl *ClassDecl) { in ParseBaseClause() argument
1328 BaseResult Result = ParseBaseSpecifier(ClassDecl); in ParseBaseClause()
1347 Actions.ActOnBaseSpecifiers(ClassDecl, BaseInfo.data(), BaseInfo.size()); in ParseBaseClause()
1361 Parser::BaseResult Parser::ParseBaseSpecifier(Decl *ClassDecl) { in ParseBaseSpecifier() argument
1414 return Actions.ActOnBaseSpecifier(ClassDecl, Range, IsVirtual, Access, in ParseBaseSpecifier()
2466 Parser::PushParsingClass(Decl *ClassDecl, bool NonNestedClass) { in PushParsingClass() argument
2469 ClassStack.push(new ParsingClass(ClassDecl, NonNestedClass)); in PushParsingClass()
DParseObjc.cpp488 void Parser::ParseObjCPropertyAttribute(ObjCDeclSpec &DS, Decl *ClassDecl) { in ParseObjCPropertyAttribute() argument
539 Actions.CodeCompleteObjCPropertySetter(getCurScope(), ClassDecl); in ParseObjCPropertyAttribute()
541 Actions.CodeCompleteObjCPropertyGetter(getCurScope(), ClassDecl); in ParseObjCPropertyAttribute()
/external/clang/include/clang/Parse/
DParser.h1093 void ParseObjCPropertyAttribute(ObjCDeclSpec &DS, Decl *ClassDecl);
1806 void ParseBaseClause(Decl *ClassDecl);
1807 BaseResult ParseBaseSpecifier(Decl *ClassDecl);