You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public void Parse()
{
var index = clang.createIndex(0, 0);
var unit = clang.parseTranslationUnit(index,"path",null, 0, out var unsavedFiles, 0, 0);
clang.disposeTranslationUnit(unit);
clang.disposeIndex(index);
}
The text was updated successfully, but these errors were encountered:
Unfortunately no news on C++ support. I'm not a C++ developer so it will be difficult for me to correctly write the parsing logic. So I am afraid I do not have the time available right now to dive into this :(
For what I know - C++ (and probably C too) is unparsable. I mean - to get the full picture of the code you probably need to complete what pre-processor does and then do entire lexing and mabe even part of compiling. The problem is probably with macros, pramgas and includes. Macros can contain code similar to basic C, but AFAIK the syntax is different. BUT - VS probably does that for us. It holds it somewhere and it's probable available via its API. So - I'd say impossible with parsing, but probably doable using VS API.
ClangSharp
Using libclang to Parse C++ (aka libclang 101)
The text was updated successfully, but these errors were encountered: