I have a main.cpp that contains a struct, some global constants and a main function.
I ran doxygen and the only documentation I am getting in the output index.html i
From the online manual in the "Documentation at other places" section: http://www.doxygen.nl/manual/docblocks.html#specialblock
"Doxygen allows you to put your documentation blocks practically anywhere (the exception is inside the body of a function or inside a normal C style comment block)."
This makes some sense because the nitty gritty of HOW a function works (its implementation) is usually not desired. I believe the purpose of doxygen is to assist in documentation that is easily searchable to allow coders to find where things are and look up what they do (and what parameters are passed into it, what it returns, etc) to learn how to use them, but not how its actually implemented. That would require actually looking at the function source (which is also available in the doxygen generated files). Also, if you'll notice, all the examples (i think) show documentation in header files, which lack any implementation which leads me to believe that documentation is intended for the header files, but the tool gives you the flexibility to put is in source files as well.
That's my view anyway. Anyone think differently?