当前位置: 首页 > wzjs >正文

有公司可以做网站升级ipv6卸载wordpress

有公司可以做网站升级ipv6,卸载wordpress,湖北权威的百度推广,濮阳h5建站vscode 配置doxygen注释和snippet Doxygen的C/C注释原则 基于Doxygen的C/C注释原则 标注总述 1.文件头标注 2. 命名空间标注 3. 类、结构、枚举标注 4. 函数注释原则 5. 变量注释 6. 模块标注 7. 分组标注指令表格 命令字段名语法file文件名file [< name >]brief简介b…

vscode 配置doxygen注释和snippet

Doxygen的C/C++注释原则

基于Doxygen的C/C++注释原则
标注总述
1.文件头标注
2. 命名空间标注
3. 类、结构、枚举标注
4. 函数注释原则
5. 变量注释
6. 模块标注
7. 分组标注

指令表格

命令字段名语法
@file文件名file [< name >]
@brief简介brief { brief description }
@author作者author { list of authors }
@mainpage主页信息mainpage [(title)]
@date年-月-日date { date description }
@author版本号version { version number }
@copyright版权copyright { copyright description }
@param参数param [(dir)] < parameter-name> { parameter description }
@return返回return { description of the return value }
@retval返回值retval { description }
@bug漏洞bug { bug description }
@details细节details { detailed description }
@pre前提条件pre { description of the precondition }
@see参考see { references }
@link连接(与@see类库,{@link www.google.com})link < link-object>
@sa参考资料@sa < link-object>
@throw异常描述throw < exception-object> { exception description }
@todo待处理todo { paragraph describing what is to be done }
@warning警告信息warning { warning message }
@deprecated弃用说明。可用于描述替代方案,预期寿命等deprecated { description }
@example弃用说明。可用于描述替代方案,预期寿命等deprecated { description }
@var、@enum、@struct、@class 对变量、枚举、结构体、类等进行标注

以下是常用的

image-20250509155113680

文件注释

/*** @file 文件名* @brief 简介* @details 细节* @author 作者* @version 版本号* @date 年-月-日* @copyright 版权*/

example:

image-20250509151935308

还有一种是这样

/*****************************************************************************
*  heschat                                                        
*  Copyright (C) 2025 hesphoros <hesphoros@gmail.con>
*                                                                           
*  This file is part of heschat.                                  
*                                                                           
*  This program is free software; you can redistribute it and/or modify    
*  it under the terms of the GNU General Public License version 3 as       
*  published by the Free Software Foundation.                              
*                                                                           
*  You should have received a copy of the GNU General Public License       
*  along with this program. If not, see <http://www.gnu.org/licenses/>.    
*                                                                           
*  @file     Border.cpp                                                
*  @brief    Border class implementation file                                                  
*  @details  None                                                 
*                                                                           
*  @author   hesphoros                                                
*  @email    hesphoros@gmail.con                                   
*  @version  1.0.0.1                                                       
*  @date     2025/05/09             
*  @license  GNU General Public License (GPL)                              
*---------------------------------------------------------------------------*
*  Remark         : 说明备注                                          
*---------------------------------------------------------------------------*
*  Change History :                                                        
*  <Date>     | <Version> | <Author>       | <Description>                 
*  2025/05/09 | 1.0.0.1   | hesphoros      | Create file           
*****************************************************************************/

image-20250509153654211

结构体注释

/*** @brief 结构体简介* @details * @note */

image-20250509152418483

也可以这样

image-20250509153749465

函数注释

 /*** @brief  函数描述* @param  参数描述* @return 返回描述* @retval 返回值描述*/

example:

image-20250509153015784

常量/变量注释

一般常量/变量可以有两种形式:

  • 常量/变量上一行注释
  • 常量/变量后注释
/**
* @brief description
*/
int val;//desription
int val;int a; /*!< 定义一个整型变量a */
int a; /**< 定义一个整型变量a */
int a; //!< 定义一个整型变量a
int a; ///< 定义一个整型变量a

模块标注

/**
* @defgroup 模块名 
* @{ 
*//** @} */

分组标注

/**
* @name 分组说明文字
* @{
*/content
/** @} */

vscode 插件配置

在vscode中搜索 Doxygen Documentation Generator ,F1 settings(user) 进入配置

