mstange / msvc-demangler-rust

A rust library that demangles / undecorates C++ symbols mangled by MSVC
Other
42 stars 13 forks source link

Maybe allow () instead of (void) in the parameters #67

Open mstange opened 3 years ago

mstange commented 3 years ago

?AddRef@nsUrlClassifierStreamUpdater@@W7EAAKXZ demangles to nsUrlClassifierStreamUpdater::AddRef(void) . It would be nice if it demangled to nsUrlClassifierStreamUpdater::AddRef() instead. Maybe with a new flag.

I'm currently using the following flags:

        let flags = DemangleFlags::NO_ACCESS_SPECIFIERS
            | DemangleFlags::NO_FUNCTION_RETURNS
            | DemangleFlags::NO_MEMBER_TYPE
            | DemangleFlags::NO_MS_KEYWORDS
            | DemangleFlags::NO_THISTYPE
            | DemangleFlags::NO_CLASS_TYPE
            | DemangleFlags::SPACE_AFTER_COMMA
            | DemangleFlags::HUG_TYPE;