已合并
fix(aicpu): tile_with_axis 析构函数补充 override 修饰(G.CLS.12 残留) #5920
liu-wei创建于 10 天前
fix(aicpu): tile_with_axis 析构函数补充 override 修饰(G.CLS.12 残留) #5920
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 liu-wei 的贡献)atomgit-bot
10 天前 评论:
10 天前 评论:
变更摘要
本 PR 属于代码清理类改动,目标是消除 G.CLS.12 告警的最后一处残留:重写虚函数需显式指定 override。改动集中在 conversion/tile_with_axis/op_kernel_aicpu/tile_with_axis_aicpu.h,对 TileWithAxisCpuKernel 的析构函数声明补充 override 修饰,使其与基类 CpuKernel 的虚析构关系在编译期得到显式校验;同类其余 6 处已在此前修复,本次补齐最后一处。该修改为纯编译期检查,不影响代码生成与运行时行为。
主要改动
- 析构函数补充
override: 将~TileWithAxisCpuKernel() = default;修改为~TileWithAxisCpuKernel() override = default;,显式声明其重写基类CpuKernel的虚析构函数。 - 消除 G.CLS.12 残留告警: 通过为
TileWithAxisCpuKernel析构函数添加override,补齐该类告警修复的最后 1 处。 - 保持默认实现不变: 仍保留
= default的默认析构语义,仅新增修饰关键字,属于纯声明层面的调整。


不准确?
atomgit-bot
10 天前 评论:
10 天前 评论:
10 天前 修改了pull request 的描述
liu-wei
10 天前 评论:
10 天前 评论:
compile


10 天前 预合并成功(commit_id: 72a0518c6f0cea1b03c6b7f25fef0973b27313e2)
10 天前 添加了label:cann-cla/yes
CANN-robot
10 天前 评论:
10 天前 评论:
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-math | ✅ yue-ma, 宋恺 (2/2) | ✅ yue-ma (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
liu-wei, thanks for your pull request. All authors of the commits have signed the CLA. 👍


10 天前 将yue-ma,zhou-qilong,wangrui_,rxtfeng,loov1,zhangzijie,jia0liang,zl_hw,songkai111,chenxingyu18,pingchuantang,llimwang,gubaocheng,andong_hw,xuejinghui,zhanw_coding设为评审人
10 天前 将yue-ma,zhou-qilong,wangrui_,rxtfeng,loov1,zhangzijie,jia0liang,zl_hw,songkai111,chenxingyu18,pingchuantang,llimwang,gubaocheng,andong_hw,xuejinghui,zhanw_coding设为评审人
10 天前 将yue-ma,zhou-qilong,wangrui_,rxtfeng,loov1,zhangzijie,jia0liang,zl_hw,songkai111,chenxingyu18,pingchuantang,llimwang,gubaocheng,andong_hw,xuejinghui,zhanw_coding设为审查人
10 天前 将yue-ma,zhou-qilong,wangrui_,rxtfeng,loov1,zhangzijie,jia0liang,zl_hw,songkai111,chenxingyu18,pingchuantang,llimwang,gubaocheng,andong_hw,xuejinghui,zhanw_coding设为审查人
CANN-robot
10 天前 评论:
10 天前 评论:
| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


10 天前 添加了label:ci-pipeline-running
10 天前 删除了label:ci-pipeline-running
10 天前 添加了label:ci-pipeline-passed
10 天前 添加了label:approved
songkai111
10 天前 评论:
10 天前 评论:
/lgtm


10 天前 添加了label:lgtm
10 天前 关闭了关联的issue
10 天前 合入了pull request
描述
修复 G.CLS.12 告警最后残留 1 处(重写虚函数应显式指定 override):
~TileWithAxisCpuKernel() override = default;基类
CpuKernel析构为 virtual;同类其余 6 处(strided_slice/lin_space/top_k_pq_distance/top_k_v2_d/topk/select_v2)已在最新 master 修复,本提交补齐最后一处。验证
override为纯编译期检查,零代码生成影响;tile_with_axis_aicpu.cpp 语法级编译验证通过;关联的Issue
https://gitcode.com/cann/ops-math/issues/3279
类型
🧹 代码清理