Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optionally attach UDA @loc and @cpp_comment to C++ declarations #73

Open
timotheecour opened this issue Jan 13, 2018 · 1 comment
Open

Comments

@timotheecour
Copy link
Collaborator

timotheecour commented Jan 13, 2018

this would allow client code to tell where a declaration came from, etc (and could be itself used in documentation generators to make use of these UDA's)

EDIT: we could also modify the new __traits(documentation, ...) to read these UDA

@Syniurge
Copy link
Owner

Good idea. And this is also a nice small project if you or someone else wish to get familiarized with the code of Calypso and LDC. Clang provides the location for each declaration, and assigning comments to the nearby declaration shouldn't be too hard, there are Clang-based documentation generators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants