Home
last modified time | relevance | path

Searched refs:Dtor (Results 1 – 25 of 26) sorted by relevance

12

/external/clang/test/CXX/class/class.union/
Dp1.cpp34 class Dtor { class
35 ~Dtor() { abort(); } // expected-note 4 {{because type 'Dtor' has a user-declared destructor}} in ~Dtor()
46 Dtor dtor; // expected-error {{union member 'dtor' has a non-trivial destructor}}
70 Dtor dtor; // expected-note {{because type 'U2::<anonymous struct}}
90 …struct s6 : Dtor { // expected-note {{because type 'U3::s6' has a base class with a non-trivial de…
122 Either<int,Dtor> dtor(0); // expected-note {{in instantiation of template}} in fred()
/external/clang/lib/CodeGen/
DCGClass.cpp533 CXXDestructorDecl *Dtor; member
535 CallMemberDtor(llvm::Value *V, CXXDestructorDecl *Dtor) in CallMemberDtor()
536 : V(V), Dtor(Dtor) {} in CallMemberDtor()
539 CGF.EmitCXXDestructorCall(Dtor, Dtor_Complete, /*ForVirtualBase=*/false, in Emit()
874 const CXXDestructorDecl *Dtor) { in CanSkipVTablePointerInitialization() argument
875 if (!Dtor->hasTrivialBody()) in CanSkipVTablePointerInitialization()
879 const CXXRecordDecl *ClassDecl = Dtor->getParent(); in CanSkipVTablePointerInitialization()
893 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CurGD.getDecl()); in EmitDestructorBody() local
901 EnterDtorCleanups(Dtor, Dtor_Deleting); in EmitDestructorBody()
902 EmitCXXDestructorCall(Dtor, Dtor_Complete, /*ForVirtualBase=*/false, in EmitDestructorBody()
[all …]
DCGExprCXX.cpp282 if (const CXXDestructorDecl *Dtor = dyn_cast<CXXDestructorDecl>(MD)) { in EmitCXXMemberCallExpr() local
284 Callee = BuildVirtualCall(Dtor, Dtor_Complete, This, Ty); in EmitCXXMemberCallExpr()
291 Callee = CGM.GetAddrOfFunction(GlobalDecl(Dtor, Dtor_Complete), Ty); in EmitCXXMemberCallExpr()
1375 const CXXDestructorDecl *Dtor = 0; in EmitObjectDelete() local
1379 Dtor = RD->getDestructor(); in EmitObjectDelete()
1381 if (Dtor->isVirtual()) { in EmitObjectDelete()
1392 CGF.getTypes().arrangeCXXDestructor(Dtor, Dtor_Complete)); in EmitObjectDelete()
1395 = CGF.BuildVirtualCall(Dtor, in EmitObjectDelete()
1398 CGF.EmitCXXMemberCall(Dtor, Callee, ReturnValueSlot(), Ptr, /*VTT=*/0, in EmitObjectDelete()
1416 if (Dtor) in EmitObjectDelete()
[all …]
DCGException.cpp455 llvm::Constant *Dtor = 0; in EmitCXXThrowExpr() local
460 Dtor = CGM.GetAddrOfCXXDestructor(DtorD, Dtor_Complete); in EmitCXXThrowExpr()
461 Dtor = llvm::ConstantExpr::getBitCast(Dtor, Int8PtrTy); in EmitCXXThrowExpr()
464 if (!Dtor) Dtor = llvm::Constant::getNullValue(Int8PtrTy); in EmitCXXThrowExpr()
470 ExceptionPtr, TypeInfo, Dtor); in EmitCXXThrowExpr()
474 Builder.CreateCall3(getThrowFn(*this), ExceptionPtr, TypeInfo, Dtor); in EmitCXXThrowExpr()
DItaniumCXXABI.cpp100 void BuildDestructorSignature(const CXXDestructorDecl *Dtor,
140 void BuildDestructorSignature(const CXXDestructorDecl *Dtor,
706 void ItaniumCXXABI::BuildDestructorSignature(const CXXDestructorDecl *Dtor, in BuildDestructorSignature() argument
715 if (Type == Dtor_Base && Dtor->getParent()->getNumVBases() != 0) in BuildDestructorSignature()
721 void ARMCXXABI::BuildDestructorSignature(const CXXDestructorDecl *Dtor, in BuildDestructorSignature() argument
725 ItaniumCXXABI::BuildDestructorSignature(Dtor, Type, ResTy, ArgTys); in BuildDestructorSignature()
DCGCXXABI.h175 virtual void BuildDestructorSignature(const CXXDestructorDecl *Dtor,
DCGDecl.cpp366 const CXXDestructorDecl *Dtor, in DestroyNRVOVariable()
368 : Dtor(Dtor), NRVOFlag(NRVOFlag), Loc(addr) {} in DestroyNRVOVariable()
370 const CXXDestructorDecl *Dtor; member
388 CGF.EmitCXXDestructorCall(Dtor, Dtor_Complete, in Emit()
DCodeGenModule.h958 void AddGlobalDtor(llvm::Function *Dtor, int Priority=65535);
DCodeGenFunction.h762 void PushDestructorCleanup(const CXXDestructorDecl *Dtor,
1449 void EnterDtorCleanups(const CXXDestructorDecl *Dtor, CXXDtorType Type);
DCodeGenModule.cpp435 void CodeGenModule::AddGlobalDtor(llvm::Function * Dtor, int Priority) { in AddGlobalDtor() argument
437 GlobalDtors.push_back(std::make_pair(Dtor, Priority)); in AddGlobalDtor()
/external/clang/test/Analysis/
Ddtor.cpp234 class Dtor { class
236 ~Dtor() { in ~Dtor()
242 Dtor d; in allocate()
/external/clang/lib/StaticAnalyzer/Checkers/
DDynamicTypePropagation.cpp84 if (const CXXDestructorCall *Dtor = dyn_cast<CXXDestructorCall>(&Call)) { in checkPreCall() local
86 if (!Dtor->isBaseDestructor()) in checkPreCall()
89 const MemRegion *Target = Dtor->getCXXThisVal().getAsRegion(); in checkPreCall()
93 const Decl *D = Dtor->getDecl(); in checkPreCall()
/external/clang/lib/StaticAnalyzer/Core/
DCallEvent.cpp901 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CalleeCtx->getDecl()); in getCaller() local
902 Loc ThisPtr = SVB.getCXXThis(Dtor, CalleeCtx); in getCaller()
909 Trigger = Dtor->getBody(); in getCaller()
911 return getCXXDestructorCall(Dtor, Trigger, ThisVal.getAsRegion(), in getCaller()
DExprEngineCallAndReturn.cpp420 const CXXDestructorCall &Dtor = cast<CXXDestructorCall>(Call); in inlineCall() local
423 const MemRegion *Target = Dtor.getCXXThisVal().getAsRegion(); in inlineCall()
DPathDiagnostic.cpp488 const CFGAutomaticObjDtor &Dtor = cast<CFGAutomaticObjDtor>(Source); in getLocationForCaller() local
489 return PathDiagnosticLocation::createEnd(Dtor.getTriggerStmt(), in getLocationForCaller()
DExprEngine.cpp435 void ExprEngine::ProcessAutomaticObjDtor(const CFGAutomaticObjDtor Dtor, in ProcessAutomaticObjDtor() argument
439 const VarDecl *varDecl = Dtor.getVarDecl(); in ProcessAutomaticObjDtor()
449 Dtor.getTriggerStmt(), /*IsBase=*/false, Pred, Dst); in ProcessAutomaticObjDtor()
/external/clang/lib/Analysis/
DLiveVariables.cpp467 if (const CFGAutomaticObjDtor *Dtor = dyn_cast<CFGAutomaticObjDtor>(&elem)){ in runOnBlock() local
468 val.liveDecls = DSetFact.add(val.liveDecls, Dtor->getVarDecl()); in runOnBlock()
DCFG.cpp809 const CXXDestructorDecl *Dtor = Ty->getAsCXXRecordDecl()->getDestructor(); in addAutomaticObjDtors() local
810 if (cast<FunctionType>(Dtor->getType())->getNoReturnAttr()) in addAutomaticObjDtors()
3191 const CXXDestructorDecl *Dtor = E->getTemporary()->getDestructor(); in VisitCXXBindTemporaryExprForTemporaryDtors() local
3192 if (cast<FunctionType>(Dtor->getType())->getNoReturnAttr()) in VisitCXXBindTemporaryExprForTemporaryDtors()
DThreadSafety.cpp1964 bool Dtor = isa<CXXDestructorDecl>(D); in handleCall() local
1966 Analyzer->removeLock(FSet, LocksToRemove[i], Loc, Dtor); in handleCall()
/external/clang/lib/Sema/
DSemaAccess.cpp1545 CXXDestructorDecl *Dtor, in CheckDestructorAccess() argument
1552 AccessSpecifier Access = Dtor->getAccess(); in CheckDestructorAccess()
1556 CXXRecordDecl *NamingClass = Dtor->getParent(); in CheckDestructorAccess()
1560 DeclAccessPair::make(Dtor, Access), in CheckDestructorAccess()
DSemaDeclCXX.cpp2932 if (CXXDestructorDecl *Dtor = LookupDestructor(Constructor->getParent())) { in SetDelegatingInitializer() local
2933 MarkFunctionReferenced(Initializer->getSourceLocation(), Dtor); in SetDelegatingInitializer()
2934 DiagnoseUseOfDecl(Dtor, Initializer->getSourceLocation()); in SetDelegatingInitializer()
3405 CXXDestructorDecl *Dtor = LookupDestructor(FieldClassDecl); in MarkBaseAndMemberDestructorsReferenced() local
3406 assert(Dtor && "No dtor found for FieldClassDecl!"); in MarkBaseAndMemberDestructorsReferenced()
3407 CheckDestructorAccess(Field->getLocation(), Dtor, in MarkBaseAndMemberDestructorsReferenced()
3412 MarkFunctionReferenced(Location, const_cast<CXXDestructorDecl*>(Dtor)); in MarkBaseAndMemberDestructorsReferenced()
3413 DiagnoseUseOfDecl(Dtor, Location); in MarkBaseAndMemberDestructorsReferenced()
3435 CXXDestructorDecl *Dtor = LookupDestructor(BaseClassDecl); in MarkBaseAndMemberDestructorsReferenced() local
3436 assert(Dtor && "No dtor found for BaseClassDecl!"); in MarkBaseAndMemberDestructorsReferenced()
[all …]
DSemaType.cpp4536 CXXDestructorDecl *Dtor = RD->getDestructor(); in RequireLiteralType() local
4537 assert(Dtor && "class has literal fields and bases but no dtor?"); in RequireLiteralType()
4538 if (!Dtor) in RequireLiteralType()
4541 Diag(Dtor->getLocation(), Dtor->isUserProvided() ? in RequireLiteralType()
DSemaExprCXX.cpp2179 if (CXXDestructorDecl *Dtor = LookupDestructor(PointeeRD)) { in ActOnCXXDelete() local
2181 const_cast<CXXDestructorDecl*>(Dtor)); in ActOnCXXDelete()
2182 DiagnoseUseOfDecl(Dtor, StartLoc); in ActOnCXXDelete()
2236 if (CXXDestructorDecl *Dtor = LookupDestructor(PointeeRD)) { in ActOnCXXDelete() local
2237 CheckDestructorAccess(Ex.get()->getExprLoc(), Dtor, in ActOnCXXDelete()
/external/clang/lib/AST/
DDeclCXX.cpp1198 CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(*I); in getDestructor() local
1199 return Dtor; in getDestructor()
/external/clang/include/clang/AST/
DExprCXX.h822 void setDestructor(const CXXDestructorDecl *Dtor) { in setDestructor() argument
823 Destructor = Dtor; in setDestructor()

12