doc: atmega avr-libc-extra creates unwanted doxygen
These show up in the top-level doxygen for RIOT now:
<errno.h>: System Errors
<time.h>: Time
I'd just throw out the parts of their doxygen that lead to this (\defgroup, possibly more).
That solutions works only in parts: The doxygen from the headers is removed as expected but doxygen still evaluates and uses the structs defined in the headers.
If I want to to remove any reference I seemingly have to add it to EXCLUDE_PATTERN in doc/doxygen/riot.doxyfile.
In that case I'd propose something more general though, like: EXCLUDE_PATTERNS = */board/*/tools/* */cpu/*/extern/*.
This way it wouldn't be just for this issue but could be used on other cpus if the need to include external headers.
Any comments?
I think we want to keep some of the cpu and board documentation, i.e. at least what we wrote ourselves.
What about http://www.stack.nl/~dimitri/doxygen/manual/faq.html#faq_code ?
That would work too.
The way of using \cond ... \endcond would be easy.
The other option of using the preprocessor and a marker would require to touch both the riot.doxyfile to include the "marker" and each file in which something shouldn't be included by doxygen. Additionally it makes the code harder to read (IMHO).
Blacklisting the entire subdirectory would have the benefit of leaving the headers from upstream untouched (which would make it possible to diff it against upstream to see changes).
Anyways, I guess I'll prepare a PR with the \cond ...\endcond way later...
I'm fine with excluding just avr-lib-extra through riot.doxyfile as well.
Can I close this after #1642 got merged?
Yes
Next time, you can add "Closes #issue-id" to the PR description. It should get closed automatically then.
Ok - I will try to remember that.