[PATCH] D58416: [llvm-cxxfilt] Split and demangle stdin input on certain non-alphanumerics.

Matt Davis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 19 15:53:24 PST 2019


mattd created this revision.
mattd added reviewers: jhenderson, tejohnson, compnerd.
Herald added subscribers: llvm-commits, erik.pilkington.
Herald added a project: LLVM.

This patch attempts to replicate GNU c++-filt behavior when splitting stdin input for demangling.

Previously, cxx-filt would split input only on spaces.  Each delimited item is then demangled. 
>From what I have tested, GNU c++filt also splits input on any character that does not make
up the mangled name (notably commas, but also a large set of non-alphanumeric characters).

This patch splits stdin input on any character that does not belong to the Itanium mangling
format (since Itanium is currently the only supported format in llvm-cxxfilt).

This is an update to PR39990


https://reviews.llvm.org/D58416

Files:
  llvm/test/tools/llvm-cxxfilt/delimiters.test
  llvm/tools/llvm-cxxfilt/llvm-cxxfilt.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58416.187457.patch
Type: text/x-patch
Size: 4033 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190219/a7f930d2/attachment.bin>


More information about the llvm-commits mailing list