/external/clang/lib/CodeGen/ |
D | CGClass.cpp | 174 CodeGenModule::GetNonVirtualBaseClassOffset(const CXXRecordDecl *ClassDecl, in GetNonVirtualBaseClassOffset() argument 180 computeNonVirtualBaseClassOffset(ClassDecl, PathBegin, PathEnd); in GetNonVirtualBaseClassOffset() 520 const CXXRecordDecl *ClassDecl, in EmitBaseInitializer() argument 542 CGF.InitializeVTablePointers(ClassDecl); in EmitBaseInitializer() 547 CGF.GetAddressOfDirectBaseInCompleteClass(ThisPtr, ClassDecl, in EmitBaseInitializer() 695 const CXXRecordDecl *ClassDecl, in EmitMemberInitializer() argument 709 QualType RecordTy = CGF.getContext().getTypeDeclType(ClassDecl); in EmitMemberInitializer() 855 const CXXRecordDecl *ClassDecl = in EmitAsanPrologueOrEpilogue() local 858 if (!ClassDecl->mayInsertExtraPadding()) return; in EmitAsanPrologueOrEpilogue() 866 const ASTRecordLayout &Info = Context.getASTRecordLayout(ClassDecl); in EmitAsanPrologueOrEpilogue() [all …]
|
D | ItaniumCXXABI.cpp | 210 const CXXRecordDecl *ClassDecl, 1014 auto *ClassDecl = in emitVirtualObjectDelete() local 1017 CGF.GetVTablePtr(Ptr, CGF.IntPtrTy->getPointerTo(), ClassDecl); in emitVirtualObjectDelete() 1216 auto *ClassDecl = in EmitTypeid() local 1219 CGF.GetVTablePtr(ThisPtr, StdTypeInfoPtrTy->getPointerTo(), ClassDecl); in EmitTypeid() 1282 auto *ClassDecl = in EmitDynamicCastToVoid() local 1286 ClassDecl); in EmitDynamicCastToVoid() 1313 const CXXRecordDecl *ClassDecl, in GetVirtualBaseClassOffset() argument 1315 llvm::Value *VTablePtr = CGF.GetVTablePtr(This, CGM.Int8PtrTy, ClassDecl); in GetVirtualBaseClassOffset() 1317 CGM.getItaniumVTableContext().getVirtualBaseOffsetOffset(ClassDecl, in GetVirtualBaseClassOffset()
|
D | CGObjCGNU.cpp | 515 void GenerateClass(const ObjCImplementationDecl *ClassDecl) override; 2150 ObjCInterfaceDecl *ClassDecl = in RegisterAlias() local 2152 ClassAliases.emplace_back(ClassDecl->getNameAsString(), in RegisterAlias() 2169 ObjCInterfaceDecl *ClassDecl = in GenerateClass() local 2171 std::string ClassName = ClassDecl->getNameAsString(); in GenerateClass() 2205 for (const ObjCIvarDecl *IVD = ClassDecl->all_declared_ivar_begin(); IVD; in GenerateClass() 2285 for (const auto *I : ClassDecl->protocols()) in GenerateClass() 2320 for (const ObjCIvarDecl *IVD = ClassDecl->all_declared_ivar_begin(); IVD; in GenerateClass()
|
D | CGCXXABI.h | 268 const CXXRecordDecl *ClassDecl,
|
D | CGVTables.cpp | 105 auto ClassDecl = ResultType->getPointeeType()->getAsCXXRecordDecl(); in PerformReturnAdjustment() local 106 auto ClassAlign = CGF.CGM.getClassPointerAlignment(ClassDecl); in PerformReturnAdjustment()
|
D | CGObjC.cpp | 73 const ObjCInterfaceDecl *ClassDecl = BoxingMethod->getClassInterface(); in EmitObjCBoxedExpr() local 74 llvm::Value *Receiver = Runtime.GetClass(*this, ClassDecl); in EmitObjCBoxedExpr() 108 Args, ClassDecl, BoxingMethod); in EmitObjCBoxedExpr()
|
D | CodeGenModule.h | 747 GetNonVirtualBaseClassOffset(const CXXRecordDecl *ClassDecl,
|
/external/clang/lib/Sema/ |
D | SemaDeclCXX.cpp | 1657 void Sema::ActOnBaseSpecifiers(Decl *ClassDecl, CXXBaseSpecifier **Bases, in ActOnBaseSpecifiers() argument 1659 if (!ClassDecl || !Bases || !NumBases) in ActOnBaseSpecifiers() 1662 AdjustDeclIfTemplate(ClassDecl); in ActOnBaseSpecifiers() 1663 AttachBaseSpecifiers(cast<CXXRecordDecl>(ClassDecl), Bases, NumBases); in ActOnBaseSpecifiers() 2744 CXXRecordDecl *ClassDecl, in FindBaseInitializer() argument 2750 for (const auto &Base : ClassDecl->bases()) { in FindBaseInitializer() 2768 if (SemaRef.IsDerivedFrom(ClassDecl->getLocation(), in FindBaseInitializer() 2769 SemaRef.Context.getTypeDeclType(ClassDecl), in FindBaseInitializer() 2825 explicit MemInitializerValidatorCCC(CXXRecordDecl *ClassDecl) in MemInitializerValidatorCCC() argument 2826 : ClassDecl(ClassDecl) {} in MemInitializerValidatorCCC() [all …]
|
D | SemaCUDA.cpp | 296 bool Sema::inferCUDATargetForImplicitSpecialMember(CXXRecordDecl *ClassDecl, in inferCUDATargetForImplicitSpecialMember() argument 311 for (const auto &B : ClassDecl->bases()) { in inferCUDATargetForImplicitSpecialMember() 317 if (!ClassDecl->isAbstract()) { in inferCUDATargetForImplicitSpecialMember() 318 for (const auto &VB : ClassDecl->vbases()) { in inferCUDATargetForImplicitSpecialMember() 351 Diag(ClassDecl->getLocation(), in inferCUDATargetForImplicitSpecialMember() 362 for (const auto *F : ClassDecl->fields()) { in inferCUDATargetForImplicitSpecialMember() 396 Diag(ClassDecl->getLocation(), in inferCUDATargetForImplicitSpecialMember()
|
D | SemaDeclObjC.cpp | 3558 Decl *ClassDecl = cast<Decl>(OCD); in ActOnAtEnd() local 3561 isa<ObjCInterfaceDecl>(ClassDecl) || isa<ObjCCategoryDecl>(ClassDecl) in ActOnAtEnd() 3562 || isa<ObjCProtocolDecl>(ClassDecl); in ActOnAtEnd() 3563 bool checkIdenticalMethods = isa<ObjCImplementationDecl>(ClassDecl); in ActOnAtEnd() 3623 if (isa<ObjCInterfaceDecl>(ClassDecl)) { in ActOnAtEnd() 3625 } else if (ObjCCategoryDecl *C = dyn_cast<ObjCCategoryDecl>(ClassDecl)) { in ActOnAtEnd() 3635 if (ObjCContainerDecl *CDecl = dyn_cast<ObjCContainerDecl>(ClassDecl)) { in ActOnAtEnd() 3644 if (ObjCImplementationDecl *IC=dyn_cast<ObjCImplementationDecl>(ClassDecl)) { in ActOnAtEnd() 3716 dyn_cast<ObjCCategoryImplDecl>(ClassDecl)) { in ActOnAtEnd() 3748 ActOnDocumentableDecl(ClassDecl); in ActOnAtEnd() [all …]
|
D | SemaObjCProperty.cpp | 198 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() 805 ObjCInterfaceDecl *ClassDecl, in DiagnosePropertyMismatchDeclInProtocols() argument 808 for (const auto *PI : ClassDecl->all_referenced_protocols()) { in DiagnosePropertyMismatchDeclInProtocols() [all …]
|
D | SemaExprObjC.cpp | 2673 if (ObjCInterfaceDecl *ClassDecl = CurMeth->getClassInterface()) { in BuildInstanceMessage() local 2675 Method = ClassDecl->lookupClassMethod(Sel); in BuildInstanceMessage() 2678 Method = ClassDecl->lookupPrivateClassMethod(Sel); in BuildInstanceMessage() 2709 ObjCInterfaceDecl *ClassDecl = nullptr; in BuildInstanceMessage() local 2725 ClassDecl = OCIType->getInterfaceDecl(); in BuildInstanceMessage() 2746 Method = ClassDecl->lookupInstanceMethod(Sel); in BuildInstanceMessage() 2755 Method = ClassDecl->lookupPrivateMethod(Sel); in BuildInstanceMessage()
|
D | SemaPseudoObject.cpp | 239 if (const CXXRecordDecl *ClassDecl = ty->getAsCXXRecordDecl()) in CanCaptureValue() local 240 return ClassDecl->isTriviallyCopyable(); in CanCaptureValue()
|
D | SemaCodeComplete.cpp | 4444 CXXRecordDecl *ClassDecl = Constructor->getParent(); in CodeCompleteConstructorInitializer() local 4445 for (const auto &Base : ClassDecl->bases()) { in CodeCompleteConstructorInitializer() 4469 for (const auto &Base : ClassDecl->vbases()) { in CodeCompleteConstructorInitializer() 4493 for (auto *Field : ClassDecl->fields()) { in CodeCompleteConstructorInitializer() 5751 if (ObjCInterfaceDecl *ClassDecl = CurMethod->getClassInterface()) in CodeCompleteObjCInstanceMessage() local 5752 AddObjCMethods(ClassDecl, false, MK_Any, SelIdents, in CodeCompleteObjCInstanceMessage()
|
/external/clang/lib/AST/ |
D | DeclObjC.cpp | 205 if (const auto *ClassDecl = dyn_cast<ObjCInterfaceDecl>(this)) { in FindPropertyDeclaration() local 206 for (const auto *Ext : ClassDecl->visible_extensions()) { in FindPropertyDeclaration() 572 ObjCInterfaceDecl* ClassDecl = this; in lookupInstanceVariable() local 573 while (ClassDecl != nullptr) { in lookupInstanceVariable() 574 if (ObjCIvarDecl *I = ClassDecl->getIvarDecl(ID)) { in lookupInstanceVariable() 575 clsDeclared = ClassDecl; in lookupInstanceVariable() 579 for (const auto *Ext : ClassDecl->visible_extensions()) { in lookupInstanceVariable() 581 clsDeclared = ClassDecl; in lookupInstanceVariable() 586 ClassDecl = ClassDecl->getSuperClass(); in lookupInstanceVariable() 603 ObjCInterfaceDecl* ClassDecl = this; in lookupInheritedClass() local [all …]
|
D | Type.cpp | 1864 if (CXXRecordDecl *ClassDecl = dyn_cast<CXXRecordDecl>(Record->getDecl())) in isAggregateType() local 1865 return ClassDecl->isAggregate(); in isAggregateType() 2020 if (CXXRecordDecl *ClassDecl in isCXX98PODType() local 2022 return ClassDecl->isPOD(); in isCXX98PODType() 2074 if (const CXXRecordDecl *ClassDecl = in isTrivialType() local 2080 return ClassDecl->hasDefaultConstructor() && in isTrivialType() 2081 !ClassDecl->hasNonTrivialDefaultConstructor() && in isTrivialType() 2082 ClassDecl->isTriviallyCopyable(); in isTrivialType() 2135 if (const CXXRecordDecl *ClassDecl = in isTriviallyCopyableType() local 2137 if (!ClassDecl->isTriviallyCopyable()) return false; in isTriviallyCopyableType() [all …]
|
/external/clang/test/Parser/ |
D | skip-function-bodies.mm | 30 // 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/ |
D | ASTMatchFinder.cpp | 803 CXXRecordDecl *ClassDecl = getAsCXXRecordDecl(TypeNode); in classIsDerivedFrom() local 804 if (!ClassDecl) in classIsDerivedFrom() 806 if (ClassDecl == Declaration) { in classIsDerivedFrom() 812 if (Base.matches(*ClassDecl, this, &Result)) { in classIsDerivedFrom() 816 if (classIsDerivedFrom(ClassDecl, Base, Builder)) in classIsDerivedFrom()
|
/external/clang/lib/Frontend/Rewrite/ |
D | RewriteModernObjC.cpp | 317 void RewriteForwardClassEpilogue(ObjCInterfaceDecl *ClassDecl, 847 const ObjCInterfaceDecl *ClassDecl = D->getContainingInterface(); in getIvarAccessString() local 854 WriteInternalIvarName(ClassDecl, D, IvarOffsetName); in getIvarAccessString() 912 ReferencedIvars[const_cast<ObjCInterfaceDecl *>(ClassDecl)].insert(D); in getIvarAccessString() 1069 void RewriteModernObjC::RewriteForwardClassEpilogue(ObjCInterfaceDecl *ClassDecl, in RewriteForwardClassEpilogue() argument 1071 SourceLocation startLoc = ClassDecl->getLocStart(); in RewriteForwardClassEpilogue() 1400 void RewriteModernObjC::RewriteInterfaceDecl(ObjCInterfaceDecl *ClassDecl) { in RewriteInterfaceDecl() argument 1402 if (ObjCSynthesizedStructs.count(ClassDecl)) in RewriteInterfaceDecl() 1405 ObjCInterfaceDecl *SuperClass = ClassDecl->getSuperClass(); in RewriteInterfaceDecl() 1411 if (!ObjCWrittenInterfaces.count(ClassDecl->getCanonicalDecl())) { in RewriteInterfaceDecl() [all …]
|
D | RewriteObjC.cpp | 263 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() 1195 void RewriteObjC::RewriteInterfaceDecl(ObjCInterfaceDecl *ClassDecl) { in RewriteInterfaceDecl() argument 1197 if (!ObjCForwardDecls.count(ClassDecl->getCanonicalDecl())) { in RewriteInterfaceDecl() 1200 ResultStr += ClassDecl->getNameAsString(); in RewriteInterfaceDecl() 1203 ResultStr += ClassDecl->getNameAsString(); in RewriteInterfaceDecl() 1206 ResultStr += ClassDecl->getNameAsString(); in RewriteInterfaceDecl() [all …]
|
/external/clang/lib/Parse/ |
D | ParseDeclCXX.cpp | 1821 void Parser::ParseBaseClause(Decl *ClassDecl) { in ParseBaseClause() argument 1830 BaseResult Result = ParseBaseSpecifier(ClassDecl); in ParseBaseClause() 1847 Actions.ActOnBaseSpecifiers(ClassDecl, BaseInfo.data(), BaseInfo.size()); in ParseBaseClause() 1861 BaseResult Parser::ParseBaseSpecifier(Decl *ClassDecl) { in ParseBaseSpecifier() argument 1923 return Actions.ActOnBaseSpecifier(ClassDecl, Range, Attributes, IsVirtual, in ParseBaseSpecifier() 3523 Parser::PushParsingClass(Decl *ClassDecl, bool NonNestedClass, in PushParsingClass() argument 3527 ClassStack.push(new ParsingClass(ClassDecl, NonNestedClass, IsInterface)); in PushParsingClass()
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 4365 CXXRecordDecl *ClassDecl); 4378 CXXDestructorDecl *DeclareImplicitDestructor(CXXRecordDecl *ClassDecl); 4389 void AdjustDestructorExceptionSpec(CXXRecordDecl *ClassDecl, 4396 void DeclareInheritingConstructors(CXXRecordDecl *ClassDecl); 4408 CXXConstructorDecl *DeclareImplicitCopyConstructor(CXXRecordDecl *ClassDecl); 4422 CXXConstructorDecl *DeclareImplicitMoveConstructor(CXXRecordDecl *ClassDecl); 4435 CXXMethodDecl *DeclareImplicitCopyAssignment(CXXRecordDecl *ClassDecl); 4448 CXXMethodDecl *DeclareImplicitMoveAssignment(CXXRecordDecl *ClassDecl); 5222 CXXRecordDecl *ClassDecl, 5227 CXXRecordDecl *ClassDecl); [all …]
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 2410 void ParseBaseClause(Decl *ClassDecl); 2411 BaseResult ParseBaseSpecifier(Decl *ClassDecl);
|
/external/clang/test/SemaCXX/ |
D | dllexport.cpp | 338 class __declspec(dllexport) ClassDecl;
|
D | dllimport.cpp | 1210 class __declspec(dllimport) ClassDecl;
|