image-20250509153934514

image-20250509154529686

下面的自己注意修改一下字段

"doxdocgen.generic.authorEmail": "hesphoros@gmail.com",
"doxdocgen.generic.authorName": "hesphoros",
{// Doxygen documentation generator set"doxdocgen.c.triggerSequence": "/",   // 触发自动注释的生成"doxdocgen.c.commentPrefix": " * ",     // 注释行的前缀"doxdocgen.c.firstLine": "/**",         // 注释行的首行"doxdocgen.c.lastLine": "*/",          // 注释行的尾行// Smart text snippet for factory methods/functions."doxdocgen.c.factoryMethodText": "Create a {name} object",// Smart text snippet for getters."doxdocgen.c.getterText": "Get the {name} object",// Smart text snippet for setters."doxdocgen.c.setterText": "Set the {name} object",// Smart text snippet for constructors."doxdocgen.cpp.ctorText": "Construct a new {name} object",// Smart text snippet for destructors."doxdocgen.cpp.dtorText": "Destroy the {name} object",// The template of the template parameter Doxygen line(s) that are generated. If empty it won't get generated at all."doxdocgen.cpp.tparamTemplate": "@tparam {param} ",// 文件注释:版权信息模板"doxdocgen.file.copyrightTag": ["@copyright Copyright (c) {year}  hesphoros",],//  文件注释:自定义模块,这里我添加一个修改日志"doxdocgen.file.customTag": ["@par 修改日志:","<table>","<tr><th>Date       <th>Version <th>Author  <th>Description","<tr><td>{date} <td>1.0.1     <td>zhoulq     <td>内容","</table>",],// 文件注释的组成及其排序"doxdocgen.file.fileOrder": ["file",     // @file"brief",    // @brief 简介"author",   // 作者"version",  // 版本"date",     // 日期"copyright",// 版权"empty","custom"    // 自定义],// 下面时设置上面标签tag的具体信息"doxdocgen.file.fileTemplate": "@file {name}","doxdocgen.file.versionTag": "@version 1.0.1","doxdocgen.generic.authorEmail": "hesphoros@gmail.com","doxdocgen.generic.authorName": "hesphoros","doxdocgen.generic.authorTag": "@author {author} ({email})",// 日期格式与模板"doxdocgen.generic.dateFormat": "YYYY-MM-DD","doxdocgen.generic.dateTemplate": "@date {date}",// 根据自动生成的注释模板(目前主要体现在函数注释上)"doxdocgen.generic.order": ["brief","tparam","param","return","retval"],"doxdocgen.generic.paramTemplate": "@param{indent:8}{param}{indent:8}","doxdocgen.generic.returnTemplate": "@return {type} ","doxdocgen.generic.splitCasingSmartText": true,"doxdocgen.generic.includeTypeAtReturn": true,      // return 中包含类型信息"doxdocgen.generic.boolReturnsTrueFalse": false,    // bool 返回值拆分成 true 和 false 两种情况"doxdocgen.generic.linesToGet": 20,                  // 回车后最多向下多少行去找函数声明"doxdocgen.generic.useGitUserName": false,          // {author} 是都根据 git config --get user.name 替换"doxdocgen.generic.useGitUserEmail": false,//declarations or definitions anymore.}

vscode snippet

F1 snippet

image-20250509155249533

以下是我的配置

image-20250509155451935

{"File Header (Doxygen Style)": {"prefix": "fileheader","body": ["/*****************************************************************************","*  ${1:Project Name}                                                        ","*  Copyright (C) ${CURRENT_YEAR} ${2:Your Name} <${3:your.email@example.com}>","*                                                                           ","*  This file is part of ${1:Project Name}.                                  ","*                                                                           ","*  This program is free software; you can redistribute it and/or modify    ","*  it under the terms of the GNU General Public License version 3 as       ","*  published by the Free Software Foundation.                              ","*                                                                           ","*  You should have received a copy of the GNU General Public License       ","*  along with this program. If not, see <http://www.gnu.org/licenses/>.    ","*                                                                           ","*  @file     ${TM_FILENAME}                                                ","*  @brief    ${4:简要说明}                                                  ","*  @details  ${5:详细描述}                                                 ","*                                                                           ","*  @author   ${2:Your Name}                                                ","*  @email    ${3:your.email@example.com}                                   ","*  @version  1.0.0.1                                                       ","*  @date     ${CURRENT_YEAR}/${CURRENT_MONTH}/${CURRENT_DATE}             ","*  @license  GNU General Public License (GPL)                              ","*---------------------------------------------------------------------------*","*  Remark         : ${6:说明备注}                                          ","*---------------------------------------------------------------------------*","*  Change History :                                                        ","*  <Date>     | <Version> | <Author>       | <Description>                 ","*  ${CURRENT_YEAR}/${CURRENT_MONTH}/${CURRENT_DATE} | 1.0.0.1   | ${2:Your Name}      | Create file           ","*****************************************************************************/"],"description": "Insert file header comment in Doxygen format"},"Section Divider": {"prefix": "divider","body": ["//---------------------------------------------------------------------------","// ${1:Section Name}","//---------------------------------------------------------------------------"],"description": "Insert section divider comment"}
}

文章转载自:

http://f1FaeEFN.drhbk.cn
http://LdE2XmEe.drhbk.cn
http://lJTC5uBU.drhbk.cn
http://Tt4Mzn03.drhbk.cn
http://awpEB0pb.drhbk.cn
http://VVr8mXc7.drhbk.cn
http://T4WAx3Wc.drhbk.cn
http://3r19YhvD.drhbk.cn
http://vlNZ3rVb.drhbk.cn
http://0saN89Lv.drhbk.cn
http://7GTzFKnL.drhbk.cn
http://Kxu35Spv.drhbk.cn
http://WMLgEr2q.drhbk.cn
http://2v5U98xo.drhbk.cn
http://Exxba30c.drhbk.cn
http://TrsQUAOY.drhbk.cn
http://EveLNrG8.drhbk.cn
http://vBUNT4vD.drhbk.cn
http://RvmpllKm.drhbk.cn
http://TvvP4jsJ.drhbk.cn
http://RuoXeisJ.drhbk.cn
http://KujCj5vs.drhbk.cn
http://jvk0n0xv.drhbk.cn
http://7Vo4nIBV.drhbk.cn
http://uNAxTmnT.drhbk.cn
http://0iNorCua.drhbk.cn
http://b3ctIxxU.drhbk.cn
http://KbLVTgyr.drhbk.cn
http://5efnGCvD.drhbk.cn
http://abhEigL5.drhbk.cn
http://www.dtcms.com/wzjs/629746.html

相关文章:

  • 泉州网站建设优化公司网络公司门头
  • 数据管理系统网站模板九江学网站建设
  • 做网站做哪个行业好高质量的猎建筑人才
  • 上海 建设工程质量监督站网站园林景观设计公司组织架构
  • 关于申请开通网站建设的请示长沙网站设计我选刻
  • 镇江教育平台网站建设专业的铁岭做网站公司
  • 城乡建设局网站网站开发大学
  • 网站怎么做长截图青岛互联网企业
  • 企业网站建设 详细方案网站如何做成app
  • 网站推广 网站做网站需要服务器吗
  • discuz可以做门户网站吗电商平台建设实施方案
  • 三网合一网站怎么做学做网站需要学那些程序
  • ai怎么做网站用海报公司注册的注意事项
  • 知名的建站公司你那个没封的网站怎么做啊
  • 杭州网站建设案例广州建筑集团官网首页
  • 溆浦县建筑公司网站做单本小说网站怎么样
  • 泰安集团网站建设价格网站建设氺金手指排名15
  • 义乌网站建设工作室品牌好的建筑企业查询
  • 苍南哪里有网站建设公司WordPress离线博客
  • 网站怎么做的有创意杭州物联网前十名公司
  • 广州沙河一起做网站成都企业网站设计制作
  • 网站排名第一湖南衡阳市建设工程造价网站
  • 10g空间网站做视频网站郑州大型网站建设价格
  • 网站建设公司广告语宣传语织梦网站如何更新系统
  • 西安营销网站建设代做设计网站
  • 百度如何建设自己的网站快速做网站的技术
  • 工信部 诚信网站备案3e网站建设
  • 做网站一定需要主机吗装饰公司哪家口碑好
  • 微电影网站模板实际网站开发怎样分工
  • 网站如何做m适配wordpress自定义链接