portjohn.blogg.se

Doxygen comment examples
Doxygen comment examples










doxygen comment examples
  1. Doxygen comment examples how to#
  2. Doxygen comment examples serial#
  3. Doxygen comment examples manual#

Doxygen comment examples manual#

/ input/output (usu.Looking at grouping in the Doxygen manual here there are several methods you can use. For pages there is a third grouping mechanism. The second mechanism works within a member list of some compound entity, and is referred to as a 'member groups'. These groups are called 'modules' in the documentation. The first sentence is a brief description of the class and will appear in all class listings. The \class Doxygen command is mandatory otherwise Doxygen will not associate the comments to the proper class. One mechanism works at a global level, creating a new page for each group. The documentation for the class is in general located at the beginning of the. / \param var3 Description of variable three, an output ( Doxygen has three mechanisms to group things together. Void myFunc(int var1, int var2, int* var3, int* var4)Īnd here's this shorter version again now with \ again instead of /// \brief A brief one or two line description of the function. / var4 Description of variable four, an

doxygen comment examples

/ var3 Description of variable three, an output / var2 Description of variable two, an input / var1 Description of variable one, an input You may also use instead of \: /// A brief one or two line description of the function. var3 or var4 are NULL pointers, which means they can't be My_enum_t myFunc(int var1, int var2, int* var3, int* var4) / value is read and used, but then it is also updated by / \param var4 Description of variable four, an / \param var3 Description of variable three, an output / \param var2 Description of variable two, an input / \param var1 Description of variable one, an input / \note An important note the user should be aware of-perhaps many (Copied from my eRCaGuy_dotfiles project here)įull Doxygen function header example: /// \brief A brief one or two line description of the function.

  • How should I properly use _attribute_ ((format (printf, x, y))) inside a class method in C++?.
  • Doxygen comment examples how to#

    How to use formatting strings in user-defined functions?.Documentation for GCC's super useful printf format attribute:.Other code examples demonstrating Doxygen usage:.Official Doxygen documentation for the param special command:.Is that an in or in/out parameter? Doxygen, C++.See these references for more details & official documentation: Note that possible param values are param, param, and param.See a list of all of Doxygen's special commands here: (ex: \brief or \note or \details or \example, etc.).I have no idea how or where to find this info. See Sarao's answer, and tribal knowledge running around my head.The Doxygen output now shows the error return types as a list of sub-bullets under the line Number of characters printed if OK, or < 0 if error:, and each of the error types is turned into a URL to their respective definitions due to the # character in front. - num_chars_printed could be set to one of the error codes listed above Use `vsnprintf()` now here to format everything into a single string / Number of characters printed if OK, or < 0 if error: `printf`-like variadic list of arguments corresponding

    Doxygen comment examples serial#

    / Function to print out data through serial UART for debugging.

    doxygen comment examples

    I know you're asking about but Google searches lead here for types too, so here's that answer: Doxygen # usage in front of return value to create hyperlink to its definition:įull Example ( see the types just below with a # in front of each of them): #include // for va_list, va_start, va_end












    Doxygen comment examples