Skip to content

Commit 718ced1

Browse files
authored
Merge pull request #10188 from The-OpenROAD-Project-staging/cut-tidy-naming
cut: adjust naming to Google-style (excluding method names)
2 parents d117bb0 + 189935f commit 718ced1

6 files changed

Lines changed: 206 additions & 203 deletions

File tree

src/cut/include/cut/blif.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@ class Blif
2929
public:
3030
Blif(utl::Logger* logger,
3131
sta::dbSta* sta,
32-
const std::string& const0_cell_,
33-
const std::string& const0_cell_port_,
34-
const std::string& const1_cell_,
35-
const std::string& const1_cell_port_,
36-
int call_id_);
32+
const std::string& const0_cell,
33+
const std::string& const0_cell_port,
34+
const std::string& const1_cell,
35+
const std::string& const1_cell_port,
36+
int call_id);
3737
void setReplaceableInstances(std::set<odb::dbInst*>& insts);
3838
void addReplaceableInstance(odb::dbInst* inst);
3939
bool writeBlif(const char* file_name, bool write_arrival_requireds = false);
4040
bool readBlif(const char* file_name, odb::dbBlock* block);
4141
bool inspectBlif(const char* file_name, int& num_instances);
4242
float getRequiredTime(sta::Pin* term, bool is_rise);
4343
float getArrivalTime(sta::Pin* term, bool is_rise);
44-
void addArrival(sta::Pin* pin, const std::string& netName);
45-
void addRequired(sta::Pin* pin, const std::string& netName);
44+
void addArrival(sta::Pin* pin, const std::string& net_name);
45+
void addRequired(sta::Pin* pin, const std::string& net_name);
4646

4747
private:
4848
std::set<odb::dbInst*> instances_to_optimize_;

src/cut/include/cut/blifParser.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ namespace cut {
1515

1616
enum class GateType
1717
{
18-
None,
19-
Mlatch,
20-
Gate
18+
kNone,
19+
kMlatch,
20+
kGate
2121
};
2222

2323
struct Gate

src/cut/src/abc_library_factory.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,15 +273,15 @@ std::vector<abc::SC_Pin*> AbcLibraryFactory::CreateAbcOutputPins(
273273
}
274274

275275
// Set standard cell function
276-
abc::Vec_Wrd_t* vFunc;
276+
abc::Vec_Wrd_t* v_func;
277277
abc::Vec_WrdErase(&output_pin->vFunc);
278-
vFunc = abc::Mio_ParseFormulaTruth(
278+
v_func = abc::Mio_ParseFormulaTruth(
279279
output_pin->func_text,
280280
(char**) (abc::Vec_PtrArray(input_names_abc)),
281281
input_names.size());
282282

283-
output_pin->vFunc = *vFunc;
284-
ABC_FREE(vFunc);
283+
output_pin->vFunc = *v_func;
284+
ABC_FREE(v_func);
285285
abc::Vec_PtrFree(input_names_abc);
286286

287287
// ABC has a limit of one timing arc per input pin. Keep track

0 commit comments

Comments
 (0)