the commit message from r253909 reads:
Make clang_Cursor_getMangling not mangle if the declaration isn't mangled
Right now clang_Cursor_getMangling will attempt to mangle any
declaration, even if the declaration isn't mangled (extern C). This
results in a partially mangled name which isn't useful for much. This
patch makes clang_Cursor_getMangling return an empty string if the
declaration isn't mangled.
But the code looks like it is handling only the visibility attribute
of symbols. Where is the real r253909?
PS: The mail from the original author does not work anymore: Michael