From 3d6d6e9580dc8c64a85e5cafa3fcfc61fa885c45 Mon Sep 17 00:00:00 2001 From: James Cherry Date: Sat, 15 Feb 2020 17:13:16 -0700 Subject: [PATCH] use #pragma once --- app/StaMain.hh | 4 +--- dcalc/ArcDelayCalc.hh | 4 +--- dcalc/Arnoldi.hh | 4 +--- dcalc/ArnoldiDelayCalc.hh | 4 +--- dcalc/ArnoldiReduce.hh | 5 +---- dcalc/DcalcAnalysisPt.hh | 4 +--- dcalc/DelayCalc.hh | 4 +--- dcalc/DmpCeff.hh | 4 +--- dcalc/DmpDelayCalc.hh | 4 +--- dcalc/GraphDelayCalc.hh | 4 +--- dcalc/GraphDelayCalc1.hh | 4 +--- dcalc/LumpedCapDelayCalc.hh | 4 +--- dcalc/NetCaps.hh | 4 +--- dcalc/RCDelayCalc.hh | 4 +--- dcalc/SimpleRCDelayCalc.hh | 4 +--- dcalc/UnitDelayCalc.hh | 4 +--- graph/Delay.hh | 4 +--- graph/DelayFloat.cc | 3 ++- graph/DelayFloat.hh | 4 +--- graph/DelayNormal1.cc | 3 ++- graph/DelayNormal1.hh | 4 +--- graph/DelayNormal2.cc | 3 ++- graph/DelayNormal2.hh | 4 +--- graph/Graph.hh | 4 +--- graph/GraphClass.hh | 4 +--- graph/GraphCmp.hh | 4 +--- liberty/EquivCells.hh | 4 +--- liberty/FuncExpr.hh | 4 +--- liberty/InternalPower.hh | 4 +--- liberty/LeakagePower.hh | 4 +--- liberty/Liberty.hh | 4 +--- liberty/LibertyBuilder.hh | 4 +--- liberty/LibertyClass.hh | 4 +--- liberty/LibertyExpr.hh | 4 +--- liberty/LibertyExprPvt.hh | 5 +---- liberty/LibertyParser.hh | 4 +--- liberty/LibertyReader.hh | 4 +--- liberty/LibertyReaderPvt.hh | 4 +--- liberty/LinearModel.hh | 4 +--- liberty/Sequential.hh | 4 +--- liberty/TableModel.hh | 4 +--- liberty/TimingArc.hh | 4 +--- liberty/TimingModel.hh | 4 +--- liberty/TimingRole.hh | 6 +----- liberty/Transition.hh | 4 +--- liberty/Units.hh | 4 +--- liberty/Wireload.hh | 4 +--- network/ConcreteLibrary.hh | 4 +--- network/ConcreteNetwork.hh | 4 +--- network/HpinDrvrLoad.hh | 5 +---- network/MakeConcreteNetwork.hh | 4 +--- network/Network.hh | 4 +--- network/NetworkClass.hh | 4 +--- network/NetworkCmp.hh | 4 +--- network/ParseBus.hh | 4 +--- network/PortDirection.hh | 4 +--- network/SdcNetwork.hh | 4 +--- network/VerilogNamespace.hh | 4 +--- parasitics/ConcreteParasitics.hh | 4 +--- parasitics/ConcreteParasiticsPvt.hh | 4 +--- parasitics/EstimateParasitics.hh | 4 +--- parasitics/MakeConcreteParasitics.hh | 4 +--- parasitics/NullParasitics.hh | 4 +--- parasitics/Parasitics.hh | 4 +--- parasitics/ParasiticsClass.hh | 4 +--- parasitics/ReduceParasitics.hh | 4 +--- parasitics/SpefNamespace.hh | 4 +--- parasitics/SpefReader.hh | 4 +--- parasitics/SpefReaderPvt.hh | 4 +--- sdc/Clock.hh | 4 +--- sdc/ClockGatingCheck.hh | 4 +--- sdc/ClockGroups.hh | 4 +--- sdc/ClockInsertion.hh | 4 +--- sdc/ClockLatency.hh | 4 +--- sdc/CycleAccting.hh | 4 +--- sdc/DataCheck.hh | 4 +--- sdc/DeratingFactors.hh | 4 +--- sdc/DisabledPorts.hh | 4 +--- sdc/ExceptionPath.hh | 4 +--- sdc/InputDrive.hh | 4 +--- sdc/MinMaxValues.hh | 4 +--- sdc/PinPair.hh | 4 +--- sdc/PortDelay.hh | 4 +--- sdc/PortExtCap.hh | 4 +--- sdc/RiseFallMinMax.hh | 4 +--- sdc/RiseFallValues.hh | 4 +--- sdc/Sdc.hh | 4 +--- sdc/SdcClass.hh | 4 +--- sdc/SdcCmdComment.hh | 4 +--- sdc/WriteSdc.hh | 4 +--- sdc/WriteSdcPvt.hh | 4 +--- sdf/ReportAnnotation.hh | 4 +--- sdf/Sdf.hh | 4 +--- sdf/SdfReader.hh | 4 +--- sdf/SdfWriter.hh | 4 +--- search/Bfs.hh | 4 +--- search/CheckMaxSkews.hh | 4 +--- search/CheckMinPeriods.hh | 4 +--- search/CheckMinPulseWidths.hh | 4 +--- search/CheckSlewLimits.hh | 4 +--- search/CheckTiming.hh | 4 +--- search/ClkInfo.hh | 4 +--- search/ClkSkew.hh | 4 +--- search/Corner.hh | 4 +--- search/Crpr.hh | 4 +--- search/FindRegister.hh | 4 +--- search/GatedClk.hh | 4 +--- search/Genclks.hh | 4 +--- search/Latches.hh | 4 +--- search/Levelize.hh | 4 +--- search/Path.hh | 4 +--- search/PathAnalysisPt.hh | 4 +--- search/PathEnd.hh | 4 +--- search/PathEnum.hh | 4 +--- search/PathEnumed.hh | 4 +--- search/PathExpanded.hh | 4 +--- search/PathGroup.hh | 4 +--- search/PathRef.hh | 4 +--- search/PathVertex.hh | 4 +--- search/PathVertexRep.hh | 4 +--- search/Power.hh | 4 +--- search/Property.hh | 4 +--- search/ReportPath.hh | 4 +--- search/Search.hh | 4 +--- search/SearchClass.hh | 4 +--- search/SearchPred.hh | 4 +--- search/Sim.hh | 4 +--- search/Sta.hh | 4 +--- search/StaState.hh | 4 +--- search/Tag.hh | 4 +--- search/TagGroup.hh | 4 +--- search/VertexVisitor.hh | 4 +--- search/VisitPathEnds.hh | 4 +--- search/VisitPathGroupVertices.hh | 4 +--- search/WorstSlack.hh | 4 +--- search/WritePathSpice.hh | 4 +--- util/Debug.hh | 4 +--- util/DisallowCopyAssign.hh | 5 +---- util/DispatchQueue.hh | 4 +--- util/EnumNameMap.hh | 4 +--- util/Error.hh | 4 +--- util/Fuzzy.hh | 4 +--- util/Hash.hh | 4 +--- util/HashSet.hh | 4 +--- util/Iterator.hh | 4 +--- util/Machine.hh | 6 ++---- util/Map.hh | 4 +--- util/MinMax.hh | 4 +--- util/Mutex.hh | 4 +--- util/ObjectId.hh | 4 +--- util/ObjectTable.hh | 4 +--- util/PatternMatch.hh | 4 +--- util/Report.hh | 4 +--- util/ReportStd.hh | 4 +--- util/ReportTcl.hh | 4 +--- util/Set.hh | 4 +--- util/Stats.hh | 4 +--- util/StringSeq.hh | 4 +--- util/StringSet.hh | 4 +--- util/StringUtil.hh | 4 +--- util/TokenParser.hh | 4 +--- util/UnorderedMap.hh | 4 +--- util/UnorderedSet.hh | 4 +--- util/Vector.hh | 4 +--- util/Zlib.hh | 5 +---- verilog/VerilogReader.hh | 5 +---- verilog/VerilogReaderPvt.hh | 4 +--- verilog/VerilogWriter.hh | 5 +---- 168 files changed, 172 insertions(+), 508 deletions(-) diff --git a/app/StaMain.hh b/app/StaMain.hh index 2b188e89..67fa673b 100644 --- a/app/StaMain.hh +++ b/app/StaMain.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_APP_H -#define STA_APP_H +#pragma once struct Tcl_Interp; @@ -65,4 +64,3 @@ sourceTclFile(const char *filename, Tcl_Interp *interp); } // namespace -#endif diff --git a/dcalc/ArcDelayCalc.hh b/dcalc/ArcDelayCalc.hh index 5113cedd..d1f19788 100644 --- a/dcalc/ArcDelayCalc.hh +++ b/dcalc/ArcDelayCalc.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_ARC_DELAY_CALC_H -#define STA_ARC_DELAY_CALC_H +#pragma once #include #include "DisallowCopyAssign.hh" @@ -143,4 +142,3 @@ private: }; } // namespace -#endif diff --git a/dcalc/Arnoldi.hh b/dcalc/Arnoldi.hh index af29794f..99b8d955 100644 --- a/dcalc/Arnoldi.hh +++ b/dcalc/Arnoldi.hh @@ -18,8 +18,7 @@ // // Author: W. Scott -#ifndef ARNOLDI_H -#define ARNOLDI_H +#pragma once #include "ConcreteParasiticsPvt.hh" @@ -80,4 +79,3 @@ struct timing_table }; } // namespace -#endif diff --git a/dcalc/ArnoldiDelayCalc.hh b/dcalc/ArnoldiDelayCalc.hh index 25e3d2da..13a1685b 100644 --- a/dcalc/ArnoldiDelayCalc.hh +++ b/dcalc/ArnoldiDelayCalc.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef ARNOLDIDELAYCALC_H -#define ARNOLDIDELAYCALC_H +#pragma once namespace sta { @@ -23,4 +22,3 @@ ArcDelayCalc * makeArnoldiDelayCalc(StaState *sta); } // namespace -#endif diff --git a/dcalc/ArnoldiReduce.hh b/dcalc/ArnoldiReduce.hh index 9c86d59c..a85e8c44 100644 --- a/dcalc/ArnoldiReduce.hh +++ b/dcalc/ArnoldiReduce.hh @@ -18,8 +18,7 @@ // // Author: W. Scott -#ifndef STA_ARNOLDI_REDUCE_H -#define STA_ARNOLDI_REDUCE_H +#pragma once #include "Map.hh" #include "NetworkClass.hh" @@ -112,5 +111,3 @@ protected: }; } // namespace -#endif - diff --git a/dcalc/DcalcAnalysisPt.hh b/dcalc/DcalcAnalysisPt.hh index 90046dd0..11082711 100644 --- a/dcalc/DcalcAnalysisPt.hh +++ b/dcalc/DcalcAnalysisPt.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_DCALC_ANALYSIS_PT_H -#define STA_DCALC_ANALYSIS_PT_H +#pragma once #include "DisallowCopyAssign.hh" #include "Iterator.hh" @@ -75,4 +74,3 @@ private: }; } // namespace -#endif diff --git a/dcalc/DelayCalc.hh b/dcalc/DelayCalc.hh index 160f0790..df2e26d0 100644 --- a/dcalc/DelayCalc.hh +++ b/dcalc/DelayCalc.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_DELAY_CALC_H -#define STA_DELAY_CALC_H +#pragma once #include "StringSeq.hh" @@ -47,4 +46,3 @@ makeDelayCalc(const char *name, StaState *sta); } // namespace -#endif diff --git a/dcalc/DmpCeff.hh b/dcalc/DmpCeff.hh index 71a8b77a..41e1f972 100644 --- a/dcalc/DmpCeff.hh +++ b/dcalc/DmpCeff.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_DMP_CEFF_H -#define STA_DMP_CEFF_H +#pragma once #include "LibertyClass.hh" #include "RCDelayCalc.hh" @@ -101,4 +100,3 @@ private: }; } // namespace -#endif diff --git a/dcalc/DmpDelayCalc.hh b/dcalc/DmpDelayCalc.hh index 3f3e82ca..cda7d4d0 100644 --- a/dcalc/DmpDelayCalc.hh +++ b/dcalc/DmpDelayCalc.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_DMP_DELAY_CALC_H -#define STA_DMP_DELAY_CALC_H +#pragma once namespace sta { @@ -25,4 +24,3 @@ ArcDelayCalc * makeDmpCeffTwoPoleDelayCalc(StaState *sta); } // namespace -#endif diff --git a/dcalc/GraphDelayCalc.hh b/dcalc/GraphDelayCalc.hh index 173476c5..6342c0fc 100644 --- a/dcalc/GraphDelayCalc.hh +++ b/dcalc/GraphDelayCalc.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_GRAPH_DELAY_CALC_H -#define STA_GRAPH_DELAY_CALC_H +#pragma once #include #include "DisallowCopyAssign.hh" @@ -140,4 +139,3 @@ private: }; } // namespace -#endif diff --git a/dcalc/GraphDelayCalc1.hh b/dcalc/GraphDelayCalc1.hh index 3d1d9dc1..88ebf297 100644 --- a/dcalc/GraphDelayCalc1.hh +++ b/dcalc/GraphDelayCalc1.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_GRAPH_DELAY_CALC1_H -#define STA_GRAPH_DELAY_CALC1_H +#pragma once #include #include "GraphDelayCalc.hh" @@ -243,4 +242,3 @@ protected: }; } // namespace -#endif diff --git a/dcalc/LumpedCapDelayCalc.hh b/dcalc/LumpedCapDelayCalc.hh index 3ff8e0b8..52945230 100644 --- a/dcalc/LumpedCapDelayCalc.hh +++ b/dcalc/LumpedCapDelayCalc.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_LUMPED_CAP_DELAY_CALC_H -#define STA_LUMPED_CAP_DELAY_CALC_H +#pragma once #include "ArcDelayCalc.hh" @@ -114,4 +113,3 @@ ArcDelayCalc * makeLumpedCapDelayCalc(StaState *sta); } // namespace -#endif diff --git a/dcalc/NetCaps.hh b/dcalc/NetCaps.hh index 8760613f..406643d0 100644 --- a/dcalc/NetCaps.hh +++ b/dcalc/NetCaps.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_NET_CAPS_H -#define STA_NET_CAPS_H +#pragma once #include "DisallowCopyAssign.hh" @@ -49,4 +48,3 @@ private: }; } // namespace -#endif diff --git a/dcalc/RCDelayCalc.hh b/dcalc/RCDelayCalc.hh index dce78e81..c20e36b5 100644 --- a/dcalc/RCDelayCalc.hh +++ b/dcalc/RCDelayCalc.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_RC_DELAY_CALC_H -#define STA_RC_DELAY_CALC_H +#pragma once #include "LumpedCapDelayCalc.hh" @@ -45,4 +44,3 @@ protected: }; } // namespace -#endif diff --git a/dcalc/SimpleRCDelayCalc.hh b/dcalc/SimpleRCDelayCalc.hh index ff472d01..8c59529a 100644 --- a/dcalc/SimpleRCDelayCalc.hh +++ b/dcalc/SimpleRCDelayCalc.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_SIMPLE_RC_DELAY_CALC_H -#define STA_SIMPLE_RC_DELAY_CALC_H +#pragma once #include "RCDelayCalc.hh" @@ -62,4 +61,3 @@ ArcDelayCalc * makeSimpleRCDelayCalc(StaState *sta); } // namespace -#endif diff --git a/dcalc/UnitDelayCalc.hh b/dcalc/UnitDelayCalc.hh index 834b6325..b3b6737e 100644 --- a/dcalc/UnitDelayCalc.hh +++ b/dcalc/UnitDelayCalc.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_UNIT_DELAY_CALC_H -#define STA_UNIT_DELAY_CALC_H +#pragma once #include "ArcDelayCalc.hh" @@ -95,4 +94,3 @@ ArcDelayCalc * makeUnitDelayCalc(StaState *sta); } // namespace -#endif diff --git a/graph/Delay.hh b/graph/Delay.hh index 03b7e46a..d321c327 100644 --- a/graph/Delay.hh +++ b/graph/Delay.hh @@ -16,8 +16,7 @@ #include "StaConfig.hh" -#ifndef STA_DELAY_H -#define STA_DELAY_H +#pragma once #if (SSTA == 1) // Delays are Normal PDFs. @@ -39,4 +38,3 @@ typedef Delay Required; typedef Delay Slack; } // namespace -#endif diff --git a/graph/DelayFloat.cc b/graph/DelayFloat.cc index 707253ae..f704be52 100644 --- a/graph/DelayFloat.cc +++ b/graph/DelayFloat.cc @@ -140,4 +140,5 @@ delaySigma2(const Delay &, } } // namespace -#endif + +#endif // !SSTA diff --git a/graph/DelayFloat.hh b/graph/DelayFloat.hh index 2680f325..c9ccec9c 100644 --- a/graph/DelayFloat.hh +++ b/graph/DelayFloat.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_DELAY_FLOAT_H -#define STA_DELAY_FLOAT_H +#pragma once #include "MinMax.hh" #include "Fuzzy.hh" @@ -101,4 +100,3 @@ delayRatio(const Delay &delay1, const Delay &delay2); } // namespace -#endif diff --git a/graph/DelayNormal1.cc b/graph/DelayNormal1.cc index 34a301cf..9fdf27a1 100644 --- a/graph/DelayNormal1.cc +++ b/graph/DelayNormal1.cc @@ -419,4 +419,5 @@ delayAsString(const Delay &delay, } } // namespace -#endif + +#endif // (SSTA == 1) diff --git a/graph/DelayNormal1.hh b/graph/DelayNormal1.hh index 97d70eed..303e4ebf 100644 --- a/graph/DelayNormal1.hh +++ b/graph/DelayNormal1.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_DELAY_NORMAL1_H -#define STA_DELAY_NORMAL1_H +#pragma once #include "MinMax.hh" @@ -154,4 +153,3 @@ delayRatio(const Delay &delay1, const Delay &delay2); } // namespace -#endif diff --git a/graph/DelayNormal2.cc b/graph/DelayNormal2.cc index de84c18b..915cc8f8 100644 --- a/graph/DelayNormal2.cc +++ b/graph/DelayNormal2.cc @@ -448,4 +448,5 @@ delayAsString(const Delay &delay, } } // namespace -#endif + +#endif // (SSTA == 2) diff --git a/graph/DelayNormal2.hh b/graph/DelayNormal2.hh index 3e2d280a..ea0751b4 100644 --- a/graph/DelayNormal2.hh +++ b/graph/DelayNormal2.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_DELAY_NORMAL2_H -#define STA_DELAY_NORMAL2_H +#pragma once #include "MinMax.hh" @@ -161,4 +160,3 @@ delayRatio(const Delay &delay1, const Delay &delay2); } // namespace -#endif diff --git a/graph/Graph.hh b/graph/Graph.hh index 31015dc7..62ec0c4a 100644 --- a/graph/Graph.hh +++ b/graph/Graph.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_GRAPH_H -#define STA_GRAPH_H +#pragma once #include "Mutex.hh" #include "DisallowCopyAssign.hh" @@ -526,4 +525,3 @@ private: }; } // namespace -#endif diff --git a/graph/GraphClass.hh b/graph/GraphClass.hh index e84b0f19..d1fdff0b 100644 --- a/graph/GraphClass.hh +++ b/graph/GraphClass.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_GRAPH_CLASS_H -#define STA_GRAPH_CLASS_H +#pragma once #include "ObjectId.hh" #include "Set.hh" @@ -55,4 +54,3 @@ static const int slew_annotated_bits = MinMax::index_count * RiseFall::index_cou enum class BfsIndex { dcalc, arrival, required, other, bits }; } // namespace -#endif diff --git a/graph/GraphCmp.hh b/graph/GraphCmp.hh index 3f185d44..2de9931a 100644 --- a/graph/GraphCmp.hh +++ b/graph/GraphCmp.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_GRAPH_CMP_H -#define STA_GRAPH_CMP_H +#pragma once #include "NetworkClass.hh" #include "NetworkCmp.hh" @@ -53,4 +52,3 @@ sortEdges(EdgeSeq *edges, Graph *graph); } // namespace -#endif diff --git a/liberty/EquivCells.hh b/liberty/EquivCells.hh index c262c807..073020f5 100644 --- a/liberty/EquivCells.hh +++ b/liberty/EquivCells.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_EQUIV_CELLS_H -#define STA_EQUIV_CELLS_H +#pragma once #include "Vector.hh" #include "Map.hh" @@ -75,4 +74,3 @@ equivCellSequentials(const LibertyCell *cell1, const LibertyCell *cell2); } // namespace -#endif diff --git a/liberty/FuncExpr.hh b/liberty/FuncExpr.hh index c22ef602..95b9fd78 100644 --- a/liberty/FuncExpr.hh +++ b/liberty/FuncExpr.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_FUNC_EXPR_H -#define STA_FUNC_EXPR_H +#pragma once #include "DisallowCopyAssign.hh" #include "Set.hh" @@ -109,4 +108,3 @@ private: }; } // namespace -#endif diff --git a/liberty/InternalPower.hh b/liberty/InternalPower.hh index 38f81240..cfc04ee8 100644 --- a/liberty/InternalPower.hh +++ b/liberty/InternalPower.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_INTERNAL_POWER_H -#define STA_INTERNAL_POWER_H +#pragma once #include "DisallowCopyAssign.hh" #include "Transition.hh" @@ -114,4 +113,3 @@ private: }; } // namespace -#endif diff --git a/liberty/LeakagePower.hh b/liberty/LeakagePower.hh index c65e696c..859e39f9 100644 --- a/liberty/LeakagePower.hh +++ b/liberty/LeakagePower.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_LEAKAGE_POWER_H -#define STA_LEAKAGE_POWER_H +#pragma once #include "DisallowCopyAssign.hh" #include "LibertyClass.hh" @@ -61,4 +60,3 @@ private: }; } // namespace -#endif diff --git a/liberty/Liberty.hh b/liberty/Liberty.hh index baf2106f..54ff6ea8 100644 --- a/liberty/Liberty.hh +++ b/liberty/Liberty.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_LIBERTY_H -#define STA_LIBERTY_H +#pragma once #include "DisallowCopyAssign.hh" #include "Transition.hh" @@ -1062,4 +1061,3 @@ private: }; } // namespace -#endif diff --git a/liberty/LibertyBuilder.hh b/liberty/LibertyBuilder.hh index 6d26a342..d3202a5c 100644 --- a/liberty/LibertyBuilder.hh +++ b/liberty/LibertyBuilder.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_LIBERTY_BUILDER_H -#define STA_LIBERTY_BUILDER_H +#pragma once #include "DisallowCopyAssign.hh" #include "Vector.hh" @@ -140,4 +139,3 @@ private: }; } // namespace -#endif diff --git a/liberty/LibertyClass.hh b/liberty/LibertyClass.hh index a4e7be9e..f2925c73 100644 --- a/liberty/LibertyClass.hh +++ b/liberty/LibertyClass.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_LIBERTY_CLASS_H -#define STA_LIBERTY_CLASS_H +#pragma once #include "Vector.hh" #include "Map.hh" @@ -169,4 +168,3 @@ public: }; } // namespace -#endif diff --git a/liberty/LibertyExpr.hh b/liberty/LibertyExpr.hh index 7a2ae1dc..f3dc3512 100644 --- a/liberty/LibertyExpr.hh +++ b/liberty/LibertyExpr.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_LIBERTY_EXPR_H -#define STA_LIBERTY_EXPR_H +#pragma once #include "LibertyClass.hh" @@ -32,4 +31,3 @@ parseFuncExpr(const char *func, Report *report); } // namespace -#endif diff --git a/liberty/LibertyExprPvt.hh b/liberty/LibertyExprPvt.hh index 896e55b9..85bcc812 100644 --- a/liberty/LibertyExprPvt.hh +++ b/liberty/LibertyExprPvt.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_LIBERTY_EXPR_PVT_H -#define STA_LIBERTY_EXPR_PVT_H +#pragma once #include "DisallowCopyAssign.hh" @@ -75,5 +74,3 @@ void libertyExprFlushBuffer(); int LibertyExprParse_error(const char *msg); - -#endif diff --git a/liberty/LibertyParser.hh b/liberty/LibertyParser.hh index 6f79b0e6..ce368ab2 100644 --- a/liberty/LibertyParser.hh +++ b/liberty/LibertyParser.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_LIBERTY_PARSER_H -#define STA_LIBERTY_PARSER_H +#pragma once #include "DisallowCopyAssign.hh" #include "Vector.hh" @@ -350,4 +349,3 @@ makeLibertyVariable(char *var, int LibertyParse_error(const char *msg); -#endif diff --git a/liberty/LibertyReader.hh b/liberty/LibertyReader.hh index cd5628de..8510a666 100644 --- a/liberty/LibertyReader.hh +++ b/liberty/LibertyReader.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_LIBERTY_READER_H -#define STA_LIBERTY_READER_H +#pragma once namespace sta { @@ -28,4 +27,3 @@ readLibertyFile(const char *filename, Network *network); } // namespace -#endif diff --git a/liberty/LibertyReaderPvt.hh b/liberty/LibertyReaderPvt.hh index 0c91a646..1f2ecd5e 100644 --- a/liberty/LibertyReaderPvt.hh +++ b/liberty/LibertyReaderPvt.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_LIBERTY_READER_PVT -#define STA_LIBERTY_READER_PVT +#pragma once #include "DisallowCopyAssign.hh" #include "Vector.hh" @@ -826,4 +825,3 @@ private: }; } // namespace -#endif diff --git a/liberty/LinearModel.hh b/liberty/LinearModel.hh index 4baef95d..c9f32e30 100644 --- a/liberty/LinearModel.hh +++ b/liberty/LinearModel.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_LINEAR_MODEL_H -#define STA_LINEAR_MODEL_H +#pragma once #include "DisallowCopyAssign.hh" #include "TimingModel.hh" @@ -88,4 +87,3 @@ private: }; } // namespace -#endif diff --git a/liberty/Sequential.hh b/liberty/Sequential.hh index edcb5450..1a62ac34 100644 --- a/liberty/Sequential.hh +++ b/liberty/Sequential.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_SEQUENTIAL_H -#define STA_SEQUENTIAL_H +#pragma once #include "DisallowCopyAssign.hh" #include "NetworkClass.hh" @@ -72,4 +71,3 @@ private: }; } // namespace -#endif diff --git a/liberty/TableModel.hh b/liberty/TableModel.hh index bf9e805d..0ba5dc92 100644 --- a/liberty/TableModel.hh +++ b/liberty/TableModel.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_TABLE_MODEL_H -#define STA_TABLE_MODEL_H +#pragma once #include #include "DisallowCopyAssign.hh" @@ -458,4 +457,3 @@ private: }; } // namespace -#endif diff --git a/liberty/TimingArc.hh b/liberty/TimingArc.hh index 30774369..b75d34bc 100644 --- a/liberty/TimingArc.hh +++ b/liberty/TimingArc.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_TIMING_ARC_H -#define STA_TIMING_ARC_H +#pragma once #include "DisallowCopyAssign.hh" #include "Vector.hh" @@ -284,4 +283,3 @@ private: }; } // namespace -#endif diff --git a/liberty/TimingModel.hh b/liberty/TimingModel.hh index 2ec345c8..dc2b4312 100644 --- a/liberty/TimingModel.hh +++ b/liberty/TimingModel.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_TIMING_MODEL_H -#define STA_TIMING_MODEL_H +#pragma once #include #include "Delay.hh" @@ -88,4 +87,3 @@ public: }; } // namespace -#endif diff --git a/liberty/TimingRole.hh b/liberty/TimingRole.hh index cdcf0529..0547120c 100644 --- a/liberty/TimingRole.hh +++ b/liberty/TimingRole.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_TIMING_ROLE_H -#define STA_TIMING_ROLE_H +#pragma once #include "DisallowCopyAssign.hh" #include "MinMax.hh" @@ -132,7 +131,4 @@ private: friend class TimingRoleLess; }; - - } // namespace -#endif diff --git a/liberty/Transition.hh b/liberty/Transition.hh index 5e4c6a8a..dfa0b373 100644 --- a/liberty/Transition.hh +++ b/liberty/Transition.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_TRANSITION_H -#define STA_TRANSITION_H +#pragma once #include #include @@ -221,4 +220,3 @@ private: }; } // namespace -#endif diff --git a/liberty/Units.hh b/liberty/Units.hh index 2d820cbf..2377fdbd 100644 --- a/liberty/Units.hh +++ b/liberty/Units.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_UNITS_H -#define STA_UNITS_H +#pragma once namespace sta { @@ -86,4 +85,3 @@ private: }; } // namespace -#endif diff --git a/liberty/Wireload.hh b/liberty/Wireload.hh index d30b61d1..deac8abd 100644 --- a/liberty/Wireload.hh +++ b/liberty/Wireload.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_WIRELOAD_H -#define STA_WIRELOAD_H +#pragma once #include "DisallowCopyAssign.hh" #include "Vector.hh" @@ -97,4 +96,3 @@ private: }; } // namespace -#endif diff --git a/network/ConcreteLibrary.hh b/network/ConcreteLibrary.hh index 18ecd8db..c4bf8c8f 100644 --- a/network/ConcreteLibrary.hh +++ b/network/ConcreteLibrary.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_CONCRETE_LIBRARY_H -#define STA_CONCRETE_LIBRARY_H +#pragma once #include "DisallowCopyAssign.hh" #include "Vector.hh" @@ -261,4 +260,3 @@ private: }; } // Namespace -#endif diff --git a/network/ConcreteNetwork.hh b/network/ConcreteNetwork.hh index f6239bc6..c3082de7 100644 --- a/network/ConcreteNetwork.hh +++ b/network/ConcreteNetwork.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_CONCRETE_NETWORK_H -#define STA_CONCRETE_NETWORK_H +#pragma once #include "DisallowCopyAssign.hh" #include "Map.hh" @@ -402,4 +401,3 @@ protected: }; } // namespace -#endif diff --git a/network/HpinDrvrLoad.hh b/network/HpinDrvrLoad.hh index 73fe2816..a4b0c64d 100644 --- a/network/HpinDrvrLoad.hh +++ b/network/HpinDrvrLoad.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_HPIN_DRVR_LOAD_H -#define STA_HPIN_DRVR_LOAD_H +#pragma once #include "Set.hh" #include "NetworkClass.hh" @@ -76,5 +75,3 @@ private: }; } // namespace -#endif - diff --git a/network/MakeConcreteNetwork.hh b/network/MakeConcreteNetwork.hh index b4234f16..aa8da838 100644 --- a/network/MakeConcreteNetwork.hh +++ b/network/MakeConcreteNetwork.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_MAKE_CONCRETE_NETWORK_H -#define STA_MAKE_CONCRETE_NETWORK_H +#pragma once namespace sta { @@ -25,4 +24,3 @@ NetworkReader * makeConcreteNetwork(); } // namespace -#endif diff --git a/network/Network.hh b/network/Network.hh index 0df859ec..73acded5 100644 --- a/network/Network.hh +++ b/network/Network.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_NETWORK_H -#define STA_NETWORK_H +#pragma once #include "DisallowCopyAssign.hh" #include "Map.hh" @@ -667,4 +666,3 @@ char logicValueString(LogicValue value); } // namespace -#endif diff --git a/network/NetworkClass.hh b/network/NetworkClass.hh index a2ed1647..6e031c34 100644 --- a/network/NetworkClass.hh +++ b/network/NetworkClass.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_NETWORK_CLASS_H -#define STA_NETWORK_CLASS_H +#pragma once #include "Set.hh" #include "Vector.hh" @@ -78,4 +77,3 @@ public: enum class LogicValue : unsigned { zero, one, unknown, rise, fall }; } // namespace -#endif diff --git a/network/NetworkCmp.hh b/network/NetworkCmp.hh index 30d2cae3..139e669d 100644 --- a/network/NetworkCmp.hh +++ b/network/NetworkCmp.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_NETWORK_CMP_H -#define STA_NETWORK_CMP_H +#pragma once #include "LibertyClass.hh" #include "NetworkClass.hh" @@ -86,4 +85,3 @@ sortNetSet(NetSet *set, NetSeq &nets); } // namespace -#endif diff --git a/network/ParseBus.hh b/network/ParseBus.hh index 88eeb3d9..cf191981 100644 --- a/network/ParseBus.hh +++ b/network/ParseBus.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_PARSE_BUS_H -#define STA_PARSE_BUS_H +#pragma once namespace sta { @@ -83,4 +82,3 @@ escapeChars(const char *token, char escape); } // namespace -#endif diff --git a/network/PortDirection.hh b/network/PortDirection.hh index bac5b40b..da7bfc0c 100644 --- a/network/PortDirection.hh +++ b/network/PortDirection.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_PORT_DIRECTION_H -#define STA_PORT_DIRECTION_H +#pragma once #include "DisallowCopyAssign.hh" #include "NetworkClass.hh" @@ -74,4 +73,3 @@ private: }; } // namespace -#endif diff --git a/network/SdcNetwork.hh b/network/SdcNetwork.hh index fd35a122..0ec761c6 100644 --- a/network/SdcNetwork.hh +++ b/network/SdcNetwork.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_SDC_NETWORK_H -#define STA_SDC_NETWORK_H +#pragma once #include #include "DisallowCopyAssign.hh" @@ -259,4 +258,3 @@ Network * makeSdcNetwork(Network *network); } // namespace -#endif diff --git a/network/VerilogNamespace.hh b/network/VerilogNamespace.hh index dec08f76..33258c04 100644 --- a/network/VerilogNamespace.hh +++ b/network/VerilogNamespace.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_VERILOG_NAMESPACE_H -#define STA_VERILOG_NAMESPACE_H +#pragma once namespace sta { @@ -35,4 +34,3 @@ portVerilogName(const char *sta_name, const char escape); } // namespace -#endif diff --git a/parasitics/ConcreteParasitics.hh b/parasitics/ConcreteParasitics.hh index 40216046..51f5765f 100644 --- a/parasitics/ConcreteParasitics.hh +++ b/parasitics/ConcreteParasitics.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_CONCRETE_PARASITICS_H -#define STA_CONCRETE_PARASITICS_H +#pragma once #include #include "Map.hh" @@ -215,4 +214,3 @@ protected: }; } // namespace -#endif diff --git a/parasitics/ConcreteParasiticsPvt.hh b/parasitics/ConcreteParasiticsPvt.hh index ed0ced20..f9750ff8 100644 --- a/parasitics/ConcreteParasiticsPvt.hh +++ b/parasitics/ConcreteParasiticsPvt.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_CONCRETE_PARASITICS_PVT_H -#define STA_CONCRETE_PARASITICS_PVT_H +#pragma once #include "Parasitics.hh" @@ -445,4 +444,3 @@ private: }; } // namespace -#endif diff --git a/parasitics/EstimateParasitics.hh b/parasitics/EstimateParasitics.hh index 5595832c..c71ac815 100644 --- a/parasitics/EstimateParasitics.hh +++ b/parasitics/EstimateParasitics.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_ESTIMATE_PARASITICS_H -#define STA_ESTIMATE_PARASITICS_H +#pragma once #include "LibertyClass.hh" #include "NetworkClass.hh" @@ -91,4 +90,3 @@ protected: }; } // namespace -#endif diff --git a/parasitics/MakeConcreteParasitics.hh b/parasitics/MakeConcreteParasitics.hh index f5508272..15a847ef 100644 --- a/parasitics/MakeConcreteParasitics.hh +++ b/parasitics/MakeConcreteParasitics.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_MAKE_CONCRETE_PARASITICS_H -#define STA_MAKE_CONCRETE_PARASITICS_H +#pragma once namespace sta { @@ -23,4 +22,3 @@ Parasitics * makeConcreteParasitics(StaState *sta); } // namespace -#endif diff --git a/parasitics/NullParasitics.hh b/parasitics/NullParasitics.hh index 7d8364fa..d25b02df 100644 --- a/parasitics/NullParasitics.hh +++ b/parasitics/NullParasitics.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_NULL_PARASITICS_H -#define STA_NULL_PARASITICS_H +#pragma once #include "DisallowCopyAssign.hh" #include "Parasitics.hh" @@ -190,4 +189,3 @@ private: }; } // namespace -#endif diff --git a/parasitics/Parasitics.hh b/parasitics/Parasitics.hh index 209d487f..8d5f5a76 100644 --- a/parasitics/Parasitics.hh +++ b/parasitics/Parasitics.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_PARASITICS_H -#define STA_PARASITICS_H +#pragma once #include #include "DisallowCopyAssign.hh" @@ -329,4 +328,3 @@ private: }; } // namespace -#endif diff --git a/parasitics/ParasiticsClass.hh b/parasitics/ParasiticsClass.hh index 03503bf0..b1a1d2dc 100644 --- a/parasitics/ParasiticsClass.hh +++ b/parasitics/ParasiticsClass.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_PARASITICS_CLASS_H -#define STA_PARASITICS_CLASS_H +#pragma once namespace sta { @@ -28,4 +27,3 @@ class ParasiticAnalysisPt; enum class ReduceParasiticsTo { pi_elmore, pi_pole_residue2, none }; } // namespace -#endif diff --git a/parasitics/ReduceParasitics.hh b/parasitics/ReduceParasitics.hh index dd088955..f1006dec 100644 --- a/parasitics/ReduceParasitics.hh +++ b/parasitics/ReduceParasitics.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_REDUCE_PARASITICS_H -#define STA_REDUCE_PARASITICS_H +#pragma once namespace sta { @@ -47,4 +46,3 @@ reduceToPiPoleResidue2(Parasitic *parasitic_network, StaState *sta); } // namespace -#endif diff --git a/parasitics/SpefNamespace.hh b/parasitics/SpefNamespace.hh index 2101175f..91f945ae 100644 --- a/parasitics/SpefNamespace.hh +++ b/parasitics/SpefNamespace.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_SPEF_NAMESPACE_H -#define STA_SPEF_NAMESPACE_H +#pragma once namespace sta { @@ -32,4 +31,3 @@ staToSpef(const char *token, char spef_divider, } // namespace -#endif diff --git a/parasitics/SpefReader.hh b/parasitics/SpefReader.hh index d208cfdb..55425d6d 100644 --- a/parasitics/SpefReader.hh +++ b/parasitics/SpefReader.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_SPEF_READER_H -#define STA_SPEF_READER_H +#pragma once #include "Zlib.hh" @@ -51,4 +50,3 @@ readSpefFile(const char *filename, Parasitics *parasitics); } // namespace -#endif diff --git a/parasitics/SpefReaderPvt.hh b/parasitics/SpefReaderPvt.hh index 1ec304ed..367cc772 100644 --- a/parasitics/SpefReaderPvt.hh +++ b/parasitics/SpefReaderPvt.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_SPEF_READER_PVT_H -#define STA_SPEF_READER_PVT_H +#pragma once #include "Zlib.hh" #include "Map.hh" @@ -207,4 +206,3 @@ private: extern SpefReader *spef_reader; } // namespace -#endif diff --git a/sdc/Clock.hh b/sdc/Clock.hh index eebf9482..349842ab 100644 --- a/sdc/Clock.hh +++ b/sdc/Clock.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_CLOCK_H -#define STA_CLOCK_H +#pragma once #include "DisallowCopyAssign.hh" #include "MinMax.hh" @@ -304,4 +303,3 @@ public: }; } // namespace -#endif diff --git a/sdc/ClockGatingCheck.hh b/sdc/ClockGatingCheck.hh index de3e1fc5..953ef6f1 100644 --- a/sdc/ClockGatingCheck.hh +++ b/sdc/ClockGatingCheck.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_CLOCK_GATING_CHECK_H -#define STA_CLOCK_GATING_CHECK_H +#pragma once #include "DisallowCopyAssign.hh" #include "SdcClass.hh" @@ -39,4 +38,3 @@ private: }; } // namespace -#endif diff --git a/sdc/ClockGroups.hh b/sdc/ClockGroups.hh index 9954d954..a275fc1c 100644 --- a/sdc/ClockGroups.hh +++ b/sdc/ClockGroups.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_CLOCK_GROUPS_H -#define STA_CLOCK_GROUPS_H +#pragma once #include "DisallowCopyAssign.hh" #include "SdcCmdComment.hh" @@ -68,4 +67,3 @@ private: }; } // namespace -#endif diff --git a/sdc/ClockInsertion.hh b/sdc/ClockInsertion.hh index 09b745b3..f6e2cf90 100644 --- a/sdc/ClockInsertion.hh +++ b/sdc/ClockInsertion.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_CLOCK_INSERTION_H -#define STA_CLOCK_INSERTION_H +#pragma once #include "DisallowCopyAssign.hh" #include "NetworkClass.hh" @@ -54,4 +53,3 @@ private: }; } // namespace -#endif diff --git a/sdc/ClockLatency.hh b/sdc/ClockLatency.hh index c9c097c2..f59ae048 100644 --- a/sdc/ClockLatency.hh +++ b/sdc/ClockLatency.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_CLOCK_LATENCY_H -#define STA_CLOCK_LATENCY_H +#pragma once #include "DisallowCopyAssign.hh" #include "NetworkClass.hh" @@ -58,4 +57,3 @@ private: }; } // namespace -#endif diff --git a/sdc/CycleAccting.hh b/sdc/CycleAccting.hh index ea6dd25b..072ca7ed 100644 --- a/sdc/CycleAccting.hh +++ b/sdc/CycleAccting.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_CYCLE_ACCTING_H -#define STA_CYCLE_ACCTING_H +#pragma once #include "DisallowCopyAssign.hh" #include "MinMax.hh" @@ -102,4 +101,3 @@ public: }; } // namespace -#endif diff --git a/sdc/DataCheck.hh b/sdc/DataCheck.hh index ed199069..c9ee4347 100644 --- a/sdc/DataCheck.hh +++ b/sdc/DataCheck.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_DATA_CHECK_H -#define STA_DATA_CHECK_H +#pragma once #include "DisallowCopyAssign.hh" #include "MinMax.hh" @@ -78,4 +77,3 @@ private: }; } // namespace -#endif diff --git a/sdc/DeratingFactors.hh b/sdc/DeratingFactors.hh index b3031232..913add6a 100644 --- a/sdc/DeratingFactors.hh +++ b/sdc/DeratingFactors.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_DERATING_FACTORS_H -#define STA_DERATING_FACTORS_H +#pragma once #include "DisallowCopyAssign.hh" #include "LibertyClass.hh" @@ -115,4 +114,3 @@ private: }; } // namespace -#endif diff --git a/sdc/DisabledPorts.hh b/sdc/DisabledPorts.hh index c1b7734b..685950c9 100644 --- a/sdc/DisabledPorts.hh +++ b/sdc/DisabledPorts.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_DISABLED_PORTS_H -#define STA_DISABLED_PORTS_H +#pragma once #include "DisallowCopyAssign.hh" #include "Map.hh" @@ -109,4 +108,3 @@ sortLibertyPortPairSet(LibertyPortPairSet *sets, LibertyPortPairSeq &pairs); } // namespace -#endif diff --git a/sdc/ExceptionPath.hh b/sdc/ExceptionPath.hh index e7e07721..5c7eeebd 100644 --- a/sdc/ExceptionPath.hh +++ b/sdc/ExceptionPath.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_EXCEPTION_PATH_H -#define STA_EXCEPTION_PATH_H +#pragma once #include "DisallowCopyAssign.hh" #include "Error.hh" @@ -682,4 +681,3 @@ intersects(ClockSet *set1, ClockSet *set2); } // namespace -#endif diff --git a/sdc/InputDrive.hh b/sdc/InputDrive.hh index 3c8b4062..27f756b0 100644 --- a/sdc/InputDrive.hh +++ b/sdc/InputDrive.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_INPUT_DRIVE_H -#define STA_INPUT_DRIVE_H +#pragma once #include "DisallowCopyAssign.hh" #include "LibertyClass.hh" @@ -114,4 +113,3 @@ private: }; } // namespace -#endif diff --git a/sdc/MinMaxValues.hh b/sdc/MinMaxValues.hh index 015adf3f..a0ecffc4 100644 --- a/sdc/MinMaxValues.hh +++ b/sdc/MinMaxValues.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_MIN_MAX_VALUES_H -#define STA_MIN_MAX_VALUES_H +#pragma once #include "MinMax.hh" #include "Error.hh" @@ -166,4 +165,3 @@ typedef MinMaxValues MinMaxFloatValues; typedef MinMaxValues MinMaxIntValues; } // namespace -#endif diff --git a/sdc/PinPair.hh b/sdc/PinPair.hh index d14f5121..c69f5046 100644 --- a/sdc/PinPair.hh +++ b/sdc/PinPair.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_PIN_PAIR_H -#define STA_PIN_PAIR_H +#pragma once #include "Hash.hh" #include "Set.hh" @@ -48,4 +47,3 @@ public: }; } // namespace -#endif diff --git a/sdc/PortDelay.hh b/sdc/PortDelay.hh index 4f607290..0e3ba820 100644 --- a/sdc/PortDelay.hh +++ b/sdc/PortDelay.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_PORT_DELAY_H -#define STA_PORT_DELAY_H +#pragma once #include "DisallowCopyAssign.hh" #include "RiseFallMinMax.hh" @@ -109,4 +108,3 @@ private: }; } // namespace -#endif diff --git a/sdc/PortExtCap.hh b/sdc/PortExtCap.hh index 6da6546d..05cc84bf 100644 --- a/sdc/PortExtCap.hh +++ b/sdc/PortExtCap.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_PORT_EXT_CAP_H -#define STA_PORT_EXT_CAP_H +#pragma once #include "DisallowCopyAssign.hh" #include "MinMax.hh" @@ -68,4 +67,3 @@ private: }; } // namespace -#endif diff --git a/sdc/RiseFallMinMax.hh b/sdc/RiseFallMinMax.hh index f3ba7c02..21f82457 100644 --- a/sdc/RiseFallMinMax.hh +++ b/sdc/RiseFallMinMax.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_RISE_FALL_MIN_MAX_H -#define STA_RISE_FALL_MIN_MAX_H +#pragma once #include "DisallowCopyAssign.hh" #include "Transition.hh" @@ -73,4 +72,3 @@ private: }; } // namespace -#endif diff --git a/sdc/RiseFallValues.hh b/sdc/RiseFallValues.hh index b81ee70c..a158ffcd 100644 --- a/sdc/RiseFallValues.hh +++ b/sdc/RiseFallValues.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_RISE_FALL_VALUES_H -#define STA_RISE_FALL_VALUES_H +#pragma once #include "DisallowCopyAssign.hh" #include "Transition.hh" @@ -46,4 +45,3 @@ private: }; } // namespace -#endif diff --git a/sdc/Sdc.hh b/sdc/Sdc.hh index c5d7aae2..b832efa8 100644 --- a/sdc/Sdc.hh +++ b/sdc/Sdc.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_SDC_H -#define STA_SDC_H +#pragma once #include #include "DisallowCopyAssign.hh" @@ -1462,4 +1461,3 @@ private: }; } // namespace -#endif diff --git a/sdc/SdcClass.hh b/sdc/SdcClass.hh index bfba3b64..10177fda 100644 --- a/sdc/SdcClass.hh +++ b/sdc/SdcClass.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_SDC_CLASS_H -#define STA_SDC_CLASS_H +#pragma once #include "Map.hh" #include "Set.hh" @@ -102,4 +101,3 @@ const int timing_derate_type_count = int(TimingDerateType::net_delay) + 1 ; const int timing_derate_cell_type_count = 2; } // namespace -#endif diff --git a/sdc/SdcCmdComment.hh b/sdc/SdcCmdComment.hh index 65a39eda..dbbb35c9 100644 --- a/sdc/SdcCmdComment.hh +++ b/sdc/SdcCmdComment.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_SDC_CMD_COMMENT_H -#define STA_SDC_CMD_COMMENT_H +#pragma once namespace sta { @@ -36,4 +35,3 @@ protected: }; } // namespace -#endif diff --git a/sdc/WriteSdc.hh b/sdc/WriteSdc.hh index 06c88f6d..44af1405 100644 --- a/sdc/WriteSdc.hh +++ b/sdc/WriteSdc.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_WRITE_SDC_H -#define STA_WRITE_SDC_H +#pragma once #include "NetworkClass.hh" #include "SdcClass.hh" @@ -37,4 +36,3 @@ writeSdc(Instance *instance, Sdc *sdc); } // namespace -#endif diff --git a/sdc/WriteSdcPvt.hh b/sdc/WriteSdcPvt.hh index 51371a65..ce17a62b 100644 --- a/sdc/WriteSdcPvt.hh +++ b/sdc/WriteSdcPvt.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_WRITE_SDC_PVT_H -#define STA_WRITE_SDC_PVT_H +#pragma once #include "DisallowCopyAssign.hh" @@ -262,4 +261,3 @@ private: }; } // namespace -#endif diff --git a/sdf/ReportAnnotation.hh b/sdf/ReportAnnotation.hh index 9945be53..d5da9d61 100644 --- a/sdf/ReportAnnotation.hh +++ b/sdf/ReportAnnotation.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_REPORT_ANNOTATION_H -#define STA_REPORT_ANNOTATION_H +#pragma once namespace sta { @@ -45,4 +44,3 @@ reportAnnotatedCheck(bool report_setup, StaState *sta); } // namespace -#endif diff --git a/sdf/Sdf.hh b/sdf/Sdf.hh index ce297bae..32e416ed 100644 --- a/sdf/Sdf.hh +++ b/sdf/Sdf.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_SDF_H -#define STA_SDF_H +#pragma once #include "DisallowCopyAssign.hh" #include "Zlib.hh" @@ -222,4 +221,3 @@ private: extern SdfReader *sdf_reader; } // namespace -#endif diff --git a/sdf/SdfReader.hh b/sdf/SdfReader.hh index f7e4ee39..633b53b8 100644 --- a/sdf/SdfReader.hh +++ b/sdf/SdfReader.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_READ_SDF_H -#define STA_READ_SDF_H +#pragma once namespace sta { @@ -77,4 +76,3 @@ readSdfMinMax(const char *filename, StaState *sta); } // namespace -#endif diff --git a/sdf/SdfWriter.hh b/sdf/SdfWriter.hh index e512e8c6..fce6cd2d 100644 --- a/sdf/SdfWriter.hh +++ b/sdf/SdfWriter.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_SDF_WRITER_H -#define STA_SDF_WRITER_H +#pragma once namespace sta { @@ -32,4 +31,3 @@ writeSdf(const char *filename, StaState *sta); } // namespace -#endif diff --git a/search/Bfs.hh b/search/Bfs.hh index 3556cac9..df93f350 100644 --- a/search/Bfs.hh +++ b/search/Bfs.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_BFS_H -#define STA_BFS_H +#pragma once #include #include "DisallowCopyAssign.hh" @@ -165,4 +164,3 @@ private: }; } // namespace -#endif diff --git a/search/CheckMaxSkews.hh b/search/CheckMaxSkews.hh index 4a8ab80b..6014a02b 100644 --- a/search/CheckMaxSkews.hh +++ b/search/CheckMaxSkews.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_MAX_SKEW_H -#define STA_MAX_SKEW_H +#pragma once #include "DisallowCopyAssign.hh" #include "StaState.hh" @@ -86,4 +85,3 @@ protected: }; } // namespace -#endif diff --git a/search/CheckMinPeriods.hh b/search/CheckMinPeriods.hh index a1e296d0..c989a479 100644 --- a/search/CheckMinPeriods.hh +++ b/search/CheckMinPeriods.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_MIN_PERIOD_H -#define STA_MIN_PERIOD_H +#pragma once #include "DisallowCopyAssign.hh" #include "StaState.hh" @@ -81,4 +80,3 @@ private: }; } // namespace -#endif diff --git a/search/CheckMinPulseWidths.hh b/search/CheckMinPulseWidths.hh index c7b948a0..f84f5ce1 100644 --- a/search/CheckMinPulseWidths.hh +++ b/search/CheckMinPulseWidths.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_MIN_PULSE_WIDTH_H -#define STA_MIN_PULSE_WIDTH_H +#pragma once #include "DisallowCopyAssign.hh" #include "SdcClass.hh" @@ -107,4 +106,3 @@ private: }; } // namespace -#endif diff --git a/search/CheckSlewLimits.hh b/search/CheckSlewLimits.hh index caecc7ab..047853d5 100644 --- a/search/CheckSlewLimits.hh +++ b/search/CheckSlewLimits.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_CHECK_SLEW_LIMIT_H -#define STA_CHECK_SLEW_LIMIT_H +#pragma once #include "MinMax.hh" #include "Transition.hh" @@ -109,4 +108,3 @@ protected: }; } // namespace -#endif diff --git a/search/CheckTiming.hh b/search/CheckTiming.hh index 60124653..b1366121 100644 --- a/search/CheckTiming.hh +++ b/search/CheckTiming.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_CHECK_TIMING_H -#define STA_CHECK_TIMING_H +#pragma once #include "DisallowCopyAssign.hh" #include "Vector.hh" @@ -73,4 +72,3 @@ private: }; } // namespace -#endif diff --git a/search/ClkInfo.hh b/search/ClkInfo.hh index c35a55ef..31f521e7 100644 --- a/search/ClkInfo.hh +++ b/search/ClkInfo.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_CLK_INFO_H -#define STA_CLK_INFO_H +#pragma once #include "DisallowCopyAssign.hh" #include "Transition.hh" @@ -121,4 +120,3 @@ protected: }; } // namespace -#endif diff --git a/search/ClkSkew.hh b/search/ClkSkew.hh index 4a7aed39..313723bc 100644 --- a/search/ClkSkew.hh +++ b/search/ClkSkew.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_CLK_SKEW_H -#define STA_CLK_SKEW_H +#pragma once #include "Map.hh" #include "SdcClass.hh" @@ -65,4 +64,3 @@ protected: }; } // namespace -#endif diff --git a/search/Corner.hh b/search/Corner.hh index e98c89e4..d9b03aeb 100644 --- a/search/Corner.hh +++ b/search/Corner.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_CORNER_H -#define STA_CORNER_H +#pragma once #include "DisallowCopyAssign.hh" #include "MinMax.hh" @@ -185,4 +184,3 @@ private: }; } // namespace -#endif diff --git a/search/Crpr.hh b/search/Crpr.hh index ac626ba6..f997de9f 100644 --- a/search/Crpr.hh +++ b/search/Crpr.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_CRPR_H -#define STA_CRPR_H +#pragma once #include "DisallowCopyAssign.hh" #include "SdcClass.hh" @@ -94,4 +93,3 @@ private: }; } // namespace -#endif diff --git a/search/FindRegister.hh b/search/FindRegister.hh index 622b7e48..6d87fcdb 100644 --- a/search/FindRegister.hh +++ b/search/FindRegister.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_FIND_REGISTER_H -#define STA_FIND_REGISTER_H +#pragma once #include "StaState.hh" #include "LibertyClass.hh" @@ -44,4 +43,3 @@ void initPathSenseThru(); } // namespace -#endif diff --git a/search/GatedClk.hh b/search/GatedClk.hh index 3af3c27e..4856b466 100644 --- a/search/GatedClk.hh +++ b/search/GatedClk.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_GATED_CLK_H -#define STA_GATED_CLK_H +#pragma once #include "SdcClass.hh" #include "GraphClass.hh" @@ -53,4 +52,3 @@ protected: }; } // namespace -#endif diff --git a/search/Genclks.hh b/search/Genclks.hh index cee24788..123dbc7b 100644 --- a/search/Genclks.hh +++ b/search/Genclks.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_GENCLKS_H -#define STA_GENCLKS_H +#pragma once #include "Map.hh" #include "Transition.hh" @@ -146,4 +145,3 @@ private: }; } // namespace -#endif diff --git a/search/Latches.hh b/search/Latches.hh index 9227ec45..815aeb02 100644 --- a/search/Latches.hh +++ b/search/Latches.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_LATCH_H -#define STA_LATCH_H +#pragma once namespace sta { @@ -104,4 +103,3 @@ protected: }; } // namespace -#endif diff --git a/search/Levelize.hh b/search/Levelize.hh index f8fe1fed..5c19abf8 100644 --- a/search/Levelize.hh +++ b/search/Levelize.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_LEVELIZE_H -#define STA_LEVELIZE_H +#pragma once #include "DisallowCopyAssign.hh" #include "StaState.hh" @@ -122,4 +121,3 @@ private: }; } // namespace -#endif diff --git a/search/Path.hh b/search/Path.hh index 583e9630..0152ece5 100644 --- a/search/Path.hh +++ b/search/Path.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_PATH_H -#define STA_PATH_H +#pragma once #include "DisallowCopyAssign.hh" #include "NetworkClass.hh" @@ -127,4 +126,3 @@ protected: }; } // namespace -#endif diff --git a/search/PathAnalysisPt.hh b/search/PathAnalysisPt.hh index 7e4cce1d..113249ef 100644 --- a/search/PathAnalysisPt.hh +++ b/search/PathAnalysisPt.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_PATH_ANALYSIS_PT_H -#define STA_PATH_ANALYSIS_PT_H +#pragma once #include "DisallowCopyAssign.hh" #include "Iterator.hh" @@ -60,4 +59,3 @@ private: }; } // namespace -#endif diff --git a/search/PathEnd.hh b/search/PathEnd.hh index f05ae4b9..849109c6 100644 --- a/search/PathEnd.hh +++ b/search/PathEnd.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_PATH_END_H -#define STA_PATH_END_H +#pragma once #include #include "DisallowCopyAssign.hh" @@ -660,4 +659,3 @@ protected: }; } // namespace -#endif diff --git a/search/PathEnum.hh b/search/PathEnum.hh index a1c1da3f..b7a7dc4c 100644 --- a/search/PathEnum.hh +++ b/search/PathEnum.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_PATH_ENUM_H -#define STA_PATH_ENUM_H +#pragma once #include #include "DisallowCopyAssign.hh" @@ -104,4 +103,3 @@ private: }; } // namespace -#endif diff --git a/search/PathEnumed.hh b/search/PathEnumed.hh index 101c6c3c..2ed0a83d 100644 --- a/search/PathEnumed.hh +++ b/search/PathEnumed.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_PATH_ENUMED_H -#define STA_PATH_ENUMED_H +#pragma once #include "DisallowCopyAssign.hh" #include "Path.hh" @@ -75,4 +74,3 @@ private: void deletePathEnumed(PathEnumed *path); } // namespace -#endif diff --git a/search/PathExpanded.hh b/search/PathExpanded.hh index b36f5fce..95260313 100644 --- a/search/PathExpanded.hh +++ b/search/PathExpanded.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_PATH_EXPANDED_H -#define STA_PATH_EXPANDED_H +#pragma once #include "DisallowCopyAssign.hh" #include "GraphClass.hh" @@ -77,4 +76,3 @@ private: }; } // namespace -#endif diff --git a/search/PathGroup.hh b/search/PathGroup.hh index 120e39c9..a3abd35b 100644 --- a/search/PathGroup.hh +++ b/search/PathGroup.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_PATHGROUP_H -#define STA_PATHGROUP_H +#pragma once #include "DisallowCopyAssign.hh" #include "Map.hh" @@ -201,4 +200,3 @@ private: }; } // namespace -#endif diff --git a/search/PathRef.hh b/search/PathRef.hh index 9ae98a64..20265778 100644 --- a/search/PathRef.hh +++ b/search/PathRef.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_PATH_REF_H -#define STA_PATH_REF_H +#pragma once #include "DisallowCopyAssign.hh" #include "Vector.hh" @@ -84,4 +83,3 @@ private: }; } // namespace -#endif diff --git a/search/PathVertex.hh b/search/PathVertex.hh index e7d65da2..a04a2ad3 100644 --- a/search/PathVertex.hh +++ b/search/PathVertex.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_PATH_VERTEX_H -#define STA_PATH_VERTEX_H +#pragma once #include "DisallowCopyAssign.hh" #include "SearchClass.hh" @@ -143,4 +142,3 @@ private: }; } // namespace -#endif diff --git a/search/PathVertexRep.hh b/search/PathVertexRep.hh index 7ba3227c..da66da13 100644 --- a/search/PathVertexRep.hh +++ b/search/PathVertexRep.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_PATH_VERTEX_REP_H -#define STA_PATH_VERTEX_REP_H +#pragma once #include "SearchClass.hh" @@ -73,4 +72,3 @@ private: }; } // namespace -#endif diff --git a/search/Power.hh b/search/Power.hh index bbb47b9e..133347ac 100644 --- a/search/Power.hh +++ b/search/Power.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_POWER_H -#define STA_POWER_H +#pragma once #include "Sta.hh" @@ -183,4 +182,3 @@ private: }; } // namespace -#endif diff --git a/search/Property.hh b/search/Property.hh index c90ec0e4..d77f00ae 100644 --- a/search/Property.hh +++ b/search/Property.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_PROPERTY_H -#define STA_PROPERTY_H +#pragma once #include #include "LibertyClass.hh" @@ -191,4 +190,3 @@ getProperty(TimingArcSet *arc_set, Sta *sta); } // namespace -#endif diff --git a/search/ReportPath.hh b/search/ReportPath.hh index 2197e678..f646b8ad 100644 --- a/search/ReportPath.hh +++ b/search/ReportPath.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_REPORT_PATH_H -#define STA_REPORT_PATH_H +#pragma once #include #include "DisallowCopyAssign.hh" @@ -579,4 +578,3 @@ protected: }; } // namespace -#endif diff --git a/search/Search.hh b/search/Search.hh index 93335db8..16e18f28 100644 --- a/search/Search.hh +++ b/search/Search.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_SEARCH_H -#define STA_SEARCH_H +#pragma once #include #include "MinMax.hh" @@ -819,4 +818,3 @@ private: }; } // namespace -#endif diff --git a/search/SearchClass.hh b/search/SearchClass.hh index dbeb380a..54c632f6 100644 --- a/search/SearchClass.hh +++ b/search/SearchClass.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_SEARCH_CLASS_H -#define STA_SEARCH_CLASS_H +#pragma once #include "Vector.hh" #include "Set.hh" @@ -128,4 +127,3 @@ static const int tag_index_null = tag_index_max; static const int path_ap_index_bit_count = 4; } // namespace -#endif diff --git a/search/SearchPred.hh b/search/SearchPred.hh index 87e67855..c7a45946 100644 --- a/search/SearchPred.hh +++ b/search/SearchPred.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_SEARCH_PRED_H -#define STA_SEARCH_PRED_H +#pragma once #include "DisallowCopyAssign.hh" #include "StaState.hh" @@ -175,4 +174,3 @@ hasFanout(Vertex *vertex, const Graph *graph); } // namespace -#endif diff --git a/search/Sim.hh b/search/Sim.hh index a87c0c98..b05bfbc8 100644 --- a/search/Sim.hh +++ b/search/Sim.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_SIM_H -#define STA_SIM_H +#pragma once #include #include @@ -218,4 +217,3 @@ isTestDisabled(const Instance *inst, Pin *&scan_enable); } // namespace -#endif diff --git a/search/Sta.hh b/search/Sta.hh index 7f49a44a..457d8b86 100644 --- a/search/Sta.hh +++ b/search/Sta.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_STA_H -#define STA_STA_H +#pragma once #include #include "DisallowCopyAssign.hh" @@ -1341,4 +1340,3 @@ private: }; } // namespace -#endif diff --git a/search/StaState.hh b/search/StaState.hh index c3201f91..2d21904b 100644 --- a/search/StaState.hh +++ b/search/StaState.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_STA_STATE_H -#define STA_STA_STATE_H +#pragma once #include "DisallowCopyAssign.hh" @@ -125,4 +124,3 @@ private: }; } // namespace -#endif diff --git a/search/Tag.hh b/search/Tag.hh index 5a3202e5..9f08aa54 100644 --- a/search/Tag.hh +++ b/search/Tag.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_TAG_H -#define STA_TAG_H +#pragma once #include "DisallowCopyAssign.hh" #include "Vector.hh" @@ -165,4 +164,3 @@ tagMatchCrpr(const Tag *tag1, const Tag *tag2); } // namespace -#endif diff --git a/search/TagGroup.hh b/search/TagGroup.hh index c528574d..d2e845ed 100644 --- a/search/TagGroup.hh +++ b/search/TagGroup.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_TAG_GROUP_H -#define STA_TAG_GROUP_H +#pragma once #include "DisallowCopyAssign.hh" #include "Vector.hh" @@ -164,4 +163,3 @@ arrivalMapReport(const ArrivalMap *arrival_map, const StaState *sta); } // namespace -#endif diff --git a/search/VertexVisitor.hh b/search/VertexVisitor.hh index 267e33a9..78678ae5 100644 --- a/search/VertexVisitor.hh +++ b/search/VertexVisitor.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_VERTEX_VISITOR_H -#define STA_VERTEX_VISITOR_H +#pragma once #include "DisallowCopyAssign.hh" #include "NetworkClass.hh" @@ -52,4 +51,3 @@ protected: }; } // namespace -#endif diff --git a/search/VisitPathEnds.hh b/search/VisitPathEnds.hh index 7e6eb272..7ef84084 100644 --- a/search/VisitPathEnds.hh +++ b/search/VisitPathEnds.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_VISIT_PATH_ENDS_H -#define STA_VISIT_PATH_ENDS_H +#pragma once #include "SdcClass.hh" #include "GraphClass.hh" @@ -150,4 +149,3 @@ public: }; } // namespace -#endif diff --git a/search/VisitPathGroupVertices.hh b/search/VisitPathGroupVertices.hh index 0d6578d2..b0733c2d 100644 --- a/search/VisitPathGroupVertices.hh +++ b/search/VisitPathGroupVertices.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_VISIT_PATH_GROUP_VERTICES_H -#define STA_VISIT_PATH_GROUP_VERTICES_H +#pragma once namespace sta { @@ -31,4 +30,3 @@ visitPathGroupVertices(PathGroup *path_group, StaState *sta); } // namespace -#endif diff --git a/search/WorstSlack.hh b/search/WorstSlack.hh index e36a3a73..24995860 100644 --- a/search/WorstSlack.hh +++ b/search/WorstSlack.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_WORST_SLACK_H -#define STA_WORST_SLACK_H +#pragma once namespace sta { @@ -113,4 +112,3 @@ protected: }; } // namespace -#endif diff --git a/search/WritePathSpice.hh b/search/WritePathSpice.hh index e49cdcbd..78460e65 100644 --- a/search/WritePathSpice.hh +++ b/search/WritePathSpice.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_WRITE_PATH_SPICE_H -#define STA_WRITE_PATH_SPICE_H +#pragma once namespace sta { @@ -36,4 +35,3 @@ writePathSpice(Path *path, StaState *sta); } // namespace -#endif diff --git a/util/Debug.hh b/util/Debug.hh index 20c6be2e..4a300192 100644 --- a/util/Debug.hh +++ b/util/Debug.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_DEBUG_H -#define STA_DEBUG_H +#pragma once #include #include "DisallowCopyAssign.hh" @@ -124,4 +123,3 @@ debugCheck(const Debug *debug, } } // namespace -#endif diff --git a/util/DisallowCopyAssign.hh b/util/DisallowCopyAssign.hh index 6c5cf394..dff6f8d8 100644 --- a/util/DisallowCopyAssign.hh +++ b/util/DisallowCopyAssign.hh @@ -14,13 +14,10 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_DISALLOW_COPY_ASSIGN_H -#define STA_DISALLOW_COPY_ASSIGN_H +#pragma once // Disallow the copy constructor and operator= functions. // This should be used in the private declarations for a class. #define DISALLOW_COPY_AND_ASSIGN(type_name) \ type_name(const type_name&) = delete; \ void operator=(const type_name&) = delete - -#endif diff --git a/util/DispatchQueue.hh b/util/DispatchQueue.hh index 5d2dc32d..a8f6d60e 100644 --- a/util/DispatchQueue.hh +++ b/util/DispatchQueue.hh @@ -3,8 +3,7 @@ // https://github.com/embeddedartistry/embedded-resources/blob/master/examples/cpp/dispatch.cpp // https://embeddedartistry.com/blog/2017/2/1/dispatch-queues?rq=dispatch -#ifndef STA_DISPATCH_QUEUE_H -#define STA_DISPATCH_QUEUE_H +#pragma once #include #include @@ -50,4 +49,3 @@ private: }; } // namespace -#endif diff --git a/util/EnumNameMap.hh b/util/EnumNameMap.hh index 71f0a3e9..db9e43ab 100644 --- a/util/EnumNameMap.hh +++ b/util/EnumNameMap.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_ENUM_NAME_MAP_H -#define STA_ENUM_NAME_MAP_H +#pragma once #include #include @@ -94,4 +93,3 @@ EnumNameMap::find(string name, } } // namespace -#endif diff --git a/util/Error.hh b/util/Error.hh index 135a8111..e82d1389 100644 --- a/util/Error.hh +++ b/util/Error.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_ERROR_H -#define STA_ERROR_H +#pragma once #include #include "DisallowCopyAssign.hh" @@ -87,4 +86,3 @@ protected: }; } // namespace -#endif diff --git a/util/Fuzzy.hh b/util/Fuzzy.hh index e31ec363..066b2a74 100644 --- a/util/Fuzzy.hh +++ b/util/Fuzzy.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_FUZZY_H -#define STA_FUZZY_H +#pragma once namespace sta { @@ -42,4 +41,3 @@ bool fuzzyInf(float value); } // namespace -#endif diff --git a/util/Hash.hh b/util/Hash.hh index 86f2fbd7..e0787489 100644 --- a/util/Hash.hh +++ b/util/Hash.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_HASH_H -#define STA_HASH_H +#pragma once #include @@ -53,4 +52,3 @@ size_t hashString(const char *str); } // namespace -#endif diff --git a/util/HashSet.hh b/util/HashSet.hh index e4297072..e89fd9fd 100644 --- a/util/HashSet.hh +++ b/util/HashSet.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_HASHSET_H -#define STA_HASHSET_H +#pragma once #include // size_t #include "Hash.hh" @@ -452,4 +451,3 @@ HashSet::bucketLength(size_t hash) const } } // namespace -#endif diff --git a/util/Iterator.hh b/util/Iterator.hh index 007e7fe5..9e3940f9 100644 --- a/util/Iterator.hh +++ b/util/Iterator.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_ITERATOR_H -#define STA_ITERATOR_H +#pragma once namespace sta { @@ -34,4 +33,3 @@ public: }; } // namespace -#endif diff --git a/util/Machine.hh b/util/Machine.hh index 9aaad479..07dd0c0c 100644 --- a/util/Machine.hh +++ b/util/Machine.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_MACHINE_H -#define STA_MACHINE_H +#pragma once // This header contains global os/port specific definitions. // It should be included in every source file after any system include @@ -109,6 +108,5 @@ memoryUsage(); #define hashPtr(ptr) (reinterpret_cast(ptr) >> 2) #endif -} +} // namespace sta -#endif // STA_MACHINE_H diff --git a/util/Map.hh b/util/Map.hh index 43b0a7ef..fc6f1a89 100644 --- a/util/Map.hh +++ b/util/Map.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_MAP_H -#define STA_MAP_H +#pragma once #include #include @@ -173,4 +172,3 @@ public: }; } // namespace -#endif diff --git a/util/MinMax.hh b/util/MinMax.hh index 47f458e7..9ddb97d6 100644 --- a/util/MinMax.hh +++ b/util/MinMax.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_MIN_MAX_H -#define STA_MIN_MAX_H +#pragma once #include #include @@ -148,4 +147,3 @@ private: typedef MinMaxIterator EarlyLateIterator; } // namespace -#endif diff --git a/util/Mutex.hh b/util/Mutex.hh index fa46119c..6debc681 100644 --- a/util/Mutex.hh +++ b/util/Mutex.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_MUTEX_H -#define STA_MUTEX_H +#pragma once #include @@ -24,4 +23,3 @@ namespace sta { typedef std::unique_lock UniqueLock; } // namespace -#endif diff --git a/util/ObjectId.hh b/util/ObjectId.hh index 1a0e36f1..175d1e21 100644 --- a/util/ObjectId.hh +++ b/util/ObjectId.hh @@ -6,8 +6,7 @@ // disclosed in any form or fashion without the express // written consent of Parallax Software, Inc. -#ifndef STA_OBJECT_ID_H -#define STA_OBJECT_ID_H +#pragma once #include @@ -25,4 +24,3 @@ static constexpr ObjectId object_id_null = 0; static constexpr ObjectIdx object_idx_null = 0; } // Namespace -#endif diff --git a/util/ObjectTable.hh b/util/ObjectTable.hh index a976a726..7b2ba4f3 100644 --- a/util/ObjectTable.hh +++ b/util/ObjectTable.hh @@ -6,8 +6,7 @@ // disclosed in any form or fashion without the express // written consent of Parallax Software, Inc. -#ifndef STA_OBJECT_TABLE_H -#define STA_OBJECT_TABLE_H +#pragma once #include "Vector.hh" #include "Error.hh" @@ -195,4 +194,3 @@ TableBlock::TableBlock(BlockIdx block_idx, } } // Namespace -#endif diff --git a/util/PatternMatch.hh b/util/PatternMatch.hh index 04802e3d..7eed62ba 100644 --- a/util/PatternMatch.hh +++ b/util/PatternMatch.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_PATTERN_MATCH_H -#define STA_PATTERN_MATCH_H +#pragma once #include "DisallowCopyAssign.hh" #include "Error.hh" @@ -91,4 +90,3 @@ bool patternWildcards(const char *pattern); } // namespace -#endif diff --git a/util/Report.hh b/util/Report.hh index e6f52812..e5c371c9 100644 --- a/util/Report.hh +++ b/util/Report.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_REPORT_H -#define STA_REPORT_H +#pragma once #include #include @@ -119,4 +118,3 @@ private: }; } // namespace -#endif diff --git a/util/ReportStd.hh b/util/ReportStd.hh index 681f475d..afa76c6b 100644 --- a/util/ReportStd.hh +++ b/util/ReportStd.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_REPORT_STD_H -#define STA_REPORT_STD_H +#pragma once namespace sta { @@ -27,4 +26,3 @@ Report * makeReportStd(); } // namespace -#endif diff --git a/util/ReportTcl.hh b/util/ReportTcl.hh index 594d0693..504f3f1d 100644 --- a/util/ReportTcl.hh +++ b/util/ReportTcl.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_REPORT_TCL_H -#define STA_REPORT_TCL_H +#pragma once #include #include "DisallowCopyAssign.hh" @@ -66,4 +65,3 @@ private: }; } // namespace -#endif diff --git a/util/Set.hh b/util/Set.hh index 74fe3db8..d99ff1dc 100644 --- a/util/Set.hh +++ b/util/Set.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_SET_H -#define STA_SET_H +#pragma once #include #include @@ -238,4 +237,3 @@ Set::insertSet(const std::set *set2) } } // namespace -#endif diff --git a/util/Stats.hh b/util/Stats.hh index 029d799b..d3af122d 100644 --- a/util/Stats.hh +++ b/util/Stats.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_STATS_H -#define STA_STATS_H +#pragma once #include // size_t #include "DisallowCopyAssign.hh" @@ -42,4 +41,3 @@ private: }; } // namespace -#endif diff --git a/util/StringSeq.hh b/util/StringSeq.hh index 51891022..b1d79657 100644 --- a/util/StringSeq.hh +++ b/util/StringSeq.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_STRING_SEQ_H -#define STA_STRING_SEQ_H +#pragma once #include "StringUtil.hh" #include "Vector.hh" @@ -28,4 +27,3 @@ void deleteContents(StringSeq *strings); } // namespace -#endif diff --git a/util/StringSet.hh b/util/StringSet.hh index 13a2188a..0725b1f5 100644 --- a/util/StringSet.hh +++ b/util/StringSet.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_STRING_SET_H -#define STA_STRING_SET_H +#pragma once #include "StringUtil.hh" #include "Set.hh" @@ -31,4 +30,3 @@ void deleteContents(StringSetEq *strings); } // namespace -#endif diff --git a/util/StringUtil.hh b/util/StringUtil.hh index d98b33d8..576f1af1 100644 --- a/util/StringUtil.hh +++ b/util/StringUtil.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_STRING_UTIL_H -#define STA_STRING_UTIL_H +#pragma once #include #include @@ -186,4 +185,3 @@ split(const string &text, StringVector &tokens); } // namespace -#endif diff --git a/util/TokenParser.hh b/util/TokenParser.hh index d22cd0a8..ca63b3b3 100644 --- a/util/TokenParser.hh +++ b/util/TokenParser.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_TOKEN_PARSER_H -#define STA_TOKEN_PARSER_H +#pragma once #include "DisallowCopyAssign.hh" @@ -47,4 +46,3 @@ private: }; } // namespace -#endif diff --git a/util/UnorderedMap.hh b/util/UnorderedMap.hh index cf7289bc..ada271f6 100644 --- a/util/UnorderedMap.hh +++ b/util/UnorderedMap.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_UNORDERED_MAP_H -#define STA_UNORDERED_MAP_H +#pragma once #include #include @@ -176,4 +175,3 @@ public: }; } // namespace -#endif diff --git a/util/UnorderedSet.hh b/util/UnorderedSet.hh index 2033f3ed..532c9af9 100644 --- a/util/UnorderedSet.hh +++ b/util/UnorderedSet.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_UNORDERED_SET_H -#define STA_UNORDERED_SET_H +#pragma once #include #include @@ -125,4 +124,3 @@ public: }; } // namespace -#endif diff --git a/util/Vector.hh b/util/Vector.hh index 8546a4a7..38d1c64c 100644 --- a/util/Vector.hh +++ b/util/Vector.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_VECTOR_H -#define STA_VECTOR_H +#pragma once #include #include @@ -137,4 +136,3 @@ sort(Vector *seq, SortCmp cmp) } } // namespace -#endif diff --git a/util/Zlib.hh b/util/Zlib.hh index 54c93826..20ba44cf 100644 --- a/util/Zlib.hh +++ b/util/Zlib.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_ZLIB_H -#define STA_ZLIB_H +#pragma once // The zlib package is optional. // Define stdio based macros if it is missing. @@ -38,5 +37,3 @@ #define Z_NULL nullptr #endif // ZLIB - -#endif diff --git a/verilog/VerilogReader.hh b/verilog/VerilogReader.hh index 1265fcc7..90473ce8 100644 --- a/verilog/VerilogReader.hh +++ b/verilog/VerilogReader.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_READ_VERILOG_H -#define STA_READ_VERILOG_H +#pragma once namespace sta { @@ -30,5 +29,3 @@ void deleteVerilogReader(); } // namespace - -#endif diff --git a/verilog/VerilogReaderPvt.hh b/verilog/VerilogReaderPvt.hh index 81b5823e..8d2d077d 100644 --- a/verilog/VerilogReaderPvt.hh +++ b/verilog/VerilogReaderPvt.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_VERILOG_H -#define STA_VERILOG_H +#pragma once #include "DisallowCopyAssign.hh" #include "Zlib.hh" @@ -725,4 +724,3 @@ class VerilogNetNameIterator : public Iterator }; } // namespace -#endif diff --git a/verilog/VerilogWriter.hh b/verilog/VerilogWriter.hh index 83f3ffef..d1de19fd 100644 --- a/verilog/VerilogWriter.hh +++ b/verilog/VerilogWriter.hh @@ -14,8 +14,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#ifndef STA_WRITE_VERILOG_H -#define STA_WRITE_VERILOG_H +#pragma once namespace sta { @@ -27,5 +26,3 @@ writeVerilog(const char *filename, Network *network); } // namespace - -#endif