User forums > Using Code::Blocks
Empty Dogygen Document
sodev:
To document global objects that are not a class or namespace you need to add at least a @file block before them: https://www.doxygen.nl/manual/docblocks.html#structuralcommands (the "Attention" box further down)
newcoder007:
This still don't work (see attachment).
Here is my code:
--- Code: ---/**
* @file File Description
* @brief Empty user application template
*/
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("%d\n", sum(3,7));
return 0;
}
/**
@brief Lorem Ipsum
@param a Lorem Ipsum
@param b Lorem Ipsum
@return Lorem Ipsum
*/
int sum(int a, int b){
return a+b;
}
--- End code ---
sodev:
For your function comment to work i think you need to place the stars on each line. Still, that doesnt explain why the file comment is missing, might be related to the configuration, how does your doxygen configuration file look like?
newcoder007:
I put the missing stars in my code. But that's not the reason why it doesn't work.
In the doxygen.log I get this message:
warning: the name 'File' supplied as the argument in the \file statement is not an input file
You can see my configuration in the attachment.
newcoder007:
The other configuration settings are in the post before.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version