-
Notifications
You must be signed in to change notification settings - Fork 66
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
CXX preprocessor #688
Comments
Thanks for the write up. I would avoid the term annotation. Basically it seems that |
Thanks for the hint! That was not clear to me. |
I had some thoughts on tree-sitter and I think, I see more clear now. |
cc @fwendland for Codyze |
For the tree-sitter language frontend (#604 #608) we need to take care of the preprocessor our self.
To update the location properties accordingly, we want to do the preprocessing in the kotlintree. The preprocessor operates on the tree-sitter parse tree, resolves macros and updates the location property. The parse tee will then be handed over to the cpg.
In the future we might also support loading of already preprocessed code as generated with
gcc -E
(see #719).The following example should outline the basic features and challenges for the preprocessor:
main.c
config.h
Run gcc preprocessor:
Create clang AST:
The text was updated successfully, but these errors were encountered: