-
Notifications
You must be signed in to change notification settings - Fork 579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hier connect with test #6413
base: master
Are you sure you want to change the base?
Hier connect with test #6413
Conversation
Signed-off-by: andyfox-rushc <andy@rushc.com>
Signed-off-by: andyfox-rushc <andy@rushc.com>
Signed-off-by: andyfox-rushc <andy@rushc.com>
Signed-off-by: andyfox-rushc <andy@rushc.com>
Signed-off-by: andyfox-rushc <andy@rushc.com>
…mode Signed-off-by: andyfox-rushc <andy@rushc.com>
Signed-off-by: andyfox-rushc <andy@rushc.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
src/dbSta/test/cpp/TestHconn.cpp
Outdated
for (dbSet<dbModBTerm>::iterator mod_bterm_iter = module_ports.begin(); | ||
mod_bterm_iter != module_ports.end(); | ||
mod_bterm_iter++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: use range-based for loop instead [modernize-loop-convert]
for (dbSet<dbModBTerm>::iterator mod_bterm_iter = module_ports.begin(); | |
mod_bterm_iter != module_ports.end(); | |
mod_bterm_iter++) { | |
for (auto module_port : module_ports) { |
src/dbSta/test/cpp/TestHconn.cpp:130:
- dbModBTerm* module_port = *mod_bterm_iter;
- sprintf(
+ sprintf(
src/dbSta/test/cpp/TestHconn.cpp
Outdated
for (dbSet<dbModInst>::iterator mod_inst_iter = module_instances.begin(); | ||
mod_inst_iter != module_instances.end(); | ||
mod_inst_iter++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: use range-based for loop instead [modernize-loop-convert]
for (dbSet<dbModInst>::iterator mod_inst_iter = module_instances.begin(); | |
mod_inst_iter != module_instances.end(); | |
mod_inst_iter++) { | |
for (auto module_inst : module_instances) { |
src/dbSta/test/cpp/TestHconn.cpp:153:
- dbModInst* module_inst = *mod_inst_iter;
- sprintf(tmp_str, "\t\tMod inst %s ", module_inst->getName());
+ sprintf(tmp_str, "\t\tMod inst %s ", module_inst->getName());
src/dbSta/test/cpp/TestHconn.cpp
Outdated
for (dbSet<dbModNet>::iterator mod_net_iter = mod_nets.begin(); | ||
mod_net_iter != mod_nets.end(); | ||
mod_net_iter++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: use range-based for loop instead [modernize-loop-convert]
for (dbSet<dbModNet>::iterator mod_net_iter = mod_nets.begin(); | |
mod_net_iter != mod_nets.end(); | |
mod_net_iter++) { | |
for (auto mod_net : mod_nets) { |
src/dbSta/test/cpp/TestHconn.cpp:217:
- dbModNet* mod_net = *mod_net_iter;
- sprintf(
+ sprintf(
Signed-off-by: andyfox-rushc <andy@rushc.com>
Signed-off-by: andyfox-rushc <andy@rushc.com>
Signed-off-by: andyfox-rushc <andy@rushc.com>
Signed-off-by: andyfox-rushc <andy@rushc.com>
clang-tidy review says "All clean, LGTM! 👍" |
…m on modnet Signed-off-by: andyfox-rushc <andy@rushc.com>
clang-tidy review says "All clean, LGTM! 👍" |
This pull request includes a C++ test case which builds a multiple level hierarchical design and exercises the creation of a hierarchical connection. This involved adding a cpp directory to the dbSta/test area. The main contribution of this pull request is a c++ level creation of a hierarchical test case.
Also included is a bug fix to the construction of the hierarchy extraction (getParentHierarchy) code which was causing a seg fault.
Ready for review.