pygccxml
2.2.1
  • Download & Install
  • Examples
    • Setting up pygccxml and parsing c/c++ code
    • First examples
    • Advanced examples
      • Elaborated type specifiers
      • Function pointers
      • Caching
      • Print all declarations
        • C++ header file
        • GCC-XML generated file
        • Python API usage example
        • Output
  • FAQ
  • API
  • Building the documentation
  • Declarations query API
  • Design overview
  • Who is using pygccxml?
  • C++ Reflection
  • Releasing
  • History and Credits
  • GCC-XML 0.7 → 0.9 upgrade issues (Legacy)
pygccxml
  • »
  • Examples »
  • Print all declarations
  • View page source

Print all declarations¶

This example prints all declarations found in example.hpp file.

For every class, it prints it’s base and derived classes.

The example consists from few files:

  • C++ header file
  • GCC-XML generated file
  • Python API usage example
  • Output
Previous Next

© Copyright 2014-2021, Insight Software Consortium.

Built with Sphinx using a theme provided by Read the Docs.