mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
don't use Clang modules in the "only re-export public symbols" check (#66610)
rdar://110399757
This commit is contained in:
@@ -718,7 +718,10 @@ bool SymbolGraph::isImplicitlyPrivate(const Decl *D,
|
||||
|
||||
// Symbols from exported-imported modules should only be included if they
|
||||
// were originally public.
|
||||
if (Walker.isFromExportedImportedModule(D) &&
|
||||
// We force compiler-equality here to ensure that the presence of an underlying
|
||||
// Clang module does not prevent internal Swift symbols from being emitted when
|
||||
// MinimumAccessLevel is set to `internal` or below.
|
||||
if (Walker.isFromExportedImportedModule(D, /*countUnderlyingClangModule*/false) &&
|
||||
VD->getFormalAccess() < AccessLevel::Public) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user