Adding optional to differentiate between empty sets and unset attributes

Signed-off-by: Ethan Mahintorabi <[email protected]>
This commit is contained in:
Ethan Mahintorabi
2024-03-10 01:56:33 +00:00
parent 36c1bade14
commit 8aef4d549e
8 changed files with 48 additions and 23 deletions
+2 -2
View File
@@ -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
{