Hi Eli,

+/**
+ * \brief Represents the different available ABIs for name mangling.
+ */
+typedef enum { CXMangleABI_Itanium = 0, CXMangleABI_Microsoft = 1 } 
CXMangleABI;
+
+/**
+ * \brief Retrieve the CXString representing the mangled name of the cursor.
+ */
+CINDEX_LINKAGE CXString clang_Cursor_getMangling(CXCursor, CXMangleABI);

Why aren’t you just using that appropriate ABI of the translation unit that was 
created ? So to get the MangleContext you can just call 
ASTContext::createMangleContext().

> On Jul 28, 2014, at 6:19 AM, Eli Bendersky <[email protected]> wrote:
> 
> 
> 
> 
> On Thu, Jul 24, 2014 at 5:48 PM, Eli Bendersky <[email protected]> wrote:
> Hi rsmith, rengolin,
> 
> Exposes a C API to name mangling for a given cursor.
> 
> This is loosely based on https://gist.github.com/tritao/2766291, and was 
> previously discussed on cfe-dev: 
> http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-June/037577.html
> 
> Adding testing capability via c-index-test.
> 
> http://reviews.llvm.org/D4663
> 
> Files:
>   include/clang-c/Index.h
>   test/Index/print-mangled-name.cpp
>   tools/c-index-test/c-index-test.c
>   tools/libclang/CIndex.cpp
>   tools/libclang/libclang.exports
> 
> Ping ?
> 
> 
> _______________________________________________
> cfe-commits mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to