This is a utility class for parsing the current call stack in scope. This can be very useful for logging so that you automatically prefix logs with contextual information.
CallStackParser
originally is theCallStackAnalyser
class by @mitchymitch . I have just renamed and adopted this class for Swift 4.1. Original source: https://github.com/nurun/swiftcallstacktrace .- String extensions posted by @aleclarson at https://stackoverflow.com/a/24144365 .
CwlDemangler
created by @mattgallagher and placed here: https://github.com/mattgallagher/CwlDemangle/tree/master/CwlDemangle