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

Reify libclang documentation AST (#26) #227

Merged
merged 2 commits into from
Oct 24, 2024
Merged

Reify libclang documentation AST (#26) #227

merged 2 commits into from
Oct 24, 2024

Conversation

TravisCardwell
Copy link
Collaborator

@TravisCardwell TravisCardwell force-pushed the comments-reify branch 2 times, most recently from 1ebbb43 to fbd1202 Compare October 23, 2024 23:27
Copy link
Collaborator

@edsko edsko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TravisCardwell feel free to merge this once the changes that we discussed are in.

We decided against lenient parsing of `libclang` comments and now throw
an error upon encountering an unexpected comment kind, such as block
content within inline content.

We will of course need to test this against various real-world code.
Error messages include the cursor display name, the file name, and the
extent.  We can investigate the `libclang` comment AST for any errors
using the `clang-ast-dump` utility.

Note that this internal module is not used anywhere yet, so it is
therefore untested.  I will test it when returning to the documentation
task.
@TravisCardwell TravisCardwell merged commit 501a5d9 into main Oct 24, 2024
7 checks passed
@TravisCardwell TravisCardwell deleted the comments-reify branch October 24, 2024 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants