已合并
fix(aicpu): tile_with_axis 析构函数补充 override 修饰(G.CLS.12 残留) #5920
fix(aicpu): tile_with_axis 析构函数补充 override 修饰(G.CLS.12 残留) #5920
已合并
liu-wei创建于 10 天前
liu-wei
liu-wei成员
10 天前

描述

修复 G.CLS.12 告警最后残留 1 处(重写虚函数应显式指定 override):

告警 文件 修复
G.CLS.12 tile_with_axis_aicpu.h ~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 语法级编译验证通过;
  • CI 流水线待跑。

关联的Issue

https://gitcode.com/cann/ops-math/issues/3279

类型

🧹 代码清理

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 liu-wei 的贡献)
liu-weiliu-wei成员
10 天前 创建了 pull request,commit 265133d6
atomgit-bot
atomgit-bot
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 的默认析构语义,仅新增修饰关键字,属于纯声明层面的调整。
likedislike
不准确?
atomgit-bot
atomgit-bot
10 天前 评论:

代码审查

✅ 未发现问题

likedislike
不准确?
liu-weiliu-wei成员
10 天前 修改了pull request 的描述
liu-wei
liu-wei成员
10 天前 评论:

compile

likedislike
liu-weiliu-wei成员
10 天前 预合并成功(commit_id: 72a0518c6f0cea1b03c6b7f25fef0973b27313e2)
CANN-robotCANN-robot成员
10 天前 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
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 /approve or /lgtm
  • Commenting /approve implies 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. 👍

likedislike
CANN-robotCANN-robot成员
10 天前 将yue-ma,zhou-qilong,wangrui_,rxtfeng,loov1,zhangzijie,jia0liang,zl_hw,songkai111,chenxingyu18,pingchuantang,llimwang,gubaocheng,andong_hw,xuejinghui,zhanw_coding设为评审人
CANN-robotCANN-robot成员
10 天前 将yue-ma,zhou-qilong,wangrui_,rxtfeng,loov1,zhangzijie,jia0liang,zl_hw,songkai111,chenxingyu18,pingchuantang,llimwang,gubaocheng,andong_hw,xuejinghui,zhanw_coding设为审查人
CANN-robot
CANN-robot成员
10 天前 评论:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robot成员
10 天前 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
10 天前 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
10 天前 添加了label:ci-pipeline-passed
sunchun成员
10 天前 评论:

您好,PR已满足合入指标,请尽快联系Committer进行合入。如暂时不需要合入,请在PR标题前加[WIP]

likedislike
yue-ma成员
10 天前 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
10 天前 添加了label:approved
songkai111成员
10 天前 评论:

/lgtm

likedislike
CANN-robotCANN-robot成员
10 天前 添加了label:lgtm
CANN-robotCANN-robot成员
10 天前 关闭了关联的issue
CANN-robotCANN-robot成员
10 天前 合入了pull request