Devana is a python tool that make it easy to parsing, format, transform and generate C++ (or C) code. This tool uses libclang to parse the code. Fundamental problems, bugs and missing features of libclang are fixed in Devann's internal code.
Please note that Devana focuses on the header-level code e.g. class and functions definitions, templates resolving, typedefs and includes. Control statements, arithmetics operations etc. (pure body of functions) are supported as access to raw string field "body". It is planned to introduce more control over this type of code in future versions.
Important: Devana is still under development. At the moment, parsing and basic code generation is available (almost full coverage of development plans). Please check roadmap.
Devana is published on PyPI and can be installed from there:
pip install -U devana
If you wish to install Devana for development purposes, refer to the contributors guide.
How to start
You can find the complete guide in this section of the documentation.
Demo applications are located in project repository inside demo folder.
Documentation is available from GitHub Pages.
Please check contributing guide for take more details about contributing this project.
For now, the most wanted help is bugreports, bugfix, writing test and parser features completion. You can write e-mail to me directly with question about help.
Continuous testing is GitHub Actions. For information on running tests locally, refer to the contributors guide.
A detailed list of missing functionalities and planned features can be found in the documentation.