Important command to demangle C++ code in your pasteboard

Cool command line I can run from DTerm on the contents in my clipboard, outputted from Xcode:

pbpaste | c++filt | mate

This command will take my clipboard contents, which were originally created from Xcode, pass that to the c++filt command and then create a new file in TextMate with the resulting contents.

Leave a Reply

Your email address will not be published. Required fields are marked *