Skip to content

How is CppSharp compared to ClangSharp? #1779

Answered by tritao
iahung3 asked this question in Q&A
Discussion options

You must be logged in to vote

Let me start by saying that I haven't used ClangSharp, but I can speak a bit to some of the differences.

Parsing / AST

ClangSharp provides bindings to libclang, which is a C interface to Clang. We actually started binding to libclang in CppSharp but quickly found limitations when it came to more advanced C++ constructs like templates, and had to switch to the Clang C++ API, which is not stable, and at a higher maintenance burden, but provides anything you might need. We have even needed to sometimes go into private APIs to get some information like vtable layouts. Now, this was almost a decade ago, so maybe libclang already provides some of this information, I am not sure.

CppSharp starte…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by iahung3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants