Home
last modified time | relevance | path

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

12

/external/clang/lib/Sema/
DSemaCUDA.cpp225 bool Sema::inferCUDATargetForImplicitSpecialMember(CXXRecordDecl *ClassDecl, in inferCUDATargetForImplicitSpecialMember() argument
240 for (const auto &B : ClassDecl->bases()) { in inferCUDATargetForImplicitSpecialMember()
246 if (!ClassDecl->isAbstract()) { in inferCUDATargetForImplicitSpecialMember()
247 for (const auto &VB : ClassDecl->vbases()) { in inferCUDATargetForImplicitSpecialMember()
280 Diag(ClassDecl->getLocation(), in inferCUDATargetForImplicitSpecialMember()
291 for (const auto *F : ClassDecl->fields()) { in inferCUDATargetForImplicitSpecialMember()
325 Diag(ClassDecl->getLocation(), in inferCUDATargetForImplicitSpecialMember()
409 const CXXRecordDecl *ClassDecl = DD->getParent(); in isEmptyCudaDestructor() local
412 if (ClassDecl->isDynamicClass()) in isEmptyCudaDestructor()
417 if (!llvm::all_of(ClassDecl->bases(), [&](const CXXBaseSpecifier &BS) { in isEmptyCudaDestructor()
[all …]
DSemaDeclCXX.cpp1657 void Sema::ActOnBaseSpecifiers(Decl *ClassDecl, in ActOnBaseSpecifiers() argument
1659 if (!ClassDecl || Bases.empty()) in ActOnBaseSpecifiers()
1662 AdjustDeclIfTemplate(ClassDecl); in ActOnBaseSpecifiers()
1663 AttachBaseSpecifiers(cast<CXXRecordDecl>(ClassDecl), Bases); in ActOnBaseSpecifiers()
2747 CXXRecordDecl *ClassDecl, in FindBaseInitializer() argument
2753 for (const auto &Base : ClassDecl->bases()) { in FindBaseInitializer()
2771 if (SemaRef.IsDerivedFrom(ClassDecl->getLocation(), in FindBaseInitializer()
2772 SemaRef.Context.getTypeDeclType(ClassDecl), in FindBaseInitializer()
2828 explicit MemInitializerValidatorCCC(CXXRecordDecl *ClassDecl) in MemInitializerValidatorCCC() argument
2829 : ClassDecl(ClassDecl) {} in MemInitializerValidatorCCC()
[all …]
DSemaDeclObjC.cpp3706 Decl *ClassDecl = cast<Decl>(OCD); in ActOnAtEnd() local
3709 isa<ObjCInterfaceDecl>(ClassDecl) || isa<ObjCCategoryDecl>(ClassDecl) in ActOnAtEnd()
3710 || isa<ObjCProtocolDecl>(ClassDecl); in ActOnAtEnd()
3711 bool checkIdenticalMethods = isa<ObjCImplementationDecl>(ClassDecl); in ActOnAtEnd()
3771 if (isa<ObjCInterfaceDecl>(ClassDecl)) { in ActOnAtEnd()
3773 } else if (ObjCCategoryDecl *C = dyn_cast<ObjCCategoryDecl>(ClassDecl)) { in ActOnAtEnd()
3783 if (ObjCContainerDecl *CDecl = dyn_cast<ObjCContainerDecl>(ClassDecl)) { in ActOnAtEnd()
3792 if (ObjCImplementationDecl *IC=dyn_cast<ObjCImplementationDecl>(ClassDecl)) { in ActOnAtEnd()
3865 dyn_cast<ObjCCategoryImplDecl>(ClassDecl)) { in ActOnAtEnd()
3897 ActOnDocumentableDecl(ClassDecl); in ActOnAtEnd()
[all …]
DSemaObjCProperty.cpp198 ObjCContainerDecl *ClassDecl = cast<ObjCContainerDecl>(CurContext); in ActOnProperty() local
200 if (ObjCCategoryDecl *CDecl = dyn_cast<ObjCCategoryDecl>(ClassDecl)) { in ActOnProperty()
214 Res = CreatePropertyDecl(S, ClassDecl, AtLoc, LParenLoc, FD, in ActOnProperty()
224 (isa<ObjCInterfaceDecl>(ClassDecl) || in ActOnProperty()
225 isa<ObjCProtocolDecl>(ClassDecl))); in ActOnProperty()
232 if (ObjCInterfaceDecl *IFace = dyn_cast<ObjCInterfaceDecl>(ClassDecl)) { in ActOnProperty()
262 } else if (ObjCCategoryDecl *Cat = dyn_cast<ObjCCategoryDecl>(ClassDecl)) { in ActOnProperty()
270 ObjCProtocolDecl *Proto = cast<ObjCProtocolDecl>(ClassDecl); in ActOnProperty()
814 ObjCInterfaceDecl *ClassDecl, in DiagnosePropertyMismatchDeclInProtocols() argument
817 for (const auto *PI : ClassDecl->all_referenced_protocols()) { in DiagnosePropertyMismatchDeclInProtocols()
[all …]
DSemaExprObjC.cpp2684 if (ObjCInterfaceDecl *ClassDecl = CurMeth->getClassInterface()) { in BuildInstanceMessage() local
2686 Method = ClassDecl->lookupClassMethod(Sel); in BuildInstanceMessage()
2689 Method = ClassDecl->lookupPrivateClassMethod(Sel); in BuildInstanceMessage()
2727 ObjCInterfaceDecl *ClassDecl = nullptr; in BuildInstanceMessage() local
2743 ClassDecl = OCIType->getInterfaceDecl(); in BuildInstanceMessage()
2764 Method = ClassDecl->lookupInstanceMethod(Sel); in BuildInstanceMessage()
2773 Method = ClassDecl->lookupPrivateMethod(Sel); in BuildInstanceMessage()
DSemaPseudoObject.cpp239 if (const CXXRecordDecl *ClassDecl = ty->getAsCXXRecordDecl()) in CanCaptureValue() local
240 return ClassDecl->isTriviallyCopyable(); in CanCaptureValue()
DSemaCodeComplete.cpp4464 CXXRecordDecl *ClassDecl = Constructor->getParent(); in CodeCompleteConstructorInitializer() local
4465 for (const auto &Base : ClassDecl->bases()) { in CodeCompleteConstructorInitializer()
4489 for (const auto &Base : ClassDecl->vbases()) { in CodeCompleteConstructorInitializer()
4513 for (auto *Field : ClassDecl->fields()) { in CodeCompleteConstructorInitializer()
5771 if (ObjCInterfaceDecl *ClassDecl = CurMethod->getClassInterface()) in CodeCompleteObjCInstanceMessage() local
5772 AddObjCMethods(ClassDecl, false, MK_Any, SelIdents, in CodeCompleteObjCInstanceMessage()
/external/clang/lib/CodeGen/
DCGClass.cpp175 CodeGenModule::GetNonVirtualBaseClassOffset(const CXXRecordDecl *ClassDecl, in GetNonVirtualBaseClassOffset() argument
181 computeNonVirtualBaseClassOffset(ClassDecl, PathBegin, PathEnd); in GetNonVirtualBaseClassOffset()
521 const CXXRecordDecl *ClassDecl, in EmitBaseInitializer() argument
543 CGF.InitializeVTablePointers(ClassDecl); in EmitBaseInitializer()
548 CGF.GetAddressOfDirectBaseInCompleteClass(ThisPtr, ClassDecl, in EmitBaseInitializer()
696 const CXXRecordDecl *ClassDecl, in EmitMemberInitializer() argument
710 QualType RecordTy = CGF.getContext().getTypeDeclType(ClassDecl); in EmitMemberInitializer()
856 const CXXRecordDecl *ClassDecl = in EmitAsanPrologueOrEpilogue() local
859 if (!ClassDecl->mayInsertExtraPadding()) return; in EmitAsanPrologueOrEpilogue()
867 const ASTRecordLayout &Info = Context.getASTRecordLayout(ClassDecl); in EmitAsanPrologueOrEpilogue()
[all …]
DItaniumCXXABI.cpp202 const CXXRecordDecl *ClassDecl,
1007 auto *ClassDecl = in emitVirtualObjectDelete() local
1010 CGF.GetVTablePtr(Ptr, CGF.IntPtrTy->getPointerTo(), ClassDecl); in emitVirtualObjectDelete()
1209 auto *ClassDecl = in EmitTypeid() local
1212 CGF.GetVTablePtr(ThisPtr, StdTypeInfoPtrTy->getPointerTo(), ClassDecl); in EmitTypeid()
1275 auto *ClassDecl = in EmitDynamicCastToVoid() local
1279 ClassDecl); in EmitDynamicCastToVoid()
1306 const CXXRecordDecl *ClassDecl, in GetVirtualBaseClassOffset() argument
1308 llvm::Value *VTablePtr = CGF.GetVTablePtr(This, CGM.Int8PtrTy, ClassDecl); in GetVirtualBaseClassOffset()
1310 CGM.getItaniumVTableContext().getVirtualBaseOffsetOffset(ClassDecl, in GetVirtualBaseClassOffset()
DCGObjCGNU.cpp537 void GenerateClass(const ObjCImplementationDecl *ClassDecl) override;
2160 ObjCInterfaceDecl *ClassDecl = in RegisterAlias() local
2162 ClassAliases.emplace_back(ClassDecl->getNameAsString(), in RegisterAlias()
2179 ObjCInterfaceDecl *ClassDecl = in GenerateClass() local
2181 std::string ClassName = ClassDecl->getNameAsString(); in GenerateClass()
2215 for (const ObjCIvarDecl *IVD = ClassDecl->all_declared_ivar_begin(); IVD; in GenerateClass()
2293 for (const auto *I : ClassDecl->protocols()) in GenerateClass()
2328 for (const ObjCIvarDecl *IVD = ClassDecl->all_declared_ivar_begin(); IVD; in GenerateClass()
DCGCXXABI.h278 const CXXRecordDecl *ClassDecl,
DCGVTables.cpp105 auto ClassDecl = ResultType->getPointeeType()->getAsCXXRecordDecl(); in PerformReturnAdjustment() local
106 auto ClassAlign = CGF.CGM.getClassPointerAlignment(ClassDecl); in PerformReturnAdjustment()
DCodeGenModule.h756 GetNonVirtualBaseClassOffset(const CXXRecordDecl *ClassDecl,
DCGObjC.cpp73 const ObjCInterfaceDecl *ClassDecl = BoxingMethod->getClassInterface(); in EmitObjCBoxedExpr() local
74 llvm::Value *Receiver = Runtime.GetClass(*this, ClassDecl); in EmitObjCBoxedExpr()
108 Args, ClassDecl, BoxingMethod); in EmitObjCBoxedExpr()
/external/clang/lib/AST/
DDeclObjC.cpp225 if (const auto *ClassDecl = dyn_cast<ObjCInterfaceDecl>(this)) { in FindPropertyDeclaration() local
226 for (const auto *Ext : ClassDecl->visible_extensions()) { in FindPropertyDeclaration()
600 ObjCInterfaceDecl* ClassDecl = this; in lookupInstanceVariable() local
601 while (ClassDecl != nullptr) { in lookupInstanceVariable()
602 if (ObjCIvarDecl *I = ClassDecl->getIvarDecl(ID)) { in lookupInstanceVariable()
603 clsDeclared = ClassDecl; in lookupInstanceVariable()
607 for (const auto *Ext : ClassDecl->visible_extensions()) { in lookupInstanceVariable()
609 clsDeclared = ClassDecl; in lookupInstanceVariable()
614 ClassDecl = ClassDecl->getSuperClass(); in lookupInstanceVariable()
631 ObjCInterfaceDecl* ClassDecl = this; in lookupInheritedClass() local
[all …]
DType.cpp1870 if (CXXRecordDecl *ClassDecl = dyn_cast<CXXRecordDecl>(Record->getDecl())) in isAggregateType() local
1871 return ClassDecl->isAggregate(); in isAggregateType()
2026 if (CXXRecordDecl *ClassDecl in isCXX98PODType() local
2028 return ClassDecl->isPOD(); in isCXX98PODType()
2080 if (const CXXRecordDecl *ClassDecl = in isTrivialType() local
2086 return ClassDecl->hasDefaultConstructor() && in isTrivialType()
2087 !ClassDecl->hasNonTrivialDefaultConstructor() && in isTrivialType()
2088 ClassDecl->isTriviallyCopyable(); in isTrivialType()
2141 if (const CXXRecordDecl *ClassDecl = in isTriviallyCopyableType() local
2143 if (!ClassDecl->isTriviallyCopyable()) return false; in isTriviallyCopyableType()
[all …]
/external/clang/test/Parser/
Dskip-function-bodies.mm30 // CHECK: skip-function-bodies.mm:3:7: ClassDecl=A:3:7 (Definition) Extent=[3:1 - 14:2]
31 // CHECK: skip-function-bodies.mm:4:9: ClassDecl=B:4:9 (Definition) Extent=[4:3 - 4:13]
45 // CHECK-NOT: skip-function-bodies.mm:27:9: ClassDecl=K:27:9 (Definition) Extent=[27:3 - 27:13]
/external/clang/lib/ASTMatchers/
DASTMatchFinder.cpp796 CXXRecordDecl *ClassDecl = getAsCXXRecordDeclOrPrimaryTemplate(TypeNode); in classIsDerivedFrom() local
797 if (!ClassDecl) in classIsDerivedFrom()
799 if (ClassDecl == Declaration) { in classIsDerivedFrom()
805 if (Base.matches(*ClassDecl, this, &Result)) { in classIsDerivedFrom()
809 if (classIsDerivedFrom(ClassDecl, Base, Builder)) in classIsDerivedFrom()
/external/clang/lib/Frontend/Rewrite/
DRewriteModernObjC.cpp316 void RewriteForwardClassEpilogue(ObjCInterfaceDecl *ClassDecl,
837 const ObjCInterfaceDecl *ClassDecl = D->getContainingInterface(); in getIvarAccessString() local
844 WriteInternalIvarName(ClassDecl, D, IvarOffsetName); in getIvarAccessString()
901 ReferencedIvars[const_cast<ObjCInterfaceDecl *>(ClassDecl)].insert(D); in getIvarAccessString()
1058 void RewriteModernObjC::RewriteForwardClassEpilogue(ObjCInterfaceDecl *ClassDecl, in RewriteForwardClassEpilogue() argument
1060 SourceLocation startLoc = ClassDecl->getLocStart(); in RewriteForwardClassEpilogue()
1374 void RewriteModernObjC::RewriteInterfaceDecl(ObjCInterfaceDecl *ClassDecl) { in RewriteInterfaceDecl() argument
1376 if (ObjCSynthesizedStructs.count(ClassDecl)) in RewriteInterfaceDecl()
1379 ObjCInterfaceDecl *SuperClass = ClassDecl->getSuperClass(); in RewriteInterfaceDecl()
1385 if (!ObjCWrittenInterfaces.count(ClassDecl->getCanonicalDecl())) { in RewriteInterfaceDecl()
[all …]
DRewriteObjC.cpp264 void RewriteForwardClassEpilogue(ObjCInterfaceDecl *ClassDecl,
757 const ObjCInterfaceDecl *ClassDecl = OID->getContainingInterface(); in getIvarAccessString() local
760 S += ClassDecl->getIdentifier()->getName(); in getIvarAccessString()
901 void RewriteObjC::RewriteForwardClassEpilogue(ObjCInterfaceDecl *ClassDecl, in RewriteForwardClassEpilogue() argument
903 SourceLocation startLoc = ClassDecl->getLocStart(); in RewriteForwardClassEpilogue()
1196 void RewriteObjC::RewriteInterfaceDecl(ObjCInterfaceDecl *ClassDecl) { in RewriteInterfaceDecl() argument
1198 if (!ObjCForwardDecls.count(ClassDecl->getCanonicalDecl())) { in RewriteInterfaceDecl()
1201 ResultStr += ClassDecl->getNameAsString(); in RewriteInterfaceDecl()
1204 ResultStr += ClassDecl->getNameAsString(); in RewriteInterfaceDecl()
1207 ResultStr += ClassDecl->getNameAsString(); in RewriteInterfaceDecl()
[all …]
/external/clang/lib/Parse/
DParseDeclCXX.cpp1836 void Parser::ParseBaseClause(Decl *ClassDecl) { in ParseBaseClause() argument
1845 BaseResult Result = ParseBaseSpecifier(ClassDecl); in ParseBaseClause()
1862 Actions.ActOnBaseSpecifiers(ClassDecl, BaseInfo); in ParseBaseClause()
1876 BaseResult Parser::ParseBaseSpecifier(Decl *ClassDecl) { in ParseBaseSpecifier() argument
1938 return Actions.ActOnBaseSpecifier(ClassDecl, Range, Attributes, IsVirtual, in ParseBaseSpecifier()
3548 Parser::PushParsingClass(Decl *ClassDecl, bool NonNestedClass, in PushParsingClass() argument
3552 ClassStack.push(new ParsingClass(ClassDecl, NonNestedClass, IsInterface)); in PushParsingClass()
/external/clang/include/clang/Sema/
DSema.h4482 CXXRecordDecl *ClassDecl);
4495 CXXDestructorDecl *DeclareImplicitDestructor(CXXRecordDecl *ClassDecl);
4506 void AdjustDestructorExceptionSpec(CXXRecordDecl *ClassDecl,
4519 CXXConstructorDecl *DeclareImplicitCopyConstructor(CXXRecordDecl *ClassDecl);
4533 CXXConstructorDecl *DeclareImplicitMoveConstructor(CXXRecordDecl *ClassDecl);
4546 CXXMethodDecl *DeclareImplicitCopyAssignment(CXXRecordDecl *ClassDecl);
4559 CXXMethodDecl *DeclareImplicitMoveAssignment(CXXRecordDecl *ClassDecl);
5338 CXXRecordDecl *ClassDecl,
5343 CXXRecordDecl *ClassDecl);
5400 void AddImplicitlyDeclaredMembersToClass(CXXRecordDecl *ClassDecl);
[all …]
/external/clang/include/clang/Parse/
DParser.h2460 void ParseBaseClause(Decl *ClassDecl);
2461 BaseResult ParseBaseSpecifier(Decl *ClassDecl);
/external/clang/test/SemaCXX/
Ddllexport.cpp338 class __declspec(dllexport) ClassDecl;
Ddllimport.cpp1343 class __declspec(dllimport) ClassDecl;

12