Skip to content

Latest commit

History

History
157 lines (133 loc) 路 3.87 KB

c-family-doc-standard-examples.md

File metadata and controls

157 lines (133 loc) 路 3.87 KB

C-Family Doc Standard Examples

Due to the amount of doc standards for the C-family languages, all of them are listed below using C++ to clarify the style they generate, although most of the doc styles apply for other C-family languages as well.

Table of Contents

Doc standards

doxygen_javadoc

/**
 * @brief [TODO:summary]
 *
 * @tparam F [TODO:description]
 * @tparam Args [TODO:description]
 * @param builder [TODO:description]
 * @return [TODO:description]
 */
template<class F, class... Args>
auto Person::getPersonType (const Builder& builder) -> PersonType {}

doxygen_javadoc_no_asterisk

/**
@brief [TODO:summary]

@tparam F [TODO:description]
@tparam Args [TODO:description]
@param builder [TODO:description]
@return [TODO:description]
*/
template<class F, class... Args>
auto Person::getPersonType (const Builder& builder) -> PersonType {}

doxygen_javadoc_banner

/*******************************************************************************
 * @brief [TODO:summary]
 *
 * @tparam F [TODO:description]
 * @tparam Args [TODO:description]
 * @param builder [TODO:description]
 * @return [TODO:description]
 ******************************************************************************/
template<class F, class... Args>
auto Person::getPersonType (const Builder& builder) -> PersonType {}

doxygen_qt

/*!
 * @brief [TODO:summary]
 *
 * @tparam F [TODO:description]
 * @tparam Args [TODO:description]
 * @param builder [TODO:description]
 * @return [TODO:description]
 */
template<class F, class... Args>
auto Person::getPersonType (const Builder& builder) -> PersonType {}

doxygen_qt_no_asterisk

/*!
@brief [TODO:summary]

@tparam F [TODO:description]
@tparam Args [TODO:description]
@param builder [TODO:description]
@return [TODO:description]
*/
template<class F, class... Args>
auto Person::getPersonType (const Builder& builder) -> PersonType {}

doxygen_cpp_comment_slash

///
/// @brief [TODO:summary]
///
/// @tparam F [TODO:description]
/// @tparam Args [TODO:description]
/// @param builder [TODO:description]
/// @return [TODO:description]
///
template<class F, class... Args>
auto Person::getPersonType (const Builder& builder) -> PersonType {}

doxygen_cpp_comment_exclamation

//!
//! @brief [TODO:summary]
//!
//! @tparam F [TODO:description]
//! @tparam Args [TODO:description]
//! @param builder [TODO:description]
//! @return [TODO:description]
//!
template<class F, class... Args>
auto Person::getPersonType (const Builder& builder) -> PersonType {}

doxygen_cpp_comment_slash_banner

////////////////////////////////////////////////////////////////////////////////
/// @brief [TODO:summary]
///
/// @tparam F [TODO:description]
/// @tparam Args [TODO:description]
/// @param builder [TODO:description]
/// @return [TODO:description]
////////////////////////////////////////////////////////////////////////////////
template<class F, class... Args>
auto Person::getPersonType (const Builder& builder) -> PersonType {}

kernel_doc (only available in C)

/**
 * foo(): [TODO:summary]
 * @a: [TODO:description]
 * @b: [TODO:description]
 *
 * [TODO:description]
 *
 * Return: [TODO:description]
 */
int foo(int a, char b) {}