pygccxml icon indicating copy to clipboard operation
pygccxml copied to clipboard

Request for plumbing comments through?

Open EricCousineau-TRI opened this issue 5 years ago • 3 comments

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

EricCousineau-TRI avatar Jul 30 '20 15:07 EricCousineau-TRI

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

wabscale avatar Jul 19 '24 18:07 wabscale

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 avatar Jul 20 '24 14:07 iMichka

(and I think we forgot to close this issue)

iMichka avatar Jul 20 '24 14:07 iMichka

Closing. Please open a new issue with a reproducible example

iMichka avatar Mar 11 '25 20:03 iMichka