Merged
fix(frontend): resolve CodeCheck G.FMT/G.STD/G.CNS/G.PRE/G.EXP/G.SCRIPT warnings #6523
HuYiShengAdd on Sep 20
fix(frontend): resolve CodeCheck G.FMT/G.STD/G.CNS/G.PRE/G.EXP/G.SCRIPT warnings #6523
Merged
HuYiShengAdd on Sep 20
HuYiSheng
HuYiShengCollaborators
Sep 20

背景

CodeCheck代码规范缺陷列表,共 3 个检查任务、去重后 13 处缺陷、9 个文件(C/C++ 双扫导致的重复项已合并)。

改动概览

涉及模块:framework/src/interface/{utils,tensor,function}、python/src/bindings

已修复项

规范 文件 修复方式
G.FMT.17-CPP torch_tensor_converter.cpp 删除返回值判断前的多余空行
G.CNS.02-CPP symbolic_scalar_simplify.h magic number 4/2/3 → 0x4/2/3
G.CNS.02-CPP function.cpp magic number 62 → 具名常量
G.CNS.02-CPP controller.cpp magic number 2 → 0x2
G.PRE.09 rebuildable_attribute.h 宏末尾去除分号(调用处已带分号,3 处调用已验证)
G.EXP.09-CPP symbolic_scalar.cpp 递归 lambda 变量声明即初始化
likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for HuYiSheng's contribution.)
HuYiShengHuYiShengCollaborators
Sep 20 Created pull request, commit d603674f
CANN-robotCANN-robotCollaborators
Sep 20 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Sep 20 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
framework/src/interface/function ✅ tsungl4, DCGDDD (2/2) ✅ tsungl4 (1/1)
framework/src/interface/tensor ✅ DCGDDD, tsungl4 (2/2) ✅ tsungl4 (1/1)
framework/src/machine ✅ tsungl4, DCGDDD (2/2) ✅ tsungl4 (1/1)
repo-cann/pypto ✅ DCGDDD, tsungl4 (2/2) ✅ tsungl4 (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

HuYiSheng01, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robotCANN-robotCollaborators
Sep 20 Set xinweiliu,cam_bxh,dai-zhentao,lululu40888,shi-dingkun,gguuaanngg,codehjp423,gaoxiang618,wangzheng97,DCGDDD,syfeng,jason_yuan_ye,foundea,ym-HW,hw_zhangzhiqi,yinjie27_,congqiannan,zhangyuebing,tsungl4,gaoxingwang,zhiweiyuan,caodongdong,make_pto,zhoubotcam,linjiashu,wangbing110,WenboCodes as approver
CANN-robotCANN-robotCollaborators
Sep 20 Set xinweiliu,cam_bxh,dai-zhentao,lululu40888,shi-dingkun,gguuaanngg,codehjp423,gaoxiang618,wangzheng97,DCGDDD,syfeng,jason_yuan_ye,foundea,ym-HW,hw_zhangzhiqi,yinjie27_,congqiannan,zhangyuebing,tsungl4,gaoxingwang,zhiweiyuan,caodongdong,make_pto,zhoubotcam,linjiashu,wangbing110,WenboCodes as approver
HuYiSheng
HuYiShengCollaborators
Sep 20 Comments:

/compile

likedislike
HuYiShengHuYiShengCollaborators
Sep 20 Pre merge succeeded (commit_id: aeafc0121c70fac8cb4aa935324c8c01338967f3)
CANN-robot
CANN-robotCollaborators
Sep 20 Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
Sep 20 Added label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Sep 20 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Sep 20 Added label: ci-pipeline-passed
lidongsheng
lidongshengCollaborators
Sep 20 Comments:

/approve
/lgtm

likedislike
CANN-robotCANN-robotCollaborators
Sep 20 Added label: approved
杨旭
杨旭Collaborators
Sep 20 Comments:

/lgtm

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