RIOT icon indicating copy to clipboard operation
RIOT copied to clipboard

doc: atmega avr-libc-extra creates unwanted doxygen

Open LudwigKnuepfer opened this issue 12 years ago • 9 comments

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).

LudwigKnuepfer avatar Sep 06 '14 05:09 LudwigKnuepfer

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?

N8Fear avatar Sep 06 '14 09:09 N8Fear

I think we want to keep some of the cpu and board documentation, i.e. at least what we wrote ourselves.

LudwigKnuepfer avatar Sep 06 '14 09:09 LudwigKnuepfer

What about http://www.stack.nl/~dimitri/doxygen/manual/faq.html#faq_code ?

LudwigKnuepfer avatar Sep 06 '14 09:09 LudwigKnuepfer

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...

N8Fear avatar Sep 06 '14 09:09 N8Fear

I'm fine with excluding just avr-lib-extra through riot.doxyfile as well.

LudwigKnuepfer avatar Sep 06 '14 10:09 LudwigKnuepfer

Can I close this after #1642 got merged?

N8Fear avatar Sep 06 '14 13:09 N8Fear

Yes

LudwigKnuepfer avatar Sep 06 '14 13:09 LudwigKnuepfer

Next time, you can add "Closes #issue-id" to the PR description. It should get closed automatically then.

LudwigKnuepfer avatar Sep 06 '14 13:09 LudwigKnuepfer

Ok - I will try to remember that.

N8Fear avatar Sep 06 '14 13:09 N8Fear