[Sema] Intro @_spiOnly attribute and import filter

Introduce the attribute and basic import filter logic.
This commit is contained in:
Alexis Laferrière
2022-08-25 09:40:58 -07:00
parent cf8f61d76b
commit aaaef3411e
8 changed files with 29 additions and 3 deletions

View File

@@ -88,7 +88,11 @@ enum class ImportFlags {
WeakLinked = 0x40,
/// Used for DenseMap.
Reserved = 0x80
Reserved = 0x80,
/// The imported module can only be referenced from SPI decls, or
/// implementation details.
SPIOnly = 0x100
};
/// \see ImportFlags