已合并
fix: Resolve formatting and UTF-8 compliance issues #1545
zhywang创建于 8月26日
fix: Resolve formatting and UTF-8 compliance issues #1545
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 zhywang 的贡献)atomgit-bot
8月26日 评论:
8月26日 评论:
变更摘要
本 PR 是一次纯格式、编码与许可证合规修复,不改变任何代码接口与运行语义。改动包括:对 CPU、NPU、通信、manual kernel 及 ST 相关 C/C++ 文件应用 clang-format(统一指针/引用写法、重排长签名与模板参数列表),清理尾随空白并补齐文件末尾换行,将 236 个 ISA 文档及 pkg_inc/README.md 转换为无 BOM 的纯 UTF-8 编码,并将 tmov_nd2zn_kernel.cpp 的许可证正文更新为标准的 CANN 2.0 许可证头。
主要改动
- clang-format 风格规范化: 对
include/pto/cpu/下的TGet.hpp、TPut.hpp、tile_offsets.hpp以及kernels/manual/a5/dispatch_mega_combine/下的comm_mpi.h、data_utils.cpp/.hpp、kernel_launch.hpp、pto_vector.hpp、mega_wave_schedule.hpp等文件统一指针声明写法(如void *→void*、const std::string &→const std::string&),并重排TGET_ASYNC_IMPL、CommMpiGather、PtoCastUb、GetExpertWaveRange等函数的长签名及模板参数换行,仅涉及代码排版。 - 尾随空白清理与文件末尾换行补齐:
MXTypes.hpp中signaling_NaN()后的行尾空格被移除;TExtract.hpp、tests/npu/a2a3/src/st/testcase/tconcatidx/main.cpp、tmov_nd2zn_kernel.cpp等文件补上了缺失的文件末尾换行,消除trailing-whitespace与end-of-file-fixer检查告警。 - 许可证头合规修正:
tests/npu/a5/src/st/testcase/tmov_nd2zn/tmov_nd2zn_kernel.cpp的许可证正文被改写为标准 CANN 2.0 文本(如THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED...),使其符合 OAT 标准。 - 文档编码转换为无 BOM 的 UTF-8: 将 236 个 ISA 文档及
pkg_inc/README.md的 UTF-8 BOM 移除,全部 237 个文档文件转为纯 UTF-8 编码,不影响文档内容。


不准确?
atomgit-bot
8月26日 评论:
8月26日 评论:
8月26日 添加了label:cann-cla/yes
CANN-robot
8月26日 评论:
8月26日 评论:
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.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| docs | ✅ zhangjian_hz11, shengxinchen, csjlchen (3/2) | ✅ zhangjian_hz11, shengxinchen (2/1) |
| repo-cann/pto-isa | ✅ zhangjian_hz11, csjlchen (2/2) | ✅ zhangjian_hz11 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
zhhywang, thanks for your pull request. All authors of the commits have signed the CLA. 👍


8月26日 将zhangjian_hz11,csjlchen,bluesky901,changxianyu,Zhanghaijian,syfeng,shengxinchen,yinjie27_,zhoubotcam,HuangXingYuan_777,linjiashu,WenboCodes,qukelin,ChanKaLok,kerwinair,echo_stone设为评审人
8月26日 将zhangjian_hz11,csjlchen,bluesky901,changxianyu,Zhanghaijian,syfeng,shengxinchen,yinjie27_,zhoubotcam,HuangXingYuan_777,linjiashu,WenboCodes,qukelin,ChanKaLok,kerwinair,echo_stone设为评审人
8月26日 将zhangjian_hz11,csjlchen,bluesky901,changxianyu,Zhanghaijian,syfeng,shengxinchen,yinjie27_,zhoubotcam,HuangXingYuan_777,linjiashu,WenboCodes,qukelin,ChanKaLok,kerwinair,echo_stone设为审查人
8月26日 将zhangjian_hz11,csjlchen,bluesky901,changxianyu,Zhanghaijian,syfeng,shengxinchen,yinjie27_,zhoubotcam,HuangXingYuan_777,linjiashu,WenboCodes,qukelin,ChanKaLok,kerwinair,echo_stone设为审查人
8月26日 添加了label:ci-pipeline-running
8月26日 删除了label:ci-pipeline-running
8月26日 添加了label:ci-pipeline-failed
8月26日 删除了label:ci-pipeline-failed
8月26日 添加了label:ci-pipeline-running
8月26日 删除了label:ci-pipeline-running
8月26日 添加了label:ci-pipeline-failed
8月26日 删除了label:ci-pipeline-failed
8月26日 添加了label:ci-pipeline-running
8月26日 删除了label:ci-pipeline-running
8月26日 添加了label:ci-pipeline-passed
shengxinchen
8月27日 评论:
8月27日 评论:
/approve


zhangjian_hz11
8月27日 评论:
8月27日 评论:
/approve


8月27日 添加了label:approved
csjlchen
8月27日 评论:
8月27日 评论:
/lgtm


8月27日 添加了label:lgtm
8月27日 合入了pull request
Created-by: cann-robot
Commit-by: cann-robot
Merged-by: cann-robot
Description: Fix source formatting, file endings, UTF-8 BOM encoding, and an invalid CANN license header.
描述
256 files changed, 359 insertions(+), 364 deletions(-).
关联的Issue
测试
文档更新
将 236 个 ISA 文档及 pkg_inc/README.md 转换为无 BOM 的纯 UTF-8 编码。
类型标签