Closed aminya closed 3 years ago
Rebase?
You should release a new version of libclang and bump the version in dub.json.
You should release a new version of libclang and bump the version in dub.json.
Good points.
The last libclang changes (almost certainly the attempt to fix memory leaks) cause dpp's tests to crash.
The last libclang changes (almost certainly the attempt to fix memory leaks) cause dpp's tests to crash.
We should open an issue in libclang to find the reason for the crash. Allowing memory leaks to prevent a crash should be just a temporary work around 🤔
The last libclang changes (almost certainly the attempt to fix memory leaks) cause dpp's tests to crash.
We should open an issue in libclang to find the reason for the crash. Allowing memory leaks to prevent a crash should be just a temporary work around thinking
If you wish. It's not a high priority for me to fix it though.
Dpp now preserves the documentation which means the editors will show data tips when the bound functions are used. :tada:
Fixed issues
Fixes #140
Description
Preserve the documentation on:
Verification
All tests including the new ones pass:
Examples
Sample header file:
test.dpp
test.hpp
The output:
test.d
Future benefits
This also paves the way for optionally using the annotations in the docs to make better bindings. For example, if a C function says that one of the parameters is
@param[in]
, then we can also make that parameterin
inside the D header. There are a bunch of these special Doxygen attributes that we can potentially use: https://www.doxygen.nl/manual/commands.html