NoSenseEtAl
NoSenseEtAl

Reputation: 30038

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.

Upvotes: 2

Views: 904

Answers (2)

Eljay
Eljay

Reputation: 5321

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

Upvotes: 2

JDługosz
JDługosz

Reputation: 5652

Google shows me: https://reviews.llvm.org/D49552
as well as other useful links.

Add a Microsoft Demangler library and utility.

So this feature was added in July of 2018 to the LLVM project.

Upvotes: 0

Related Questions