Closed
[Requirement|需求建议]: loss clean_code问题整改 #8404
zhuzemaoAdd on  13 days agoClosed at  12 days ago
zhuzemao
zhuzemaoCollaborators
13 days ago Create

Describe the current behavior / 问题描述 (Mandatory / 必填)

loss clean_code问题整改 对成员变量未发生改变的函数应该添加const标记

Environment Information / 环境信息 (Mandatory / 必填)

无

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

误

Describe the expected behavior / 预期结果 (Mandatory / 必填)

无

无

Special notes for this issue/备注 (Optional / 选填)

likedislike
zhuzemaozhuzemaoCollaborators
13 days ago Added label: bug-report
zhuzemaozhuzemaoCollaborators
13 days ago Assign zhuzemao as responsible person
CANN-robotCANN-robotCollaborators
12 days ago Close issue
CANN-robotCANN-robotCollaborators
12 days ago changed custom state from 待办的 to 已完成
CANN-robotCANN-robotCollaborators
12 days ago Added label: resolved
chenjiayi_chenjiayi_Collaborators
2 days ago changed custom category from 任务 to 需求
chenjiayi_chenjiayi_Collaborators
2 days ago Change title to "[Requirement|需求建议]: loss clean_code问题整改", originally titled "[Bug-Report|缺陷反馈]: loss clean_code问题整改".
chenjiayi_chenjiayi_Collaborators
2 days ago Added label: requirement; Removed label: bug-report
chenjiayi_
chenjiayi_Collaborators
2 days ago Comments:

补充说明(输出质量)

背景:loss 目录 clean_code 整改:对不修改成员变量的成员函数补 const。

影响:提升代码规范一致性,减少 code check 告警。

方案/范围:逐文件梳理 loss 下 op_host 类的成员函数,能加 const 的加 const;同步修改调用点;当前未检索到关联 PR。

验收标准:code check 相关告警清零;编译通过;算子 UT 不回退。

当前状态:本 issue 当前为 closed;暂无关联 PR。

likedislike