打印

自动给代码添加、修改注释用什么工具?

[复制链接]
388|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
linnjing|  楼主 | 2020-3-20 14:04 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
放大假这两天整理手头的代码,发现我自己的文件,开头的注释好多错的。
看好多库中的代码注释,像ST的库,FreeRTOS,难道每次新版发行都是手工修改的吗?
有没有自动批量修改的工具?类似Astyle可以整理格式,可以按模板修改、插入注释。

/**
  ******************************************************************************
  * @file    stm32h7xx_hal_gpio.h
  * @author  MCD Application Team
  * @brief   Header file of GPIO HAL module.
  ******************************************************************************
  * @attention
  *
  * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics.
  * All rights reserved.</center></h2>
  *
  * This software component is licensed by ST under BSD 3-Clause license,
  * the "License"; You may not use this file except in compliance with the
  * License. You may obtain a copy of the License at:
  *                        opensource.org/licenses/BSD-3-Clause
  *
  ******************************************************************************
  */

/**
  ******************************************************************************
  * @file    stm32h7xx_hal_gpio.c
  * @author  MCD Application Team
  * @brief   GPIO HAL module driver.
  *          This file provides firmware functions to manage the following
  *          functionalities of the General Purpose Input/Output (GPIO) peripheral:
  *           + Initialization and de-initialization functions
  *           + IO operation functions
  *
  @verbatim
  ==============================================================================
   
/**
  * @brief  De-initializes the GPIOx peripheral registers to their default reset values.
  * @param  GPIOx: where x can be (A..K) to select the GPIO peripheral.
  * @param  GPIO_Pin: specifies the port bit to be written.
  *          This parameter can be one of GPIO_PIN_x where x can be (0..15).
  * @retval None
  */
void HAL_GPIO_DeInit(GPIO_TypeDef  *GPIOx, uint32_t GPIO_Pin)
{
。。。
}

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

使用特权

评论回复
评论
tyw 2020-3-20 14:32 回复TA
用Uedit32,有搜索,替换功能 

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

4

主题

77

帖子

0

粉丝