Skip to content

Collect module import remarks in the types log. #7857

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

Conversation

adrian-prantl
Copy link

This patch enables the module import remarks in the Swift LangOpts,
and sends them straight to the types log. Over the existing log entry
in LoadOneModule, this has the advantage that these remarks are
generated also for modules that are dependencies of other modules, not
just the top level imports. It works for Swift and Clang modules
imported by Swift modules.

@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl
Copy link
Author

@swift-ci test windows

This patch enables the module import remarks in the Swift LangOpts,
and sends them straight to the types log. Over the existing log entry
in LoadOneModule, this has the advantage that these remarks are
generated also for modules that are dependencies of other modules, not
just the top level imports. It works for Swift and Clang modules
imported by Swift modules.
@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl
Copy link
Author

@swift-ci test windows

@adrian-prantl adrian-prantl merged commit 572a5a4 into swiftlang:stable/20230725 Dec 9, 2023
kastiglione added a commit that referenced this pull request Mar 11, 2024
In `handleDiagnostics`, early exit from all Swift remarks. Remark diagnostics should 
not be handled as warnings/errors.

At most, lldb should use remark diagnostics for logging, or progress events.

By setting `EnableModuleLoadingRemarks` to true 
(#7857) there are remarks other than 
`module_loaded` that are emitted. These other remarks should be ignored in 
`handleDiagnostics`.

rdar://121611925
kastiglione added a commit that referenced this pull request Mar 14, 2024
In `handleDiagnostics`, early exit from all Swift remarks. Remark diagnostics should 
not be handled as warnings/errors.

At most, lldb should use remark diagnostics for logging, or progress events.

By setting `EnableModuleLoadingRemarks` to true 
(#7857) there are remarks other than 
`module_loaded` that are emitted. These other remarks should be ignored in 
`handleDiagnostics`.

rdar://121611925

(cherry-picked from commit b7ab938)
kastiglione added a commit that referenced this pull request Mar 14, 2024
In `handleDiagnostics`, early exit from all Swift remarks. Remark diagnostics should 
not be handled as warnings/errors.

At most, lldb should use remark diagnostics for logging, or progress events.

By setting `EnableModuleLoadingRemarks` to true 
(#7857) there are remarks other than 
`module_loaded` that are emitted. These other remarks should be ignored in 
`handleDiagnostics`.

rdar://121611925

(cherry-picked from commit b7ab938)
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