Skip to content

Commit 9d9f5b1

Browse files
committed
Fix some missing includes.
And sort the headers in the affected files according to style guide. Breakdown ``` util/RiseFallMinMax.cc: #include "MinMax.hh" for sta::MinMaxAll sdc/Variables.cc: #include "PocvMode.hh" for sta::PocvMode sdc/PortExtCap.cc: #include "NetworkClass.hh" for sta::Port util/ReportTcl.cc: #include "Report.hh" for sta::Report util/RiseFallMinMaxDelay.cc: #include "StaState.hh" for sta::StaState util/RiseFallMinMax.cc: #include "Transition.hh" for sta::RiseFallBoth util/RiseFallValues.cc: #include "Transition.hh" for sta::RiseFallBoth sdc/PortExtCap.cc: #include "MinMax.hh" for sta::MinMax util/RiseFallMinMaxDelay.cc: #include "MinMax.hh" for sta::MinMax dcalc/DelayNormal.cc: #include "Delay.hh" for sta::Delay dcalc/DelayScalar.cc: #include "Delay.hh" for sta::Delay dcalc/DelaySkewNormal.cc: #include "Delay.hh" for sta::Delay util/RiseFallMinMaxDelay.cc: #include "Delay.hh" for sta::Delay dcalc/Delay.cc: #include "MinMax.hh" for sta::EarlyLate dcalc/DelayNormal.cc: #include "MinMax.hh" for sta::EarlyLate dcalc/DelayScalar.cc: #include "MinMax.hh" for sta::EarlyLate dcalc/DelaySkewNormal.cc: #include "MinMax.hh" for sta::EarlyLate sdc/PortExtCap.cc: #include "Transition.hh" for sta::RiseFall util/RiseFallMinMaxDelay.cc: #include "Transition.hh" for sta::RiseFall util/MinMax.cc: #include <array> for std::array util/Transition.cc: #include <array> for std::array power/VcdParse.cc: #include <stdexcept> for std::invalid_argument dcalc/FindRoot.cc: #include <utility> for std::pair util/StringUtil.cc: #include <utility> for std::pair dcalc/Delay.cc: #include <string> for std::string dcalc/DelayNormal.cc: #include <string> for std::string dcalc/DelayScalar.cc: #include <string> for std::string dcalc/DelaySkewNormal.cc: #include <string> for std::string liberty/Units.cc: #include <string> for std::string network/VerilogNamespace.cc: #include <string> for std::string power/VcdParse.cc: #include <string> for std::string search/PocvMode.cc: #include <string> for std::string util/Error.cc: #include <string> for std::string util/PatternMatch.cc: #include <string> for std::string util/Report.cc: #include <string> for std::string util/StringUtil.cc: #include <string> for std::string util/Transition.cc: #include <string> for std::string dcalc/ArnoldiDelayCalc.cc: #include "Error.hh" for criticalError search/GatedClk.cc: #include "Error.hh" for criticalError search/Levelize.cc: #include "Error.hh" for criticalError util/Report.cc: #include <cstdio> for printf util/MachineWin32.cc: #include <cstdarg> for va_list ``` Signed-off-by: Henner Zeller <h.zeller@acm.org>
1 parent 63efee6 commit 9d9f5b1

31 files changed

Lines changed: 76 additions & 27 deletions

dcalc/ArnoldiDelayCalc.cc

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,26 @@
3131
#include <cstdio>
3232
#include <cmath> // abs
3333

34-
#include "Report.hh"
34+
#include "ArcDelayCalc.hh"
35+
#include "Arnoldi.hh"
36+
#include "ArnoldiReduce.hh"
3537
#include "Debug.hh"
36-
#include "Units.hh"
38+
#include "DelayCalc.hh"
39+
#include "Error.hh"
40+
#include "Graph.hh"
41+
#include "GraphDelayCalc.hh"
3742
#include "Liberty.hh"
38-
#include "TimingModel.hh"
39-
#include "TimingArc.hh"
40-
#include "TableModel.hh"
41-
#include "PortDirection.hh"
43+
#include "LumpedCapDelayCalc.hh"
4244
#include "Network.hh"
43-
#include "Graph.hh"
4445
#include "Parasitics.hh"
46+
#include "PortDirection.hh"
47+
#include "Report.hh"
4548
#include "Sdc.hh"
46-
#include "DelayCalc.hh"
47-
#include "ArcDelayCalc.hh"
48-
#include "LumpedCapDelayCalc.hh"
49-
#include "GraphDelayCalc.hh"
49+
#include "TableModel.hh"
50+
#include "TimingArc.hh"
51+
#include "TimingModel.hh"
52+
#include "Units.hh"
5053
#include "Variables.hh"
51-
#include "Arnoldi.hh"
52-
#include "ArnoldiReduce.hh"
5354

