登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
Gitee 2025年度开源项目评选启动,快来选出你心中的最佳开源项目!
代码拉取完成,页面将自动刷新
开源项目
>
工业软件
>
芯片开发
&
EDA/电子设计自动化
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
43
Star
196
Fork
91
iEDA
/
iEDA
代码
Issues
6
Pull Requests
3
Wiki
统计
流水线
服务
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
`src/operation/iPL/source/module/detail_placer/database/`下互相依赖的头文件包含关系不正确
进行中
#ID2I4C
雪泥喵爪
创建于
2025-10-18 18:15
## 问题影响 此问题导致iEDA在clang下无法编译通过。 ## 问题描述 在原本的代码中,是`DPBin.hh`包含`DPSegment.hh`,然而,`DPSegment`中直接引用了`DBPin`的完整定义: ```c++ std::vector<DPBin>& get_bin_list() {return _bin_list;} ``` 但是`DPBin`仅引用了`DPSegment`的指针。 因此`DPSegement`需要`DPBin`的完整定义,而`DPBin`不需要`DPSegement`的完整定义。因此应该是`DPSegment.hh`包含`DPBin.hh`。 ## 建议修改 除了调整这两个头文件的包含关系,其他几个引用这两个头文件的文件也需要更改。进行这些更改后,再加上其他部分更改,iEDA可以再clang上编译通过。 ```diff diff --git a/src/operation/iPL/source/module/detail_placer/database/DPBin.hh b/src/operation/iPL/source/module/detail_placer/database/DPBin.hh index 90ba779c3..95c588a3b 100644 --- a/src/operation/iPL/source/module/detail_placer/database/DPBin.hh +++ b/src/operation/iPL/source/module/detail_placer/database/DPBin.hh @@ -21,8 +21,8 @@ #include <set> #include "DPNode.hh" -#include "DPSegment.hh" #include "data/Rectangle.hh" + namespace ipl{ class DPSegment; diff --git a/src/operation/iPL/source/module/detail_placer/database/DPSegment.hh b/src/operation/iPL/source/module/detail_placer/database/DPSegment.hh index 34108a636..bdf42005e 100644 --- a/src/operation/iPL/source/module/detail_placer/database/DPSegment.hh +++ b/src/operation/iPL/source/module/detail_placer/database/DPSegment.hh @@ -20,12 +20,12 @@ #include <set> +#include "DPBin.hh" #include "DPNode.hh" namespace ipl{ class DPRow; -class DPBin; class DPSegment{ diff --git a/src/operation/iPL/source/module/detail_placer/operation/NFSpread.hh b/sr c/operation/iPL/source/module/detail_placer/operation/NFSpread.hh index 213e29afc..6219a36e5 100644 --- a/src/operation/iPL/source/module/detail_placer/operation/NFSpread.hh +++ b/src/operation/iPL/source/module/detail_placer/operation/NFSpread.hh @@ -27,6 +27,8 @@ #include "database/DPDatabase.hh" #include "DPOperator.hh" #include "database/DPNode.hh" +#include "database/DPBin.hh" +#include "database/DPSegment.hh" namespace ipl { ```
## 问题影响 此问题导致iEDA在clang下无法编译通过。 ## 问题描述 在原本的代码中,是`DPBin.hh`包含`DPSegment.hh`,然而,`DPSegment`中直接引用了`DBPin`的完整定义: ```c++ std::vector<DPBin>& get_bin_list() {return _bin_list;} ``` 但是`DPBin`仅引用了`DPSegment`的指针。 因此`DPSegement`需要`DPBin`的完整定义,而`DPBin`不需要`DPSegement`的完整定义。因此应该是`DPSegment.hh`包含`DPBin.hh`。 ## 建议修改 除了调整这两个头文件的包含关系,其他几个引用这两个头文件的文件也需要更改。进行这些更改后,再加上其他部分更改,iEDA可以再clang上编译通过。 ```diff diff --git a/src/operation/iPL/source/module/detail_placer/database/DPBin.hh b/src/operation/iPL/source/module/detail_placer/database/DPBin.hh index 90ba779c3..95c588a3b 100644 --- a/src/operation/iPL/source/module/detail_placer/database/DPBin.hh +++ b/src/operation/iPL/source/module/detail_placer/database/DPBin.hh @@ -21,8 +21,8 @@ #include <set> #include "DPNode.hh" -#include "DPSegment.hh" #include "data/Rectangle.hh" + namespace ipl{ class DPSegment; diff --git a/src/operation/iPL/source/module/detail_placer/database/DPSegment.hh b/src/operation/iPL/source/module/detail_placer/database/DPSegment.hh index 34108a636..bdf42005e 100644 --- a/src/operation/iPL/source/module/detail_placer/database/DPSegment.hh +++ b/src/operation/iPL/source/module/detail_placer/database/DPSegment.hh @@ -20,12 +20,12 @@ #include <set> +#include "DPBin.hh" #include "DPNode.hh" namespace ipl{ class DPRow; -class DPBin; class DPSegment{ diff --git a/src/operation/iPL/source/module/detail_placer/operation/NFSpread.hh b/sr c/operation/iPL/source/module/detail_placer/operation/NFSpread.hh index 213e29afc..6219a36e5 100644 --- a/src/operation/iPL/source/module/detail_placer/operation/NFSpread.hh +++ b/src/operation/iPL/source/module/detail_placer/operation/NFSpread.hh @@ -27,6 +27,8 @@ #include "database/DPDatabase.hh" #include "DPOperator.hh" #include "database/DPNode.hh" +#include "database/DPBin.hh" +#include "database/DPSegment.hh" namespace ipl { ```
评论 (
0
)
登录
后才可以发表评论
状态
进行中
待办的
进行中
已完成
已关闭
负责人
未设置
标签
未设置
标签管理
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (3)
标签 (1)
master
opendacs_P3
0.1.x
v0.1.0
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
参与者(1)
C++
1
https://gitee.com/oscc-project/iEDA.git
[email protected]
:oscc-project/iEDA.git
oscc-project
iEDA
iEDA
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册