Thank you Erik, I think, the new demangler might meet all the requirement I needed. I will try with it. BTW, does your code will sync with the cxa_demangler.cpp in the llvm runtime ? I notice that, the demangler in the llvm and llvm runtime look like the same for mostly,
No plans as of yet! I never planned to export the AST in this way, doing so would probably require some surgery (ie, make all the identifiers it uses reserved). I very recently landed r329951, which provides a simple opaque API to the AST for the copy of the demangler in llvm. Maybe this is enough for your use case? What kind of analysis are you planning on performing?