Skip to content

Commit 37d5348

Browse files
committed
apply : clang format
1 parent d33b31d commit 37d5348

21 files changed

Lines changed: 6697 additions & 6483 deletions

include/sta/Clock.hh

Lines changed: 68 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
// OpenSTA, Static Timing Analyzer
22
// Copyright (c) 2025, Parallax Software, Inc.
3-
//
3+
//
44
// This program is free software: you can redistribute it and/or modify
55
// it under the terms of the GNU General Public License as published by
66
// the Free Software Foundation, either version 3 of the License, or
77
// (at your option) any later version.
8-
//
8+
//
99
// This program is distributed in the hope that it will be useful,
1010
// but WITHOUT ANY WARRANTY; without even the implied warranty of
1111
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
// GNU General Public License for more details.
13-
//
13+
//
1414
// You should have received a copy of the GNU General Public License
1515
// along with this program. If not, see <https://www.gnu.org/licenses/>.
16-
//
16+
//
1717
// The origin of this software must not be misrepresented; you must not
1818
// claim that you wrote the original software.
19-
//
19+
//
2020
// Altered source versions must be plainly marked as such, and must not be
2121
// misrepresented as being the original software.
22-
//
22+
//
2323
// This notice may not be removed or altered from any source distribution.
2424

2525
#pragma once
@@ -32,7 +32,7 @@
3232

3333
namespace sta {
3434

35-
typedef Map<Pin*, PinSet*> ClkHpinEdgeMap;
35+
typedef Map<Pin *, PinSet *> ClkHpinEdgeMap;
3636

3737
class Clock : public SdcCmdComment
3838
{
@@ -63,40 +63,40 @@ public:
6363
bool isIdeal() const { return !is_propagated_; }
6464
// Ideal clock slew.
6565
void slew(const RiseFall *rf,
66-
const MinMax *min_max,
67-
// Return values.
68-
float &slew,
69-
bool &exists) const;
66+
const MinMax *min_max,
67+
// Return values.
68+
float &slew,
69+
bool &exists) const;
7070
// Return zero (default) if no slew exists.
7171
float slew(const RiseFall *rf,
72-
const MinMax *min_max) const;
72+
const MinMax *min_max) const;
7373
void setSlew(const RiseFall *rf,
74-
const MinMax *min_max,
75-
float slew);
74+
const MinMax *min_max,
75+
float slew);
7676
void setSlew(const RiseFallBoth *rf,
77-
const MinMaxAll *min_max,
78-
float slew);
77+
const MinMaxAll *min_max,
78+
float slew);
7979
void removeSlew();
8080
const RiseFallMinMax &slews() const { return slews_; }
8181
void setSlewLimit(const RiseFallBoth *rf,
82-
const PathClkOrData clk_data,
83-
const MinMax *min_max,
84-
float slew);
82+
const PathClkOrData clk_data,
83+
const MinMax *min_max,
84+
float slew);
8585
void slewLimit(const RiseFall *rf,
86-
const PathClkOrData clk_data,
87-
const MinMax *min_max,
88-
// Return values.
89-
float &slew,
90-
bool &exists) const;
86+
const PathClkOrData clk_data,
87+
const MinMax *min_max,
88+
// Return values.
89+
float &slew,
90+
bool &exists) const;
9191
ClockUncertainties *uncertainties() const { return uncertainties_; }
9292
void uncertainty(const SetupHold *setup_hold,
93-
// Return values.
94-
float &uncertainty,
95-
bool &exists) const;
93+
// Return values.
94+
float &uncertainty,
95+
bool &exists) const;
9696
void setUncertainty(const SetupHoldAll *setup_hold,
97-
float uncertainty);
97+
float uncertainty);
9898
void setUncertainty(const SetupHold *setup_hold,
99-
float uncertainty);
99+
float uncertainty);
100100
void removeUncertainty(const SetupHoldAll *setup_hold);
101101

102102
void setPeriod(float period);
@@ -124,45 +124,45 @@ public:
124124
bool isDivideByOneCombinational() const;
125125
bool generatedUpToDate() const;
126126
void srcPinVertices(VertexSet &src_vertices,
127-
const Network *network,
128-
Graph *graph);
127+
const Network *network,
128+
Graph *graph);
129129
// True if the generated clock waveform is up to date.
130130
bool waveformValid() const { return waveform_valid_; }
131131
void waveformInvalid();
132132

