Skip to content

Commit d4dd770

Browse files
[llvm-cxxfilt] De-emphasize "function" in llvm-cxxfilt docs and --help (#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.
1 parent b225b15 commit d4dd770

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

llvm/docs/CommandGuide/llvm-cxxfilt.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ OPTIONS
5959

6060
.. option:: --quote
6161

62-
Add `"` `"` around demangled function symbols. Do not quote already quoted
63-
symbols.
62+
Add `"` `"` around demangled names. Do not quote already quoted names.
6463

6564
.. option:: --strip-underscore, -_
6665

@@ -69,7 +68,7 @@ OPTIONS
6968

7069
.. option:: --types, -t
7170

72-
Attempt to demangle names as type names as well as function names.
71+
Attempt to demangle names as type names as well as symbol names.
7372

7473
.. option:: --version
7574

llvm/tools/llvm-cxxfilt/Opts.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ multiclass Eq<string name, string help> {
1515
}
1616

1717
def help : FF<"help", "Display this help">;
18-
def quote : FF<"quote", "Quote demangled function names with \" \" if not already quoted">;
18+
def quote : FF<"quote", "Quote demangled names with \" \" if not already quoted">;
1919
defm strip_underscore : BB<"strip-underscore", "Strip the leading underscore", "Don't strip the leading underscore">;
20-
def types : FF<"types", "Attempt to demangle types as well as function names">;
20+
def types : FF<"types", "Attempt to demangle types as well as symbol names">;
2121
def no_params : FF<"no-params", "Skip function parameters and return types">;
2222
def version : FF<"version", "Display the version">;
2323

0 commit comments

Comments
 (0)