-
Notifications
You must be signed in to change notification settings - Fork 13
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
update to new Clang.jl #121
Conversation
Clang.jl is patched https://github.com/melonedo/Clang.jl/tree/dump-doc-patch
Great, the two issues mentioned above were solved by integrating #122 from @melonedo in this branch. Now both the GDAL.jl and ArchGDAL.jl tests are passing on this branch. I also rebased it on top of master and added the Only when I run wrap.jl, the amount of docstrings seems to be much less than when @melonedo runs it. For instance this docstring vanished: Lines 38 to 53 in b54e657
Lines 36 to 39 in e93d3df
@melonedo if you run wrap.jl on this branch, do the docstrings come back? Is the issue perhaps due to differences in the doxygen.xml we use? I use this one currently, which should be generated with the same GDAL version that we currently wrap, 3.2. Both however sometimes seem to have too many empty lines, like here between the parameters: Lines 764 to 779 in e93d3df
|
You can run add_doc.jl to add the docstrings. Without this, you can only see documentation included in the headers. Now it's harder to simply inject docstrings, so I created a script to do it. Of course, that loses some comments about function pointers. Parameters now has an empty line is because sometimes parameters may contain more than one paragraphs, in that case an empty line is necessary. I think I can improve the docstring generation here to only add empty lines when necessary. |
Ah of course, thanks. I missed that add_docs.jl was not run automatically. Now calling it from wrap.jl in e995f29.
I understand. It's definitely not needed for merging this. |
Continues the work in #120.
I wasn't able yet to run the Clang.jl generator yet, so this just moves in the bindings from #120. Still needs some cleanup, but I'd like to get it working first.
Some constants that were present before seem to be missing, like
GDAL.jl/src/common.jl
Line 537 in d44dc73
And before we had
GDAL.jl/src/common.jl
Line 1168 in d44dc73
Which now became
mutable struct OGRGeomFieldDefnHS end
. Probably it looks like changing these settings may be able to help here.Though it could also be due to some of the not-so-nice rewriting we did here.
cc @melonedo @Gnimuc