llvm-cxxfilt.rst 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. llvm-cxxfilt - LLVM symbol name demangler
  2. =========================================
  3. .. program:: llvm-cxxfilt
  4. SYNOPSIS
  5. --------
  6. :program:`llvm-cxxfilt` [*options*] [*mangled names...*]
  7. DESCRIPTION
  8. -----------
  9. :program:`llvm-cxxfilt` is a symbol demangler that can be used as a replacement
  10. for the GNU :program:`c++filt` tool. It takes a series of symbol names and
  11. prints their demangled form on the standard output stream. If a name cannot be
  12. demangled, it is simply printed as is.
  13. If no names are specified on the command-line, names are read interactively from
  14. the standard input stream. When reading names from standard input, each input
  15. line is split on characters that are not part of valid Itanium name manglings,
  16. i.e. characters that are not alphanumeric, '.', '$', or '_'. Separators between
  17. names are copied to the output as is.
  18. EXAMPLE
  19. -------
  20. .. code-block:: console
  21. $ llvm-cxxfilt _Z3foov _Z3bari not_mangled
  22. foo()
  23. bar(int)
  24. not_mangled
  25. $ cat input.txt
  26. | _Z3foov *** _Z3bari *** not_mangled |
  27. $ llvm-cxxfilt < input.txt
  28. | foo() *** bar(int) *** not_mangled |
  29. OPTIONS
  30. -------
  31. .. option:: --format=<value>, -s
  32. Mangling scheme to assume. Valid values are ``auto`` (default, auto-detect the
  33. style) and ``gnu`` (assume GNU/Itanium style).
  34. .. option:: --help, -h
  35. Print a summary of command line options.
  36. .. option:: --help-list
  37. Print an uncategorized summary of command line options.
  38. .. option:: --strip-underscore, -_
  39. Discard a single leading underscore, if present, from each input name before
  40. demangling.
  41. .. option:: --types, -t
  42. Attempt to demangle names as type names as well as function names.
  43. .. option:: --version
  44. Display the version of the :program:`llvm-cxxfilt` executable.
  45. .. option:: @<FILE>
  46. Read command-line options from response file `<FILE>`.
  47. EXIT STATUS
  48. -----------
  49. :program:`llvm-cxxfilt` returns 0 unless it encounters a usage error, in which
  50. case a non-zero exit code is returned.
  51. SEE ALSO
  52. --------
  53. :manpage:`llvm-nm(1)`