Merged
fix: remove trailing blank lines at end of aicpu test_aclnn_add_example.cpp #117
fix: remove trailing blank lines at end of aicpu test_aclnn_add_example.cpp #117
Merged
LiuZongguAdd on Sep 23
LiuZongguCollaborators
Sep 23

描述

Remove three redundant blank lines at the end of scripts/opgen/template/add_example_aicpu/examples/test_aclnn_add_example.cpp.

This is a code style cleanup: the file ended with three 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_aicpu template, the redundant blank lines would otherwise propagate to newly generated AICPU example files. This is a whitespace-only change with no functional impact.

Same class of cleanup as PR #114 (which fixed the trailing blank lines in the add_example template).

关联的Issue

Fixes #46
https://gitcode.com/cann/ops-ras/issues/46

测试

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

文档更新

None.

类型标签

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for LiuZonggu's contribution.)
LLiuZongguCollaborators
Sep 23 Created pull request, commit 7c041f27
LLiuZongguCollaborators
Sep 23 Associated issue: [Bug-Report|缺陷反馈]: add_example_aicpu test_aclnn_add_example.cpp ends with redundant trailing blank lines (code style)
atomgit-bot
atomgit-bot
Sep 23 Comments:

变更摘要

本 PR 属于代码风格清理,主要针对 scripts/opgen/template/add_example_aicpu/examples/test_aclnn_add_example.cpp 文件末尾多余的空白行。该文件末尾在许可证注释块结束符 */ 之后存在三个多余空行,本变更将其删除,使文件以正常的单行结尾。由于该文件属于 opgen 的 add_example_aicpu 模板,清理后可避免这些冗余空行被复制到新生成的 AICPU 示例文件中。此变更仅涉及空白字符,不影响编译与运行时行为。

主要改动

  • 删除文件末尾冗余空行:在 scripts/opgen/template/add_example_aicpu/examples/test_aclnn_add_example.cpp 的许可证注释块 */ 之后,移除了三个多余的空白行。
  • 修正文件结尾格式:原文件末尾包含空行且以无换行符结尾,变更后文件恢复为正常的单行结尾格式。
  • 模板文件同步清理:由于该文件位于 add_example_aicpu 模板目录下,清理可防止多余空行传播到后续由模板生成的 AICPU 示例文件。
likedislike
Incorrect?
atomgit-bot
atomgit-bot
Sep 23 Comments:

代码审查

✅ 未发现问题

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
Sep 23 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Sep 23 Comments:

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
LiuZongguCollaborators
Sep 23 Comments:

compile

likedislike
CANN-robotCANN-robotCollaborators
Sep 23 Added label: ci-pipeline-running
CANN-robot
CANN-robotCollaborators
Sep 23 Comments:

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

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

[2026-09-23 09:24:52]    CI执行结束

likedislike
CANN-robot
CANN-robotCollaborators
Sep 23 Comments:

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

任务名称状态日志下载链接
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-23 09:26:55]    CI执行结束

likedislike
CANN-robotCANN-robotCollaborators
Sep 23 Added label: api-check-pass
CANN-robotCANN-robotCollaborators
Sep 23 Removed label: api-check-pass
CANN-robot
CANN-robotCollaborators
Sep 23 Comments:

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

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

[2026-09-23 09:31:56]    CI执行结束

likedislike
CANN-robotCANN-robotCollaborators
Sep 23 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Sep 23 Added label: ci-pipeline-passed
yue-maCollaborators
Sep 23 Comments:

/lgtm
/approve

likedislike
CANN-robotCANN-robotCollaborators
Sep 23 Added label: approved
loovCollaborators
Sep 23 Comments:

/lgtm

likedislike
CANN-robotCANN-robotCollaborators
Sep 23 Added label: lgtm
CANN-robotCANN-robotCollaborators
Sep 23 Merged pull request