Is there a way to generate the mangled name of a C++ function on the command line? I'm looking for something that is the reverse of c++filt, i.e., given input GSemaphore::Unlock() it should return _ZN10GSemaphore6UnlockEv. I'm looking for a solution that works on osx.
Asked
Active
Viewed 32 times
0
JRR
- 5,694
- 5
- 35
- 57
-
In order to mangle a name, you need a program that contains that name. Mangling will be different for different programs. See [this](https://stackoverflow.com/questions/11335624/what-is-linux-utility-to-mangle-a-c-symbol-name). – n. 1.8e9-where's-my-share m. Jul 11 '21 at 07:21