1 llvm-cxxfilt - LLVM symbol name demangler
2 =========================================
4 .. program:: llvm-cxxfilt
9 :program:`llvm-cxxfilt` [*options*] [*mangled names...*]
14 :program:`llvm-cxxfilt` is a symbol demangler that can be used as a replacement
15 for the GNU :program:`c++filt` tool. It takes a series of symbol names and
16 prints their demangled form on the standard output stream. If a name cannot be
17 demangled, it is simply printed as is.
19 If no names are specified on the command-line, names are read interactively from
20 the standard input stream. When reading names from standard input, each input
21 line is split on characters that are not part of valid Itanium name manglings,
22 i.e. characters that are not alphanumeric, '.', '$', or '_'. Separators between
23 names are copied to the output as is.
28 .. code-block:: console
30 $ llvm-cxxfilt _Z3foov _Z3bari not_mangled
35 | _Z3foov *** _Z3bari *** not_mangled |
36 $ llvm-cxxfilt < input.txt
37 | foo() *** bar(int) *** not_mangled |
42 .. option:: --format=<value>, -s
44 Mangling scheme to assume. Valid values are ``auto`` (default, auto-detect the
45 style) and ``gnu`` (assume GNU/Itanium style).
47 .. option:: --help, -h
49 Print a summary of command line options.
51 .. option:: --no-params, -p
53 Do not demangle function parameters or return types.
55 .. option:: --no-strip-underscore, -n
57 Do not strip a leading underscore. This is the default for all platforms
58 except Mach-O based hosts.
62 Add `"` `"` around demangled names. Do not quote already quoted names.
64 .. option:: --strip-underscore, -_
66 Strip a single leading underscore, if present, from each input name before
67 demangling. On by default on Mach-O based platforms.
69 .. option:: --types, -t
71 Attempt to demangle names as type names as well as symbol names.
75 Display the version of the :program:`llvm-cxxfilt` executable.
79 Read command-line options from response file `<FILE>`.
84 :program:`llvm-cxxfilt` returns 0 unless it encounters a usage error, in which
85 case a non-zero exit code is returned.