> On Jul 25, 2017, at 4:44 PM, Ethan Arbuckle via swift-dev 
> <swift-dev@swift.org> wrote:
> 
> The Swift runtime exports a function to demangle Swift symbols, 
> swift_demangle. See source: 
> https://github.com/apple/swift/blob/32d15d8539c43ff26b599f7c4a08a79a10d4bf98/stdlib/public/runtime/Reflection.mm#L1200
>  
> <https://github.com/apple/swift/blob/32d15d8539c43ff26b599f7c4a08a79a10d4bf98/stdlib/public/runtime/Reflection.mm#L1200>.
> This function uses the default mangling options, as defined by 
> `Demangle::DemangleOptions()`.
> I also see there is an argument called `flags`, which I believe eventually 
> will allow demangling options to be changed. However, this is not yet 
> implemented. 
> The format for the demangled symbols with I would like it, ideally, 
> “Module.Class.Method”. The default options include a variety of other things, 
> including argument count and types. What is my best approach for getting 
> these desired demangling options? 

I think the best way is to define and implement the flags for swift_demangle.

> 
> _______________________________________________
> swift-dev mailing list
> swift-dev@swift.org <mailto:swift-dev@swift.org>
> https://lists.swift.org/mailman/listinfo/swift-dev 
> <https://lists.swift.org/mailman/listinfo/swift-dev>
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

Reply via email to