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
For me, I had to make sure I had this set:
SHOW_FILES = YES
All your global functions will appears in the Files tab inside of each file. Also, it helps if you have @file or \file defined at the top of your code.