Skip to content

[5.6] Multiple symbol-graph regressions #40841

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 13, 2022

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.

2 participants