mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-09-04 08:43:04 +02:00
Adding optional to differentiate between empty sets and unset attributes
Signed-off-by: Ethan Mahintorabi <[email protected]>
This commit is contained in:
@@ -122,7 +122,7 @@ NetworkNameAdapter::id(const Cell *cell) const
|
||||
return network_->id(cell);
|
||||
}
|
||||
|
||||
std::string
|
||||
std::optional<std::string>
|
||||
NetworkNameAdapter::getAttribute(const Cell *cell,
|
||||
const std::string &key) const
|
||||
{
|
||||
@@ -334,7 +334,7 @@ NetworkNameAdapter::cell(const Instance *instance) const
|
||||
return network_->cell(instance);
|
||||
}
|
||||
|
||||
std::string
|
||||
std::optional<std::string>
|
||||
NetworkNameAdapter::getAttribute(const Instance *inst,
|
||||
const std::string &key) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user