Lines Matching refs:Destructor
773 if (CXXDestructorDecl *Destructor = LookupDestructor(RD)) { in CheckCXXThrowOperand() local
774 MarkFunctionReferenced(E->getExprLoc(), Destructor); in CheckCXXThrowOperand()
775 CheckDestructorAccess(E->getExprLoc(), Destructor, in CheckCXXThrowOperand()
777 if (DiagnoseUseOfDecl(Destructor, E->getExprLoc())) in CheckCXXThrowOperand()
3878 CXXDestructorDecl *Destructor = Self.LookupDestructor(RD); in EvaluateUnaryTypeTrait() local
3879 if (!Destructor) in EvaluateUnaryTypeTrait()
3884 if (Destructor->isDeleted()) in EvaluateUnaryTypeTrait()
3886 if (C.getLangOpts().AccessControl && Destructor->getAccess() != AS_public) in EvaluateUnaryTypeTrait()
3890 Destructor->getType()->getAs<FunctionProtoType>(); in EvaluateUnaryTypeTrait()
4030 if (CXXDestructorDecl *Destructor = Self.LookupDestructor(RD)) in EvaluateUnaryTypeTrait() local
4031 return Destructor->isVirtual(); in EvaluateUnaryTypeTrait()
5438 CXXDestructorDecl *Destructor = IsDecltype ? nullptr : LookupDestructor(RD); in MaybeBindToTemporary() local
5440 if (Destructor) { in MaybeBindToTemporary()
5441 MarkFunctionReferenced(E->getExprLoc(), Destructor); in MaybeBindToTemporary()
5442 CheckDestructorAccess(E->getExprLoc(), Destructor, in MaybeBindToTemporary()
5445 if (DiagnoseUseOfDecl(Destructor, E->getExprLoc())) in MaybeBindToTemporary()
5449 if (Destructor->isTrivial()) in MaybeBindToTemporary()
5456 CXXTemporary *Temp = CXXTemporary::Create(Context, Destructor); in MaybeBindToTemporary()
5593 CXXDestructorDecl *Destructor = LookupDestructor(RD); in ActOnDecltypeExpression() local
5594 Temp->setDestructor(Destructor); in ActOnDecltypeExpression()
5596 MarkFunctionReferenced(Bind->getExprLoc(), Destructor); in ActOnDecltypeExpression()
5597 CheckDestructorAccess(Bind->getExprLoc(), Destructor, in ActOnDecltypeExpression()
5600 if (DiagnoseUseOfDecl(Destructor, Bind->getExprLoc())) in ActOnDecltypeExpression()