Closed
[Bug-Report|缺陷反馈]: add_example_aicpu test_aclnn_add_example.cpp ends with redundant trailing blank lines (code style) #46
LiuZongguAdd on Sep 23Closed at Sep 23
LiuZonggu
Sep 23 Comments:
Sep 23 Comments:
Fix submitted via PRs:
- master: https://gitcode.com/cann/ops-ras/merge_requests/117 (branch
LiuZonggu:fix/redundant-whitespace-aicpu) - 9.2.0: https://gitcode.com/cann/ops-ras/merge_requests/118 (branch
LiuZonggu:fix/redundant-whitespace-aicpu-9.2.0, cherry-picked)
Both remove the three redundant trailing blank lines; whitespace-only change.


Sep 23 Close issue
Sep 23 Added label: resolved
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
The file
scripts/opgen/template/add_example_aicpu/examples/test_aclnn_add_example.cppends with three redundant blank lines after the closing*/of the license header comment. This is a code style issue: a source file should end with a single trailing newline. Since this file belongs to the opgenadd_example_aicputemplate, the redundant blank lines are also propagated to newly generated AICPU example files.Environment / 环境信息 (Mandatory / 必填)
Not environment-specific. This is a code style issue in the opgen template sources, observable on the latest
masterbranch.Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
scripts/opgen/template/add_example_aicpu/examples/test_aclnn_add_example.cpponmaster.tail -n 5 scripts/opgen/template/add_example_aicpu/examples/test_aclnn_add_example.cpp.*/of the license comment.Describe the expected behavior / 预期结果 (Mandatory / 必填)
The file should end with the closing
*/of the license comment followed by a single trailing newline, with no extra blank lines, in line with basic code style conventions.Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
* See LICENSE in the root of the software repository for the full text of the License. */ - - - \ No newline at end of fileSpecial notes for this issue/备注 (Optional / 选填)
Same class of code style cleanup as issue #43 (which fixed the trailing blank lines in the
add_exampletemplate). A fix will be submitted via associated PRs.