已合并
fix: remove trailing blank lines at end of test_aclnn_add_example.cpp #114
LiuZonggu创建于 12 小时前
fix: remove trailing blank lines at end of test_aclnn_add_example.cpp #114
已合并
LiuZonggu创建于 12 小时前
LiuZonggu成员
12 小时前

描述

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 opgen add_example template, 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

测试

  • Verified via git diff that only the two trailing blank lines are removed; no other content is touched.
  • Whitespace-only change; no impact on compilation or runtime behavior.

文档更新

None.

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 LiuZonggu 的贡献)
LLiuZonggu成员
12 小时前 创建了 pull request,commit 130c1410
LLiuZonggu成员
12 小时前 关联了issue:[Bug-Report|缺陷反馈]: test_aclnn_add_example.cpp ends with redundant trailing blank lines (code style)
atomgit-bot
atomgit-bot
12 小时前 评论:

变更摘要

本 PR 为纯代码风格清理,针对 opgen add_example 模板中的示例文件 scripts/opgen/template/add_example/examples/test_aclnn_add_example.cpp,删除文件末尾许可证注释块 */ 之后多余的两行空白内容,使文件以规范的结尾形式收束。由于该文件属于 add_example 模板,这一改动可避免冗余空行随模板传播到新生成的示例文件。变更不涉及任何功能逻辑,对编译与运行行为无影响。

主要改动

  • 删除文件末尾多余空行:在 test_aclnn_add_example.cpp 的许可证注释块 */ 之后移除了两行冗余空白(一行空行和一行含空格的空行)。
  • 规范文件结尾格式:去除末尾空白后,文件不再以「无换行结尾」的空行形式结束,符合模板文件的结尾格式约定。
  • 影响范围限于 add_example 模板:改动仅作用于该模板示例文件,后续由模板生成的示例文件将不再继承这些多余空行。
likedislike
不准确?
atomgit-bot
atomgit-bot
12 小时前 评论:

代码审查

✅ 未发现问题

likedislike
不准确?
CANN-robotCANN-robot成员
12 小时前 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
12 小时前 评论:

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 /approve or /lgtm
  • Commenting /approve implies 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. 👍

likedislike
LiuZonggu成员
11 小时前 评论:

compile

likedislike
CANN-robotCANN-robot成员
11 小时前 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
11 小时前 评论:

流水线任务触发成功
任务链接 [8b17814cb750454892ca9a48275575a3][流水线指导]

任务名称状态日志下载链接
PreSmoke_ATK_Test_A2 ✅ SUCCESS >>>>>

[2026-09-22 10:41:02]    CI执行结束

likedislike
CANN-robot
CANN-robot成员
11 小时前 评论:

流水线任务触发成功
任务链接 [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执行结束

likedislike
CANN-robotCANN-robot成员
11 小时前 添加了label:api-check-pass
CANN-robotCANN-robot成员
11 小时前 删除了label:api-check-pass
CANN-robot
CANN-robot成员
11 小时前 评论:

流水线任务触发成功
任务链接 [ff2c15412b1741bdb0552746a41eb9a9][流水线指导]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
antipoison ✅ SUCCESS >>>>>
codecheck_Pr ✅ SUCCESS
codecheck_codestyle ✅ SUCCESS >>>>>
codecheck_precommit ✅ SUCCESS >>>>>

[2026-09-22 10:50:04]    CI执行结束

likedislike
CANN-robotCANN-robot成员
11 小时前 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
11 小时前 添加了label:ci-pipeline-passed
rxtfeng成员
11 小时前 评论:

/lgtm

likedislike
yue-ma成员
11 小时前 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
11 小时前 添加了label:lgtmapproved
CANN-robotCANN-robot成员
11 小时前 合入了pull request