-
Notifications
You must be signed in to change notification settings - Fork 3k
[drivers] Update doxygen errors #4111
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
Conversation
stop using scope for \addtogroup. It was placing class methods into the group documentation instead of the class documentation. The new style is to explicitly tag the class as @InGroup. This new method will allow the class to be linked in the group page, and the class page will contain the detailed documentation of the class methods.
@sg- Thanks for the PR. Also, we recommend our contributors follow Chris Beam’s seven rules of great commit messages to keep the commit history clear. To match this format, please change your PR title to imperative mood ("Updates" to "Update"), and delete the period at the end. Thanks for your contributions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs !
/morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
@geky is there something we can do to make doxygen and MBED_DEPRECATED play nicely together? This can easily be validated in the online IDE by taking a header and generating docs for it in an example program or library |
I'm not sure there's a "trick" we can do in the source code. The MBED_DEPRECATED also has to be compatible with function and template declarations across the three toolchains. It does look like there's a config option to skip function-like macros: That should take care of most of the attributes in mbed_toolchain.h. I'm guess it's currently off? Not sure how to change the doxygen config. If that doesn't work there are other doxygen configuration options for specifying macros during doxygen generation, so we may be able to force the MBED_DEPRECATED to expand to nothing. |
@geky If
|
@geky @pan- Thanks for the suggestions but they didn't seem to work. To be more clear, the problems is not with the macro definition but its use in the headers. https://github.com/ARMmbed/mbed-os/blob/master/drivers/Ticker.h#L90...L93 Best solution I could come up with has been to remove the extra doxygen comment * to exclude the docs or maybe I misinterpreted your suggestions. Here is what I'm trying to remove Given this is for our API documentation I kinda like the idea of removing the extra * from private members too and maybe protected. Anything that you wouldn't expect a developer to be using. The private and protected members should still be documented, just not rendered as part of doxygen. Thoughts? |
a4d7a89
to
95a5219
Compare
@AnotherButler thanks for the tip. What do you think about 95a5219 |
Oh, that works if we just want to remove the documentation. It seems like a reasonable pragmatic approach to me. |
We still need a DEPRECIATED section of the API guide but this could be hand coded... |
I agree 100%
I guess doxygen is not able to find the correct include and therefore cannot expand the macro. I obtain the expected result: With this preprocessor settings:
Other predefinitions of macros might be required, I didn't run doxygen over the complete mbed tree. |
Best way to enable MBED_DEPRICATED APIs to be properly rendered requires using the doxygen preprocessor. This means all device_has labels need to also be defined or the default DOXYGEN_ONLY label applied to the API headers which this commit does. ASYNCH currently exluded.
attach members not using Callback class are not compatible with const and volatile types. This was missed when callback was initially added
platform/CircularBuffer.h
Outdated
|
||
/** Templated Circular buffer class | ||
* | ||
* @Note Synchronization level: Interrupt safe | ||
* @ingroup plaftorm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change "plaftorm" to "platform"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my bad.
And this is a test build to track the progress of: https://docs.mbed.com/projects/sam-doxy-test/ |
All fields are strings, not arrays. Update the PREDEFINED and EXCLUDE_PATTERNS fields.
@tommikas Not sure what happened to pr-head here... |
The build passed but for some reason the status didn't get updated here. I'll retrigger the job. |
/morph test |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputTest failed! |
/morph test |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputTest failed! |
/morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
Changed release version as this could break existing docs for 5.4 (I think RTOS is still excluded etc.) |
ooo that change may have come too late, will check if this has already gone into 5.4.4. |
#Updates doxygen errors in documentation for code in the drivers/ directory.
Notes:
Many more commits coming and still some errors with the way we present MBED_DEPRECATED
Status
READY