doxygen

c/c++常用工具使用(linux下)

我怕爱的太早我们不能终老 提交于 2020-10-03 18:50:25
格式化工具: astyle libevent工具: doxygen :(创建文档 从注释里面提取对应的文档) 安装: sudo apt-get install -y doxygen 步骤:1.在*.h文件写注释 并将文档提取出出来 eg: 2. xx -doxygen -g 自动生成Doxyfile文件 3.vim DoxyFile 进行参数的修改 eg: DROJECINAME=" " DROJECTBRIEF=" " OUTPUT_LANGUAGE=" " 等相关参数的修改 4.doxygen 生成 html文件进行访问查看 cppcheck : 1.安装: sudo apt-get install -y cppcheck 2.文档:cppcheck 3.使用: cppcheck --enable=all ./ cppcheck --enable=all --check-config xx.cpp valgrind :用于检查内存泄漏 使用 valgrind ./a.out cpptest :c++用于做单元测试的库 1.安装: sudo apt-get install -y libcpptest-dev 2.编写测试用例: 文件gcov(系统自带) lcov自己安装 来源: oschina 链接: https://my.oschina.net/u/4406698/blog

Visual studio auto complete Doxygen tags for C++

故事扮演 提交于 2020-08-27 07:02:53
问题 Is there a way to make visual studio automatically place the doxygen tags in a C++ source file ? What I mean is for example this piece of code: int foo(bool p); If I type /// on top of it, Visual Studio automatically generates the following lines: /// <summary> /// /// </summary> /// <param name="p"></param> /// <returns></returns> int foo(bool p); My question is: is it possible to do the same with doxygen (when I type /** )? To make VS generate the following: /** * @brief * @param p *

Visual studio auto complete Doxygen tags for C++

自闭症网瘾萝莉.ら 提交于 2020-08-27 07:02:34
问题 Is there a way to make visual studio automatically place the doxygen tags in a C++ source file ? What I mean is for example this piece of code: int foo(bool p); If I type /// on top of it, Visual Studio automatically generates the following lines: /// <summary> /// /// </summary> /// <param name="p"></param> /// <returns></returns> int foo(bool p); My question is: is it possible to do the same with doxygen (when I type /** )? To make VS generate the following: /** * @brief * @param p *

jsoncpp使用小结

坚强是说给别人听的谎言 提交于 2020-08-14 04:02:09
一、jsoncpp介绍 jsoncpp是一个开源C++库,提供对JSON字符串序列化/反序列化的功能。 开源地址: https://github.com/open-source-parsers/jsoncpp 文档地址: http://open-source-parsers.github.io/jsoncpp-docs/doxygen/index.html 二、jsoncpp的使用 jsoncpp主要包含三种类型的C++类 - value、reader、writer。value表示json对象和数组。reader用于反序列化json字符串。writer用于序列化json字符串。简单使用示例: 示例1:生成json Json::Value jsonRoot; //定义根节点 Json::Value jsonItem; //定义一个子对象 jsonItem["item1"] = "one"; //添加数据 jsonItem["item2"] = 2; jsonRoot.append(jsonItem); jsonItem.clear(); //清除jsonItemjsonItem["item1.0"] = 1.0; jsonItem["item2.0"] = 2.0; jsonRoot["item"] = jsonItem; std::string strJson = jsonRoot

Illegal alias format `ALIASES '

余生长醉 提交于 2020-08-10 20:23:37
问题 I added below codes into doxywizard ALIASES but I get error . How can I solve this ALIASES += global_START="<dl class=\"params\"><dt>Globals</dt><dd><table class=\"params\">" ALIASES += global_{2}="<tr><td class=\"paramname\">\1</td><td>: \2</td></tr>" ALIASES += global_END="</table></dd></dl>" [![enter image description here][1]][1] Error message: error: Illegal alias format `ALIASES += global_START=" Globals \1 : \2 "'. Use "name=value" or "name(n)=value", where n is the number of arguments

Doxygen: Force undeclared functions to be documented

僤鯓⒐⒋嵵緔 提交于 2020-08-08 05:12:35
问题 Our C++ program has a built-in script interface and is able to run scripts in it. The scripts have access to convenience functions provided by the C++ program. Now we would like Doxygen to create the documentation of the functions the script has access to. Such a function declaration looks like this: void ScriptEngine::load_script(const QString &path) { //... /*! \fn sleep_ms(const unsigned int timeout_ms) \brief sleeps for timeout_ms milliseconds. \param timeout_ms */ (*lua)["sleep_ms"] = []

Doxygen: Force undeclared functions to be documented

≯℡__Kan透↙ 提交于 2020-08-08 05:12:29
问题 Our C++ program has a built-in script interface and is able to run scripts in it. The scripts have access to convenience functions provided by the C++ program. Now we would like Doxygen to create the documentation of the functions the script has access to. Such a function declaration looks like this: void ScriptEngine::load_script(const QString &path) { //... /*! \fn sleep_ms(const unsigned int timeout_ms) \brief sleeps for timeout_ms milliseconds. \param timeout_ms */ (*lua)["sleep_ms"] = []