[lldb] fix cropped demangled names in Swift backtraces#11068
Merged
adrian-prantl merged 1 commit intoswiftlang:swift/release/6.2.1from Sep 2, 2025
Conversation
This was referenced Jul 28, 2025
charles-zablit
added a commit
to llvm/llvm-project
that referenced
this pull request
Aug 5, 2025
…#150999) This patch adds 2 new attributes to `DemangledNameInfo`: `TemplateRange` and `NameQualifiersRange`. It also introduces the `function.name-qualifiers` entity formatter which allows tracking qualifiers between the name of a function and its arguments/template. This will be used downstream in Swift but may have applications in C++: swiftlang#11068.
llvm-sync bot
pushed a commit
to arm/arm-toolchain
that referenced
this pull request
Aug 5, 2025
…ledNameInfo (#150999) This patch adds 2 new attributes to `DemangledNameInfo`: `TemplateRange` and `NameQualifiersRange`. It also introduces the `function.name-qualifiers` entity formatter which allows tracking qualifiers between the name of a function and its arguments/template. This will be used downstream in Swift but may have applications in C++: swiftlang/llvm-project#11068.
charles-zablit
added a commit
to charles-zablit/llvm-project
that referenced
this pull request
Aug 5, 2025
…llvm#150999) This patch adds 2 new attributes to `DemangledNameInfo`: `TemplateRange` and `NameQualifiersRange`. It also introduces the `function.name-qualifiers` entity formatter which allows tracking qualifiers between the name of a function and its arguments/template. This will be used downstream in Swift but may have applications in C++: swiftlang#11068.
97d1880 to
fc8389e
Compare
augusto2112
pushed a commit
to augusto2112/llvm-project
that referenced
this pull request
Aug 15, 2025
…llvm#150999) This patch adds 2 new attributes to `DemangledNameInfo`: `TemplateRange` and `NameQualifiersRange`. It also introduces the `function.name-qualifiers` entity formatter which allows tracking qualifiers between the name of a function and its arguments/template. This will be used downstream in Swift but may have applications in C++: swiftlang#11068.
|
Can you rebase this on |
There was a problem hiding this comment.
LLVM coding style prefers no {} in single-statements:
if (demangled_name[generic_end] == '<')
generic_depth++;
else if ...
fc8389e to
d61aa2f
Compare
adrian-prantl
approved these changes
Aug 20, 2025
There was a problem hiding this comment.
"DemangledInfo for '%s' does not have a name qualifiers range.",
also, is there a way to phrase this without referencing DemangledInfo (in case users see this?)
Author
There was a problem hiding this comment.
Replaced it with: "The demangled name for '%s does not have a name qualifiers range.", and fixed the 3 other occurrences as well.
d61aa2f to
f654f43
Compare
Author
|
@swift-ci please test |
Author
|
@swift-ci please test macos |
Author
|
@swift-ci please test linux |
1 similar comment
Author
|
@swift-ci please test linux |
Author
|
@swift-ci please test macOS |
f654f43 to
7a56965
Compare
Author
|
@swift-ci please test |
This was referenced Sep 2, 2025
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
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 PR fixes
TestSwiftAsyncHiddenFrames.pywhich had been failing since #10710 was merged.This PR introduces a new entity formatting attribute:
function.name-qualifiers. It's a catch all for any characters between the function's name and its arguments/template arguments. For instance, for the closure below,in C.runis the name qualifier.This PR depends on: