mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Sema] Report public imports of private modules
Intro the concept of library access or distribution level to identify layers of libraries and report public imports of private libraries from public ones. rdar://62934005
This commit is contained in:
@@ -56,6 +56,7 @@ namespace swift {
|
||||
class FileUnit;
|
||||
class FuncDecl;
|
||||
class InfixOperatorDecl;
|
||||
enum class LibraryLevel : uint8_t;
|
||||
class LinkLibrary;
|
||||
class ModuleLoader;
|
||||
class NominalTypeDecl;
|
||||
@@ -462,6 +463,9 @@ public:
|
||||
Bits.ModuleDecl.RawResilienceStrategy = unsigned(strategy);
|
||||
}
|
||||
|
||||
/// Distribution level of the module.
|
||||
LibraryLevel getLibraryLevel() const;
|
||||
|
||||
/// Returns true if this module was or is being compiled for testing.
|
||||
bool hasIncrementalInfo() const { return Bits.ModuleDecl.HasIncrementalInfo; }
|
||||
void setHasIncrementalInfo(bool enabled = true) {
|
||||
|
||||
Reference in New Issue
Block a user