已合并
refactor: 更新 clang-format 配置并对全仓 463 个文件统一格式化 #527
songkai111创建于 6月13日
refactor: 更新 clang-format 配置并对全仓 463 个文件统一格式化 #527
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 songkai111 的贡献)6月13日 添加了label:cann-cla/yes
CANN-robot
6月13日 评论:
6月13日 评论:
Thanks for your pull-request.
The full list of commands accepted by me can be found at here。
You can get sig-info at here
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| aicpu_common | ✅ 王林木, 张磊 (2/2) | ✅ 王林木 (1/1) |
| include | ✅ 王永光, 张磊 (2/2) | ✅ 王永光 (1/1) |
| pkg_inc | ✅ 王永光, 张磊 (2/2) | ✅ 王永光 (1/1) |
| repo-cann/opbase | ✅ 张磊, 王林木 (2/2) | ✅ 张磊, 王林木 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
songkai111, thanks for your pull request. All authors of the commits have signed the CLA. 👍


6月13日 推送 1 个提交:9724b6f1-fix: 修复跨行返回类型声明导致桩函数生成错误
6月13日 添加了label:stat/needs-squash
6月13日 推送 1 个提交:b05207f4-fix: 修复aclTensor模板构造函数在桩代码中重定义
6月16日 修改标题为 “更新clang-format,对全仓文件进行格式修改”,原标题为“修改格式”
songkai111
6月16日 评论:
6月16日 评论:
compile


6月16日 添加了label:ci-pipeline-running
CANN-robot
6月16日 评论:
6月16日 评论:
流水线任务触发成功
任务链接 [ef76db53d762439dbe1ca8bcb8747f8b][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ❌ FAILED | >>>>> | |
| SCA | ❌ FAILED | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test | ✅ SUCCESS | ||
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_style | ✅ SUCCESS | >>>>> | |
| precommit | ⚠️ WARNING | >>>>> | >>>>> |


6月16日 删除了label:ci-pipeline-running
6月16日 添加了label:ci-pipeline-failed
CANN-robot
6月16日 评论:
6月16日 评论:
流水线 PR-pipeline_cann_opbase#1241 [ commitID:b05207f4 ] 运行失败


wangyongguang
6月16日 评论:
6月16日 评论:
/approve


6月16日 添加了label:lgtmapproved
wangyongguang
6月16日 评论:
6月16日 评论:
PR 描述补充下


songkai111
6月16日 评论:
6月16日 评论:
compile


Ssongkai111
6月16日 修改标题为 “refactor: 更新 clang-format 配置并对全仓 463 个文件统一格式化”,原标题为“更新clang-format,对全仓文件进行格式修改”
6月16日 修改标题为 “refactor: 更新 clang-format 配置并对全仓 463 个文件统一格式化”,原标题为“更新clang-format,对全仓文件进行格式修改”
6月16日 修改了pull request 的描述
6月16日 删除了label:ci-pipeline-failed
6月16日 添加了label:ci-pipeline-running
CANN-robot
6月16日 评论:
6月16日 评论:
流水线任务触发成功
任务链接 [e0e9f97027c04e649eb76d9844daeee8][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test | ✅ SUCCESS | ||
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_style | ✅ SUCCESS | >>>>> | |
| precommit | ⚠️ WARNING | >>>>> | >>>>> |
| API_Check | ⚠️ WARNING | >>>>> |
[2026-06-16 09:47:13] CI执行结束


6月16日 添加了label:api-check-failed
6月16日 删除了label:ci-pipeline-running
6月16日 添加了label:ci-pipeline-passed
6月16日 关闭了关联的issue
6月16日 合入了pull request
描述
更新
.clang-format配置规则,并对全仓 463 个文件统一执行 clang-format 格式化,统一代码风格。clang-format 配置变更(
.clang-format)AfterClass:true→false(类定义左大括号不换行)AfterEnum:true→false(enum 左大括号不换行)AlwaysBreakBeforeMultilineStrings:true→falseAllowShortFunctionsOnASingleLine:false→true(允许短函数体单行书写)&/*与操作数之间的空格规则(如(m)&FP16_MAX_MAN→(m) & FP16_MAX_MAN)# ----→# ====)格式化覆盖范围
对全仓 463 个文件执行 clang-format,按目录与类型分布:
src/tests/pkg_inc/include/aicpu_common/.cpp.h.cc.json.py变更统计:+31,466 -33,771 行(纯格式调整,无逻辑变更)
关联的Issue
测试
全量编译及单元测试通过,格式化仅为风格调整,不影响功能逻辑。
文档更新
无
类型标签