Chaste / cppwg

An automatic Python wrapper generator for C++ code.
BSD 3-Clause "New" or "Revised" License
46 stars 8 forks source link

List unwrapped classes #50

Closed kwabenantim closed 2 months ago

kwabenantim commented 3 months ago

Summary

Create a list of class declarations that are found in the input headers but are not specified for wrapping in package_info.yaml. This is useful in large projects for checking wrapper coverage.

Some classes may be purposefully excluded from wrapping -- it will be useful to have syntax to mark these classes in package_info.yaml.

Also, throw if a class specified in package_info.yaml is not declared in the input headers.

kwabenantim commented 2 months ago

The excluded setting can now be used in configuration to intentionally exclude classes from wrapping.

name: pyshapes
modules:
  - name: primitives
    classes:
      - name: Triangle
         excluded: True

Classes found in the source tree that are not marked for wrapping or exclusion will appear in logs as

Unknown class <class_name> from <file_name>

The --logfile command line option can now be used to output logs to file.