-
Notifications
You must be signed in to change notification settings - Fork 341
[lldb] add syntax highlighting infrastructure to Swift plugin #10852
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
[lldb] add syntax highlighting infrastructure to Swift plugin #10852
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
0ac3111
to
6909a5f
Compare
@swift-ci please test |
@@ -0,0 +1,8 @@ | |||
include "../../../../include/lldb/Core/PropertiesBase.td" | |||
|
|||
let Definition = "language_swift" in { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, I think keeping it consistent with all the other plugin setting names seems like the right thing to do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay maybe I misunderstood where this string shows up. ToT lldb calls the setting:
'plugin.cplusplus' variables:
'plugin.cplusplus.display' variables:
function-name-format -- C++ specific frame format string to use when displaying stack frame
information for threads.
I really only care about the user-visible name, and I thought this was the category name, but apparently it isn't.
I'm okay with this patch if it results in a
plugin.swift.display.function-name-format
variable.
This PR adds the infrastructure needed to implement function name syntax highlighting in LLDB Swift backtraces.
Motivation
In this patch, @Michael137 implemented name highlighting for methods in the C++ plugin of LLDB. This results in better readability when reading backtraces of functions with long scopes.
Implementation details
This patch only adds the infrastructure/boilerplate needed to implement the feature. The rest of the modifications will be added in #10710.