//===--- TransZeroOutPropsInDealloc.cpp - Transformations to ARC mode -----===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // removeZeroOutPropsInDealloc: // // Removes zero'ing out "strong" @synthesized properties in a -dealloc method. // //===----------------------------------------------------------------------===// #include "Transforms.h" #include "Internals.h" #include "clang/AST/ASTContext.h" usingnamespaceclang; usingnamespacearcmt; usingnamespacetrans; namespace { class ZeroOutInDeallocRemover : public RecursiveASTVisitor<ZeroOutInDeallocRemover> { … }; } // anonymous namespace void trans::removeZeroOutPropsInDeallocFinalize(MigrationPass &pass) { … }