-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add Doxygen bindings and clang-ast-dump
#215
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For the record: this will need rebasing after the reorganization in #216 (we discussed this prior to the refactoring). |
All `libclang` parameter names are capitalized. The header documentation is updated.
This commit is a squashed version of a number of previous commits, rebased to work with a recent redesign of `Fold` as well as the reorganized module hierarchy. `FoldM` uses `MonadIO`, and I refactored the code to call `liftIO` minimizing changes. Now that we can use a `Reader`, it is possible to track indentation within the `Reader` environment, using `local` for indentation, but I have not implemented that. The new version of `Fold` no longer provides `parent`, as the parent cursor can be queried using the API. I rewrote the code to query both the semantic and lexical parents. When they are equal and are not the target file, just "parent" is displayed. Otherwise, "semantic parent" and "lexical parent" are displayed separately.
TravisCardwell
force-pushed
the
doxygen
branch
from
October 11, 2024 08:02
3317b34
to
55b4b26
Compare
Looks good! Thank you for your attention to detail, much appreciated :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR includes:
clang-c/Documentation.h
except for the following:CXComment.ASTNode
andCXComment.TranslationUnit
(not needed)CXAPISet
,clang_createAPISet
, andclang_disposeAPISet
(not needed)clang_getSymbolGraphForUSR
andclang_getSymbolGraphForCursor
(not needed)clang-ast-dump
, as an executable in thehs-bindgen-libclang
package.The PR does not include reified Haskell types for the documentation cursor types. I will do that in a separate PR.
I have tested locally against all supported GHC versions, to make sure that it works with the configured dependency bounds.
Please feel free to change
clang-ast-dump
as desired, of course. It should be easy to add support for more cursor kinds, options, etc.After merge, #212 should be ready to close.