pygccxml is a specialized XML reader that reads the output from CastXML or GCCXML. It provides a simple framework to navigate C++ declarations, using Python classes.
Clone or download
praetorian20 and iMichka Add support for -std=c++17 & -std=c++2a flag
gcc/clang C++ standard version flags now support the -std=c++17 &
-std=c++2a flags, along with their "gnu" counterparts.

Unused `is_cxx*` functions have been deleted.
Latest commit 2b1efbb Jul 7, 2018

README.rst

pygccxml

Linux and Mac tests status Windows tests status Code coverage status Documentation status

pygccxml is a specialized XML reader that reads the output from CastXML. It provides a simple framework to navigate C++ declarations, using Python classes.

Using pygccxml you can:

  • Parse C++ source code
  • Create a code generator
  • Generate UML diagrams
  • Build code analyzers
  • ...

Installation

Install instructions can be found here.

Compatibility

pygccxml is compatible with Python 2.7, 3.4, 3.5, pypy and pypy3.

Documentation and examples

The documentation can be found here, examples can be found here.

If you want to know more about the API provided by pygccxml, read the query interface document or the API documentation.

A FAQ is also available and may answer some of your questions.

License

Boost Software License

Contact us

You can contact us through the CastXML mailing list.

For issues with pygccxml you can open an issue here.

Branches

The stable version can be found on the master branch.

The develop branch contains the latest improvements but can be unstable. Pull Requests should be done on the develop branch.

Testing and code coverage

You can find the Mac and Linux builds here. The Windows builds are located here.

Running the test suite is done with:

python3 -m unittests.test_all

Code coverage is also available. It is automatically updated after each commit and can be found here.