Skip to content

Commit 3c6b4be

Browse files
committed
Resolved clang-tidy issues.
Signed-off-by: Jaehyun Kim <[email protected]>
1 parent 2ad65de commit 3c6b4be

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

src/odb/src/db/dbBlock.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3703,10 +3703,12 @@ std::string dbBlock::makeNewName(dbModInst* parent,
37033703
// Decide hierarchical name without unique index
37043704
fmt::memory_buffer buf;
37053705
if (parent) {
3706-
buf.append(parent->getHierarchicalName());
3707-
buf.push_back(getHierarchyDelimiter());
3706+
fmt::format_to(std::back_inserter(buf),
3707+
"{}{}",
3708+
parent->getHierarchicalName(),
3709+
getHierarchyDelimiter());
37083710
}
3709-
buf.append(std::string_view(base_name));
3711+
buf.append(base_name, base_name + std::strlen(base_name));
37103712
buf.push_back('\0'); // Null-terminate for find* functions
37113713

37123714
// If uniquify is IF_NEEDED*, check for uniqueness before adding a postfix.

src/odb/src/db/dbDatabase.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ namespace odb {
4343
const uint db_schema_major = 0; // Not used...
4444
const uint db_schema_initial = 57;
4545

46-
const uint db_schema_minor = 112; // Current revision number
46+
const uint db_schema_minor = 113; // Current revision number
4747

4848
// Revision where unique net/inst indices were added to dbBlock
49-
const uint db_schema_unique_indices = 112;
49+
const uint db_schema_unique_indices = 113;
50+
51+
//
52+
const uint db_schema_chip_extended = 112;
5053

5154
// Revision where the map which associates instances to their
5255
// scan version was added

src/odb/src/db/dbTypes.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,9 +2229,17 @@ const char* dbNameUniquifyType::getString() const
22292229
value = "ALWAYS";
22302230
break;
22312231

2232+
case ALWAYS_WITH_UNDERSCORE:
2233+
value = "ALWAYS_WITH_UNDERSCORE";
2234+
break;
2235+
22322236
case IF_NEEDED:
22332237
value = "IF_NEEDED";
22342238
break;
2239+
2240+
case IF_NEEDED_WITH_UNDERSCORE:
2241+
value = "IF_NEEDED_WITH_UNDERSCORE";
2242+
break;
22352243
}
22362244

22372245
return value;

0 commit comments

Comments
 (0)