Skip to content

Conversation

@QuietMisdreavus
Copy link
Contributor

Cherrypick of #40696 and #40810

Explanation: These resolve issues found in SymbolGraphGen when running during an -emit-module compilation. In the first, access-level information was found to have been preserved in AccessControl attributes, which caused declarations in the symbol graph to start printing public (etc) when they previously had not. In the second, symbols declared in headers were not being emitted in symbol graphs, due to SourceFile-based modules not including decls from the underlying Clang module.

Scope: Small/Medium. The first is restricted to SymbolGraphGen, while the second affects users of the ModuleDecl::getDisplayDecls API, including SymbolGraphGen and the module interface printer.

Issue: rdar://85280786, rdar://85230067

Risk: Low. The first is restricted to SymbolGraphGen. The second was found to not cause any changes to existing automated tests.

Testing: A new test, SymbolGraph/ClangImporter/EmitWhileBuilding, has been added to run SymbolGraphGen during an -emit-module build.

@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please test

@QuietMisdreavus QuietMisdreavus requested a review from a team January 13, 2022 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants