Doxygen home page.
You MUST use version 1.8.15, which is what is installed at Digipen. Failure to use that version may result in a poor grade in this course. You can find this version in the 1.8.15 downloads section. Windows users should download it here: Doxygen 1.8.15 You will want to override a setting in the configuration file using the command line like this below. This will help find more problems with your documentation.
Linux/Mac/Cygwin/makefilesWindows (no makefile, typed on the command line, not recommended)( cat Doxyfile ; echo "EXTRACT_ALL=YES" ) | doxygen - ( cat Doxyfile ; echo "EXTRACT_ALL=NO" ) | doxygen -It is suggested that you put these commands in your makefile for each assignment/lab to easily automate it. The rule would look something like this:( type Doxyfile & echo EXTRACT_ALL=YES ) | doxygen.exe - ( type Doxyfile & echo EXTRACT_ALL=NO ) | doxygen.exe -doxygen : ( cat Doxyfile ; echo "EXTRACT_ALL=YES" ) | doxygen - ( cat Doxyfile ; echo "EXTRACT_ALL=NO" ) | doxygen -
Examples:
A CS120 file header comment:
A Doxygen-style file header comment:/******************************************************************************* filename scantext.c author Nigel Tufnel DP email tap11@digipen.edu course CS120 assignment Programming Assignment #6 due date 11-30-2018 Brief Description: This program takes strings and performs various tasks on them via several separate functions. The functions include: mystrlen - Calculates the length (in characters) of a given string. count_tabs - Takes a string and counts the amount of tabs within. substitute_char - Takes a string and replaces every instance of a certain character with another given character. calculate_lengths - Calculates the length (in characters) of a given string first with tabs, and again after tabs have been converted to a given amount of spaces. count_words - Takes a string and counts the amount of words inside. *******************************************************************************/A CS120-style function header comment. This assumes that the function substitute_char immediately follows this comment:/*!***************************************************************************** \file scantext.c \author Nigel Tufnel \par DP email: tap11\@digipen.edu \par Course: CS120 \par Programming Assignment #6 \date 11-30-2028 \brief This program takes strings and performs various tasks on them via several separate functions. + mystrlen - Calculates the length (in characters) of a given string. + count_tabs - Takes a string and counts the amount of tabs within. + substitute_char - Takes a string and replaces every instance of a certain character with another given character. + calculate_lengths - Calculates the length (in characters) of a given string first with tabs, and again after tabs have been converted to a given amount of spaces. + count_words - Takes a string and counts the amount of words inside. *******************************************************************************/A Doxygen-style function header comment. This assumes that the function substitute_char immediately follows this comment, so it is not necessary to duplicate the function prototype:/******************************************************************************* Function: int substitute_char(char *string, char old_char, char new_char) Description: Replaces each instance of a given character in a string with other given characters. Inputs: string - The string to walk through and replace characters in. old_char - The original character that will be replaced in the string. new_char - The character used to replace the old characters. Outputs: The amount of characters changed in the string. *******************************************************************************/Online Doxygen manual./*!***************************************************************************** \brief Replaces each instance of a given character in a string with other given characters. \param string The string to walk through and replace characters in. \param old_char The original character that will be replaced in the string. \param new_char The character used to replace the old characters \return The amount of characters changed in the string. *******************************************************************************/