How does one get the actual function names from these output

为君一笑 提交于 2019-12-05 03:39:38
Daniel Frey

These are mangled C++ symbols, use c++filt in a shell to demangle it:

> c++filt _ZN7UtilLib11ProgressBarC2EjdRSo
UtilLib::ProgressBar::ProgressBar(unsigned int, double, std::basic_ostream<char, std::char_traits<char> >&)

Also, since you seem to use genhtml, check out the --demangle-cpp option to do the demangling automatically for you.

Note that the compiler emits two implementations for the ctor you wrote, using --demangle-cpp will hide the difference which is visible only in the mangled symbol name. To understand what the compiler is doing, have a look here.

Use c++filt, like this:

 $c++filt -n _ZN7UtilLib11ProgressBarC2EjdRSo

which outputs:

 UtilLib::ProgressBar::ProgressBar(unsigned int, double, std::basic_ostream<char, std::char_traits<char> >&)
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!