CastXML / pygccxml

pygccxml is a specialized XML reader that reads the output from CastXML. It provides a simple framework to navigate C++ declarations, using Python classes.
Boost Software License 1.0
133 stars 46 forks source link

Request for plumbing comments through? #128

Open EricCousineau-TRI opened 4 years ago

EricCousineau-TRI commented 4 years ago

Per the merge in https://github.com/CastXML/CastXML/pull/175, would it be possible to expose this here?

Similar to clang.cindex (relates #123), would it be possible to expose the API to get the source location (and possibly the source itself) for the comment?

See example usage here: https://github.com/RobotLocomotion/drake/blob/6afa9365ad7d873c8c272fe8b5cc5a5c47ada6f8/tools/workspace/pybind11/mkdoc.py#L200-L201

wabscale commented 4 months ago

Do you know if this ever made it through? I can see places in this codebase that seem to reference support for comments, but the objects seem to always remain unpopulated.

See src/pygccxml/declarations/comment.py

iMichka commented 4 months ago

Yes it was implemented with https://github.com/CastXML/pygccxml/pull/130.

Do you have a reproducible example I could try to help debug your issue?

iMichka commented 4 months ago

(and I think we forgot to close this issue)