Skip to content

Improve wording of progress update #8093

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

@adrian-prantl adrian-prantl commented Feb 1, 2024

Improve wording of progress update assuming that nobody outside of LLDB developers knows what a "compile unit import" is.

JDevlieghere and others added 2 commits January 31, 2024 15:34
…9649)

Make it easier to go from a ConstString to a std::string without having
to go through a C-String or a llvm::StringRef. I made the conversion
operator explicit as this is a relatively expensive operations (compared
to a StringRef or string_view).

(cherry picked from commit 33860b2)
... assuming that nobody outside of LLDB developers knows what a
"compile unit import" is.
@adrian-prantl adrian-prantl changed the title Better wording Improve wording of progress update Feb 1, 2024
@adrian-prantl
Copy link
Author

@swift-ci test

compile_unit->GetPrimaryFile().GetFilename().GetCString(),
cu_imports.size());
std::string category = "Importing Swift module dependencies for ";
category += compile_unit->GetPrimaryFile().GetFilename();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would main.swift always be the primary filename here? The category would be "Importing Swift module dependencies for main.swift" which I think works as a category name (as opposed to "Importing Swift module dependencies for"), I just wanna make sure that the filename here wouldn't change.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is we're debugging main.swift, which contains

import Foundation
import Cocoa

and then we should get:

Importing Swift module dependencies for main.swift: Foundation
Importing Swift module dependencies for main.swift: Cocoa

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, in short: yes!

@adrian-prantl adrian-prantl merged commit 155cbe1 into swiftlang:stable/20230725 Feb 1, 2024
@@ -38,14 +38,16 @@ def test_swift_progress_report(self):
"Loading Swift module",
"Importing modules used in expression",
"Setting up Swift reflection",
"Getting Swift compile unit imports",
"Importing Swift module dependencies for main.swift",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: We're only doing partial string matching on the test so we could have drop the file name at the end.

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.

4 participants