The c++filt utility is a filter that copies characters from file names or standard input to standard output, replacing all mangled names with their corresponding demangled names. You can use the filter directly with file name arguments, and the filter outputs the demangled names of all mangled names in the files; or you can use a shell command that inputs text, such as specific mangled names, and pipe it to the filter, so that the filter provides the demangled names of the names you specified.
c++filt command syntax .-------------. .--------------. V | V | >>-c++filt----+---------+-+----+----------+-+------------------>< '-options-' '-filename-'
You can specify one or more of the following options:
c++filt -m -w 40 functions.o
The output is displayed as follows:
C++ Symbol Mapping demangled: Mangled: Average::insertValue(double) insertValue__7AverageFd Average::getCount() getCount__7AverageFv Average::getTotal() getTotal__7AverageFv Average::getAverage() getAverage__7AverageFv
echo getAverage__7AverageFv | c++filt -s
The output is displayed as follows:
Average::getAverage()getAverage__7AverageFv