LLVM-CXXFILT(1)

🌸 NAME 🌸

llvm-cxxfilt β€” LLVM symbol name demangler, and yes bestie, this is the LLVM-CXXFILT(1) manual page πŸ’…


πŸ› οΈ SYNOPSIS πŸ› οΈ

llvm-cxxfilt [options] [mangled names...]

✨ DESCRIPTION ✨

okay so llvm-cxxfilt is a symbol demangler, and it can literally be used as a replacement for the GNU c++filt tool. It takes a series of symbol names and prints their demangled form on the standard output stream. If a name can't be demangled, it is simply printed as is. no cap.

If no names are specified on the command-line, names are read interactively from the standard input stream. When reading names from standard input, each input line is split on characters that are not part of valid Itanium name manglings β€” i.e. characters that are not alphanumeric, ., $, or _. Separators between names are copied to the output as is. the way that works is lowkey iconic πŸ¦‹


🌈 EXAMPLE 🌈

$ llvm-cxxfilt _Z3foov _Z3bari not_mangled
foo()
bar(int)
not_mangled
$ cat input.txt
| _Z3foov *** _Z3bari *** not_mangled |
$ llvm-cxxfilt < input.txt
| foo() *** bar(int) *** not_mangled |

πŸ’– OPTIONS πŸ’–

  • --format=<value>, -s β€” Mangling scheme to assume. Valid values are auto (default, auto-detect the style) and gnu (assume GNU/Itanium style). pick your vibe ✨
  • --help, -h β€” Print a summary of command line options.
  • --no-params, -p β€” Do not demangle function parameters or return types.
  • --no-strip-underscore, -n β€” Do not strip a leading underscore. This is the default for all platforms except Mach-O based hosts.
  • --strip-underscore, -_ β€” Strip a single leading underscore, if present, from each input name before demangling. On by default on Mach-O based platforms.
  • --types, -t β€” Attempt to demangle names as type names as well as function names.
  • --version β€” Display the version of the llvm-cxxfilt executable.
  • @<FILE> β€” Read command-line options from response file <FILE>.

πŸ’€ EXIT STATUS πŸ’€

llvm-cxxfilt returns 0 unless it encounters a usage error, in which case a non-zero exit code is returned. periodt.


πŸŽ€ SEE ALSO πŸŽ€

llvm-nm(1)


πŸ‘‘ AUTHOR πŸ‘‘

Maintained by the LLVM Team (https://llvm.org/).


2003-2025, LLVM Project


signed off with love: source/version vibes are LLVM, page marker 19, dated 2025-01-17, filed under LLVM-CXXFILT(1) πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from