133133
protected:
134134
// Private to Sdc::makeClock.
135135
Clock(const char *name,
136-
int index,
136+
int index,
137137
const Network *network);
138138
void initClk(PinSet *pins,
139-
bool add_to_pins,
140-
float period,
141-
FloatSeq *waveform,
142-
const char *comment,
143-
const Network *network);
139+
bool add_to_pins,
140+
float period,
141+
FloatSeq *waveform,
142+
const char *comment,
143+
const Network *network);
144144
void initGeneratedClk(PinSet *pins,
145-
bool add_to_pins,
146-
Pin *src_pin,
147-
Clock *master_clk,
148-
int divide_by,
149-
int multiply_by,
150-
float duty_cycle,
151-
bool invert,
152-
bool combinational,
153-
IntSeq *edges,
154-
FloatSeq *edge_shifts,
155-
bool is_propagated,
156-
const char *comment,
157-
const Network *network);
145+
bool add_to_pins,
146+
Pin *src_pin,
147+
Clock *master_clk,
148+
int divide_by,
149+
int multiply_by,
150+
float duty_cycle,
151+
bool invert,
152+
bool combinational,
153+
IntSeq *edges,
154+
FloatSeq *edge_shifts,
155+
bool is_propagated,
156+
const char *comment,
157+
const Network *network);
158158
void setPins(PinSet *pins,
159-
const Network *network);
159+
const Network *network);
160160
void setMasterClk(Clock *master);
161161
void makeClkEdges();
162162
void setClkEdgeTimes();
163163
void setClkEdgeTime(const RiseFall *rf);
164164
void generateScaledClk(const Clock *src_clk,
165-
float scale);
165+
float scale);
166166
void generateEdgesClk(const Clock *src_clk);
167167

168168
const char *name_;
@@ -229,10 +229,10 @@ clkCmp(const Clock *clk1,
229229
const Clock *clk2);
230230
int
231231
clkEdgeCmp(const ClockEdge *clk_edge1,
232-
const ClockEdge *clk_edge2);
232+
const ClockEdge *clk_edge2);
233233
bool
234234
clkEdgeLess(const ClockEdge *clk_edge1,
235-
const ClockEdge *clk_edge2);
235+
const ClockEdge *clk_edge2);
236236

237237
class ClockNameLess
238238
{
@@ -247,22 +247,22 @@ class InterClockUncertainty
247247
{
248248
public:
249249
InterClockUncertainty(const Clock *src,
250-
const Clock *target);
250+
const Clock *target);
251251
const Clock *src() const { return src_; }
252252
const Clock *target() const { return target_; }
253253
void uncertainty(const RiseFall *src_rf,
254-
const RiseFall *tgt_rf,
255-
const SetupHold *setup_hold,
256-
// Return values.
257-
float &uncertainty,
258-
bool &exists) const;
254+
const RiseFall *tgt_rf,
255+
const SetupHold *setup_hold,
256+
// Return values.
257+
float &uncertainty,
258+
bool &exists) const;
259259
void setUncertainty(const RiseFallBoth *src_rf,
260-
const RiseFallBoth *tgt_rf,
261-
const SetupHoldAll *setup_hold,
262-
float uncertainty);
260+
const RiseFallBoth *tgt_rf,
261+
const SetupHoldAll *setup_hold,
262+
float uncertainty);
263263
void removeUncertainty(const RiseFallBoth *src_rf,
264-
const RiseFallBoth *tgt_rf,
265-
const SetupHoldAll *setup_hold);
264+
const RiseFallBoth *tgt_rf,
265+
const SetupHoldAll *setup_hold);
266266
const RiseFallMinMax *uncertainties(const RiseFall *src_rf) const;
267267
bool empty() const;
268268

@@ -276,14 +276,14 @@ class InterClockUncertaintyLess
276276
{
277277
public:
278278
bool operator()(const InterClockUncertainty *inter1,
279-
const InterClockUncertainty *inter2) const;
279+
const InterClockUncertainty *inter2) const;
280280
};
281281

282282
class ClkNameLess
283283
{
284284
public:
285285
bool operator()(const Clock *clk1,
286-
const Clock *clk2) const
286+
const Clock *clk2) const
287287
{
288288
return stringLess(clk1->name(), clk2->name());
289289
}
@@ -297,4 +297,4 @@ compare(const ClockSet *set1,
297297
bool
298298
isPowerofTwo(int i);
299299

300-
} // namespace
300+
} // namespace sta

include/sta/GeneratedClock.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ protected:
4343
friend class LibertyCell;
4444
};
4545

46-
} // namespace
46+
} // namespace sta

0 commit comments

Comments
 (0)