| //===--- AccessedStorage.def ----------------------------*- c++ -*---------===// |
| // |
| // This source file is part of the Swift.org open source project |
| // |
| // Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors |
| // Licensed under Apache License v2.0 with Runtime Library Exception |
| // |
| // See https://swift.org/LICENSE.txt for license information |
| // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors |
| // |
| //===----------------------------------------------------------------------===// |
| /// |
| /// \file |
| /// |
| /// A file used for metaprogramming with accessed storage. Used to enable |
| /// easily updateable visitors. |
| /// |
| //===----------------------------------------------------------------------===// |
| |
| #ifndef ACCESSED_STORAGE |
| #error "Must define accesed storage before including this?!" |
| #endif |
| |
| #ifndef ACCESSED_STORAGE_RANGE |
| #define ACCESSED_STORAGE_RANGE(Name, Start, End) |
| #endif |
| |
| ACCESSED_STORAGE(Box) |
| ACCESSED_STORAGE(Stack) |
| ACCESSED_STORAGE(Global) |
| ACCESSED_STORAGE(Class) |
| ACCESSED_STORAGE(Argument) |
| ACCESSED_STORAGE(Yield) |
| ACCESSED_STORAGE(Nested) |
| ACCESSED_STORAGE(Unidentified) |
| ACCESSED_STORAGE_RANGE(AccessedStorageKind, Box, Unidentified) |
| |
| #undef ACCESSED_STORAGE_RANGE |
| #undef ACCESSED_STORAGE |