-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
[llvm-cxxfilt] De-emphasize "function" in llvm-cxxfilt docs and --help #113309
[llvm-cxxfilt] De-emphasize "function" in llvm-cxxfilt docs and --help #113309
Conversation
llvm-cxxfilt can demangle names of data symbols, in addition to function names. $ llvm-cxxfilt _Z4data data And type names too, on request: $ llvm-cxxfilt -t i int Update some overly specific the wording in the --help and documentation that suggests otherwise.
@llvm/pr-subscribers-llvm-binary-utilities Author: Edd Dawson (playstation-edd) Changesllvm-cxxfilt can demangle names of data symbols, in addition to function names.
And type names too, on request:
Update some overly specific the wording in the --help and documentation that suggests otherwise. Full diff: https://github.com/llvm/llvm-project/pull/113309.diff 2 Files Affected:
diff --git a/llvm/docs/CommandGuide/llvm-cxxfilt.rst b/llvm/docs/CommandGuide/llvm-cxxfilt.rst
index 6743e361d752a6..8c61cedd9b70ba 100644
--- a/llvm/docs/CommandGuide/llvm-cxxfilt.rst
+++ b/llvm/docs/CommandGuide/llvm-cxxfilt.rst
@@ -59,8 +59,7 @@ OPTIONS
.. option:: --quote
- Add `"` `"` around demangled function symbols. Do not quote already quoted
- symbols.
+ Add `"` `"` around demangled names. Do not quote already quoted names.
.. option:: --strip-underscore, -_
@@ -69,7 +68,7 @@ OPTIONS
.. option:: --types, -t
- Attempt to demangle names as type names as well as function names.
+ Attempt to demangle names as type names as well as symbol names.
.. option:: --version
diff --git a/llvm/tools/llvm-cxxfilt/Opts.td b/llvm/tools/llvm-cxxfilt/Opts.td
index a40bc75354a133..4a997a8f8f5a74 100644
--- a/llvm/tools/llvm-cxxfilt/Opts.td
+++ b/llvm/tools/llvm-cxxfilt/Opts.td
@@ -15,9 +15,9 @@ multiclass Eq<string name, string help> {
}
def help : FF<"help", "Display this help">;
-def quote : FF<"quote", "Quote demangled function names with \" \" if not already quoted">;
+def quote : FF<"quote", "Quote demangled names with \" \" if not already quoted">;
defm strip_underscore : BB<"strip-underscore", "Strip the leading underscore", "Don't strip the leading underscore">;
-def types : FF<"types", "Attempt to demangle types as well as function names">;
+def types : FF<"types", "Attempt to demangle types as well as symbol names">;
def no_params : FF<"no-params", "Skip function parameters and return types">;
def version : FF<"version", "Display the version">;
|
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!
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/7457 Here is the relevant piece of the build log for the reference
|
llvm#113309) llvm-cxxfilt can demangle names of data symbols, in addition to function names. $ llvm-cxxfilt _ZN6garden5gnomeE garden::gnome And type names too, on request: $ llvm-cxxfilt -t i int Update some overly specific the wording in the --help and documentation that suggests otherwise.
llvm-cxxfilt can demangle names of data symbols, in addition to function names.
And type names too, on request:
Update some overly specific the wording in the --help and documentation that suggests otherwise.