-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Announcement: EOL of cppast #173
Comments
Do you know of a way to get the macro defs? AFAIK the JSON dump still doesn't output these. |
I really understand your choice, and this is usually the lifecycle of open source projects. |
You can use
cppast will continue to work as well as it does right now. If that's fine, you don't need to do anything. Alternatively, you can volunteer to maintain it - I'll happily transfer ownership.
You need to invoke clang on all translation units yourself. I realize that there is value in a tool built on top of clang's JSON dump - I've started it in the |
The project in current status is stable IMHO, so stopping adding features is reasonable but neglecting bug fixes renders the main branch obsolete.
Newer versions of clang (16.0.0+) are breaking the tests.
Thanks for your efforts anyway. |
I'm a cppast user and I tried to switch to Clang ast-dump, Clang takes about ten seconds to generate a 400MB json of 8M lines (almost exclusively made of implicit declarations and included headers, and about 10k lines for the file). So I think I'll just stick to cppast 😄 |
I think cppast has reached the end of its usefulness.
So I recommend everybody that is still using cppast to migrate over to the AST clang dump. Running
clang++ -fsyntax-only -Xclang -ast-dump=json file.cpp
will output the AST as JSON, which can then be trivially parsed using e.g. python to do whatever is necessary. The only downside is that clang doesn't guarantee stability of the AST output.So unless someone is willing to step up and maintain cppast by 2023-08-01 I will archive the repository. Thanks for all the stars and users and I'm sorry if I've let you down.
The text was updated successfully, but these errors were encountered: