Pull Request已成功合入, 合并人@CANN-robot
(感谢 LiuZonggu 的贡献)变更摘要
本 PR 为纯代码风格清理,针对 opgen add_example 模板中的示例文件 scripts/opgen/template/add_example/examples/test_aclnn_add_example.cpp,删除文件末尾许可证注释块 */ 之后多余的两行空白内容,使文件以规范的结尾形式收束。由于该文件属于 add_example 模板,这一改动可避免冗余空行随模板传播到新生成的示例文件。变更不涉及任何功能逻辑,对编译与运行行为无影响。
主要改动
- 删除文件末尾多余空行:在
test_aclnn_add_example.cpp的许可证注释块*/之后移除了两行冗余空白(一行空行和一行含空格的空行)。 - 规范文件结尾格式:去除末尾空白后,文件不再以「无换行结尾」的空行形式结束,符合模板文件的结尾格式约定。
- 影响范围限于
add_example模板:改动仅作用于该模板示例文件,后续由模板生成的示例文件将不再继承这些多余空行。


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 |
|---|---|---|
| repo-cann/ops-ras | ✅ yue-ma, 冯彤 (2/2) | ✅ yue-ma (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
LiuZonggu, thanks for your pull request. All authors of the commits have signed the CLA. 👍


流水线任务触发成功
任务链接 [8b17814cb750454892ca9a48275575a3][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| PreSmoke_ATK_Test_A2 | ✅ SUCCESS | >>>>> |
[2026-09-22 10:41:02] CI执行结束


流水线任务触发成功
任务链接 [cbfb637c422f4d7e87622d9d4527e57d][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test_ophost | ✅ SUCCESS | ||
| UT_Test_opapi | ✅ SUCCESS | ||
| API_Check | ✅ SUCCESS | >>>>> |
[2026-09-22 10:43:03] CI执行结束


描述
Remove two redundant blank lines at the end of
scripts/opgen/template/add_example/examples/test_aclnn_add_example.cpp.This is a code style cleanup: the file ended with two extra blank lines after the closing
*/of the license header comment, instead of a single trailing newline. Since this file belongs to the opgenadd_exampletemplate, the redundant blank lines would otherwise propagate to newly generated example files. This is a whitespace-only change with no functional impact.关联的Issue
Fixes #43
https://gitcode.com/cann/ops-ras/issues/43
测试
git diffthat only the two trailing blank lines are removed; no other content is touched.文档更新
None.
类型标签