]> granicus.if.org Git - llvm/commit
[llvm-cxxfilt] Split and demangle stdin input
authorMatt Davis <Matthew.Davis@sony.com>
Mon, 11 Feb 2019 20:30:53 +0000 (20:30 +0000)
committerMatt Davis <Matthew.Davis@sony.com>
Mon, 11 Feb 2019 20:30:53 +0000 (20:30 +0000)
commit1369773f89721a848c0464386359ee76bc53dc84
treea935de200bdac8f06de1eb50160c5f0896fa822f
parentbae4b6720872e02e1e8045f2130c452dc7c9383f
[llvm-cxxfilt] Split and demangle stdin input

Summary:
Originally, llvm-cxxfilt would treat a line as a single mangled item to be demangled.
If a mangled name appears in the middle of that string, that name would not be demangled.

GNU c++filt  splits and demangles every word  in a  string that is piped to it via stdin.
Prior to this patch llvm-cxxfilt would never split strings  piped to it.
This patch replicates the GNU behavior and splits strings that are piped to it via stdin.

This fixes PR39990

Reviewers: compnerd, jhenderson, davide

Reviewed By: compnerd, jhenderson

Subscribers: erik.pilkington, jhenderson, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D57350

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353743 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-cxxfilt/simple.test
test/tools/llvm-cxxfilt/types.test
tools/llvm-cxxfilt/llvm-cxxfilt.cpp