Open gmarull opened 3 years ago
cc: @carlescufi @nashif
cc: @carlescufi @nashif
Thanks for raising this. I think we should do this in the context of the "Guidelines" rework that we've started discussing in the API meetings. First come up with a standardized set of guidelines and then go through the APIs to enforce them. This of course would include the doxygen and style inconsistencies that you refer to.
same #17616
@carlescufi I suggest to put this on the agenda of next API meeting if possible. I'm happy to support cleaning up some header files once we have decided on a strategy.
Even if we can't immediately come up with a complete "Guideline", just being clear about the point whether internal driver APIs should be exposed in the docs would be very useful already. (in my opinion they should not)
API meeting:
Use can.h
as a reference, @henrikbrixandersen to update it according to the
Draft guidelines for Doxygen usage:
@typedef
not to be used unless necessarycan.h
. So this means adding them in COND_HIDDEN
and using typedefs
Is your enhancement proposal related to a problem? Please describe.
Driver API headers, i.e.
include/drivers/*.h
files, have slight differences when it comes to Doxygen docstrings:@typedef
directive (https://github.com/zephyrproject-rtos/zephyr/blob/master/include/drivers/lora.h#L65)In my opinion one of the key points of high-quality code is homogeneity when it comes to coding conventions, including docstrings.
Describe the solution you'd like
Describe alternatives you've considered
N/A
Additional context
N/A