5455
namespace sta {
5556

dcalc/Delay.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@
2525
#include "Delay.hh"
2626

2727
#include <cmath>
28+
#include <string>
2829

29-
#include "StaConfig.hh"
3030
#include "Fuzzy.hh"
31-
#include "Units.hh"
31+
#include "MinMax.hh"
32+
#include "StaConfig.hh"
3233
#include "StaState.hh"
34+
#include "Units.hh"
3335
#include "Variables.hh"
3436

3537
namespace sta {

dcalc/DelayNormal.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,15 @@
2525
#include "DelayNormal.hh"
2626

2727
#include <cmath> // sqrt
28+
#include <string>
2829

30+
#include "Delay.hh"
2931
#include "Error.hh"
30-
#include "Fuzzy.hh"
31-
#include "Units.hh"
3232
#include "Format.hh"
33+
#include "Fuzzy.hh"
34+
#include "MinMax.hh"
3335
#include "StaState.hh"
36+
#include "Units.hh"
3437
#include "Variables.hh"
3538

3639
namespace sta {

dcalc/DelayScalar.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,13 @@
2525
// Delay as floats, non-SSTA.
2626

2727
#include "DelayScalar.hh"
28+
#include <string>
2829

30+
#include "Delay.hh"
2931
#include "Fuzzy.hh"
30-
#include "Units.hh"
32+
#include "MinMax.hh"
3133
#include "StaState.hh"
34+
#include "Units.hh"
3235

3336
namespace sta {
3437

dcalc/DelaySkewNormal.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,15 @@
2525
#include "DelaySkewNormal.hh"
2626

2727
#include <cmath> // sqrt
28+
#include <string>
2829

30+
#include "Delay.hh"
2931
#include "Error.hh"
30-
#include "Fuzzy.hh"
31-
#include "Units.hh"
3232
#include "Format.hh"
33+
#include "Fuzzy.hh"
34+
#include "MinMax.hh"
3335
#include "StaState.hh"
36+
#include "Units.hh"
3437
#include "Variables.hh"
3538

3639
namespace sta {

dcalc/FindRoot.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "FindRoot.hh"
2626

2727
#include <cmath> // abs
28+
#include <utility>
2829

2930
namespace sta {
3031

include/sta/PowerClass.hh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#pragma once
2626

27+
#include <string>
2728
#include <vector>
2829
#include <utility>
2930

@@ -94,6 +95,7 @@ private:
9495
float leakage_{0.0};
9596
};
9697

98+
class Instance;
9799
using InstPower = std::pair<const Instance*, PowerResult>;
98100
using InstPowers = std::vector<InstPower>;
99101

liberty/LibExprReaderPvt.hh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#pragma once
2626

27+
#include <cstddef>
2728
#include <string>
2829
#include <string_view>
2930

liberty/Units.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@
2525
#include "Units.hh"
2626

2727
#include <cmath> // abs
28+
#include <string>
2829

2930
#include "Format.hh"
30-
#include "StringUtil.hh"
31-
#include "MinMax.hh" // INF
3231
#include "Fuzzy.hh"
32+
#include "MinMax.hh" // INF
33+
#include "StringUtil.hh"
3334

3435
namespace sta {
3536

network/VerilogNamespace.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@
2525
#include "VerilogNamespace.hh"
2626

2727
#include <cctype>
28+
#include <string>
2829

29-
#include "StringUtil.hh"
3030
#include "ParseBus.hh"
31+
#include "StringUtil.hh"
3132

3233
namespace sta {
3334

0 commit comments

Comments
 (0)