Blame tests/upstream-test-suite/019_defgroup.c

Than Ngo b7bcaa
// objective: test the \defgroup, \addtogroup, and \ingroup command.
Than Ngo b7bcaa
// check: group__g1.xml
Than Ngo b7bcaa
// check: group__g2.xml
Than Ngo b7bcaa
// check: group__g3.xml
Than Ngo b7bcaa
Than Ngo b7bcaa
/** \defgroup g1 First Group
Than Ngo b7bcaa
 *  Text for first group.
Than Ngo b7bcaa
 */
Than Ngo b7bcaa
Than Ngo b7bcaa
/** A function in the first group.
Than Ngo b7bcaa
 *  \ingroup g1
Than Ngo b7bcaa
 */
Than Ngo b7bcaa
void func_g1();
Than Ngo b7bcaa
Than Ngo b7bcaa
//--------------------------------
Than Ngo b7bcaa
Than Ngo b7bcaa
/** \defgroup g2 Second Group
Than Ngo b7bcaa
 *  Text for second group.
Than Ngo b7bcaa
 */
Than Ngo b7bcaa
/// \{
Than Ngo b7bcaa
Than Ngo b7bcaa
/** A function in the second group */
Than Ngo b7bcaa
void func_g2();
Than Ngo b7bcaa
Than Ngo b7bcaa
/// \}
Than Ngo b7bcaa
Than Ngo b7bcaa
/** \defgroup g3 Third Group
Than Ngo b7bcaa
 *  Text for third group.
Than Ngo b7bcaa
 *  \ingroup g2
Than Ngo b7bcaa
 *  \{
Than Ngo b7bcaa
 */
Than Ngo b7bcaa
Than Ngo b7bcaa
//--------------------------------
Than Ngo b7bcaa
Than Ngo b7bcaa
/** A function in the third group */
Than Ngo b7bcaa
void func_g3();
Than Ngo b7bcaa
Than Ngo b7bcaa
/** \} */
Than Ngo b7bcaa
Than Ngo b7bcaa
/** \addtogroup g3
Than Ngo b7bcaa
 *  \{ 
Than Ngo b7bcaa
 */
Than Ngo b7bcaa
Than Ngo b7bcaa
/** Another function added to the third group */
Than Ngo b7bcaa
void func_g3_add();
Than Ngo b7bcaa
Than Ngo b7bcaa
/** \} */
Than Ngo b7bcaa