forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 344
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
adrian-prantl
merged 3 commits into
swiftlang:stable/20230725
from
adrian-prantl:module-remarks
Dec 9, 2023
Merged
Collect module import remarks in the types log. #7857
adrian-prantl
merged 3 commits into
swiftlang:stable/20230725
from
adrian-prantl:module-remarks
Dec 9, 2023
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@swift-ci test |
c8f6a91
to
6f14dc1
Compare
@swift-ci test |
@swift-ci test windows |
kastiglione
approved these changes
Dec 8, 2023
kastiglione
reviewed
Dec 8, 2023
lldb/source/Plugins/TypeSystem/Swift/StoringDiagnosticConsumer.h
Outdated
Show resolved
Hide resolved
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.
6f14dc1
to
40468df
Compare
@swift-ci test |
@swift-ci test windows |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.