Search code examples
c++llvmname-manglingdemangler

Does LLVM have a tool for demangling Microsoft C++ mangling?


I use LLVM on windows and I wonder if there is a command line tool to demangle MSVC C++ mangling. I am talking about command line tool like llvm-cxxfilt.

I see some commits in LLVM, but not sure if those are exposed as some tool or it is just C++ API.

I tried looking for llvm-undname mentioned in those commits in my LLVM install folder, but found nothing.


Solution

  • Visual Studio comes with a command line tool called undname.exe which will undecorate (demangle) the name.

    q.v. https://learn.microsoft.com/en-us/cpp/build/reference/decorated-names?view=msvc-160