Doxygen is fussy about what documentation it extracts when not EXTRACT_ALL
.
Structures and classes are generally okay; functions and variables not so.
To get documentation extracted for functions and variables at the file-level scope, there needs to be a @file
documentation element in that file:
/** @file frobulator.c
* Optionally describe the file...
*/
/** @brief My Frobulator.
*/
void frobulator () { ... }
This is for both headers and source files.
For functions and variables at namespace scope, the namespace also needs to be documented with @namespace
or in situ. Unlike other elements, namespaces have no "single" point of declaration where documentation can be placed. I usually end up creating a separate .dox
file to contain @namespace
docs in C comment blocks.