Skip to content

Commit

Permalink
Fix header order botched by clang-format in recent commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
wsnyder committed Oct 18, 2023
1 parent 51a1822 commit b5828a7
Show file tree
Hide file tree
Showing 110 changed files with 219 additions and 133 deletions.
2 changes: 2 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ ForEachMacros:
SortIncludes: true
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '"V3Pch.*\.h"'
Priority: -2 # Precompiled headers
- Regex: '"(config_build|verilated_config|verilatedos)\.h"'
Priority: -1 # Sepecials before main header
- Regex: '(<|")verilated.*'
Expand Down
3 changes: 2 additions & 1 deletion src/V3Active.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@
//
//*************************************************************************

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3Active.h"

#include "V3Const.h"
#include "V3Graph.h"
#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include <unordered_map>

Expand Down
3 changes: 2 additions & 1 deletion src/V3ActiveTop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@
//
//*************************************************************************

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3ActiveTop.h"

#include "V3Const.h"
#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT
#include "V3SenTree.h"

VL_DEFINE_DEBUG_FUNCTIONS;
Expand Down
3 changes: 2 additions & 1 deletion src/V3Assert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
//
//*************************************************************************

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3Assert.h"

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT
#include "V3Stats.h"

VL_DEFINE_DEBUG_FUNCTIONS;
Expand Down
3 changes: 2 additions & 1 deletion src/V3AssertPre.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
// Transform clocking blocks into imperative logic
//*************************************************************************

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3AssertPre.h"

#include "V3Const.h"
#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT
#include "V3Task.h"
#include "V3UniqueNames.h"

Expand Down
3 changes: 2 additions & 1 deletion src/V3Ast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
//
//*************************************************************************

#include "V3PchAstMT.h"

#include "V3Broken.h"
#include "V3EmitV.h"
#include "V3File.h"
#include "V3PchAstMT.h"

#include <iomanip>
#include <memory>
Expand Down
6 changes: 1 addition & 5 deletions src/V3AstNodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,13 @@
//
//*************************************************************************

#include "config_build.h"
#include "verilatedos.h"
#include "V3PchAstMT.h"

#include "V3Ast.h"
#include "V3EmitCBase.h"
#include "V3File.h"
#include "V3Global.h"
#include "V3Graph.h"
#include "V3Hasher.h"
#include "V3PartitionGraph.h" // Just for mtask dumping
#include "V3PchAstMT.h"
#include "V3String.h"

#include "V3Ast__gen_macros.h" // Generated by 'astgen'
Expand Down
4 changes: 2 additions & 2 deletions src/V3Begin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
//
//*************************************************************************

#include "V3Begin.h"

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3Begin.h"

VL_DEFINE_DEBUG_FUNCTIONS;

//######################################################################
Expand Down
4 changes: 2 additions & 2 deletions src/V3Branch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
//
//*************************************************************************

#include "V3Branch.h"

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3Branch.h"

VL_DEFINE_DEBUG_FUNCTIONS;

//######################################################################
Expand Down
4 changes: 2 additions & 2 deletions src/V3Broken.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
//
//*************************************************************************

#include "V3Broken.h"

#include "V3PchAstMT.h"

#include "V3Broken.h"

// This visitor does not edit nodes, and is called at error-exit, so should use constant iterators
#include "V3AstConstOnly.h"

Expand Down
3 changes: 2 additions & 1 deletion src/V3CCtors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@
// This transformation honors outputSplitCFuncs.
//*************************************************************************

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3CCtors.h"

#include "V3EmitCBase.h"
#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include <list>

Expand Down
4 changes: 2 additions & 2 deletions src/V3CUse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
//
//*************************************************************************

#include "V3CUse.h"

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3CUse.h"

VL_DEFINE_DEBUG_FUNCTIONS;

//######################################################################
Expand Down
3 changes: 2 additions & 1 deletion src/V3Case.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@
//
//*************************************************************************

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3Case.h"

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT
#include "V3Stats.h"

VL_DEFINE_DEBUG_FUNCTIONS;
Expand Down
4 changes: 2 additions & 2 deletions src/V3Cast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
//
//*************************************************************************

#include "V3Cast.h"

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3Cast.h"

VL_DEFINE_DEBUG_FUNCTIONS;

//######################################################################
Expand Down
3 changes: 2 additions & 1 deletion src/V3Class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
//
//*************************************************************************

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3Class.h"

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT
#include "V3UniqueNames.h"

VL_DEFINE_DEBUG_FUNCTIONS;
Expand Down
4 changes: 2 additions & 2 deletions src/V3Clean.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
//
//*************************************************************************

#include "V3Clean.h"

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3Clean.h"

VL_DEFINE_DEBUG_FUNCTIONS;

//######################################################################
Expand Down
3 changes: 2 additions & 1 deletion src/V3Clock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@
//
//*************************************************************************

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3Clock.h"

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT
#include "V3Sched.h"

VL_DEFINE_DEBUG_FUNCTIONS;
Expand Down
3 changes: 2 additions & 1 deletion src/V3Combine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
// Also drop empty CFuncs
//*************************************************************************

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3Combine.h"

#include "V3AstUserAllocator.h"
#include "V3DupFinder.h"
#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT
#include "V3Stats.h"

#include <list>
Expand Down
3 changes: 2 additions & 1 deletion src/V3Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
//
//*************************************************************************

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3Common.h"

#include "V3EmitCBase.h"
#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

VL_DEFINE_DEBUG_FUNCTIONS;

Expand Down
3 changes: 2 additions & 1 deletion src/V3Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
//
//*************************************************************************

#include "V3PchAstMT.h"

#include "V3Config.h"

#include "V3PchAstMT.h"
#include "V3String.h"

#include <set>
Expand Down
4 changes: 2 additions & 2 deletions src/V3Coverage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
//
//*************************************************************************

#include "V3Coverage.h"

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3Coverage.h"

#include <unordered_map>

VL_DEFINE_DEBUG_FUNCTIONS;
Expand Down
3 changes: 2 additions & 1 deletion src/V3CoverageJoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
// If two COVERTOGGLEs have same VARSCOPE, combine them
//*************************************************************************

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3CoverageJoin.h"

#include "V3DupFinder.h"
#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT
#include "V3Stats.h"

#include <vector>
Expand Down
4 changes: 2 additions & 2 deletions src/V3Dead.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
// here after scoping to allow more dead node removal.
//*************************************************************************

#include "V3Dead.h"

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3Dead.h"

#include <vector>

VL_DEFINE_DEBUG_FUNCTIONS;
Expand Down
3 changes: 2 additions & 1 deletion src/V3Delayed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@
//
//*************************************************************************

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3Delayed.h"

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT
#include "V3Stats.h"

#include <deque>
Expand Down
3 changes: 2 additions & 1 deletion src/V3Depth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
//
//*************************************************************************

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3Depth.h"

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT
#include "V3UniqueNames.h"

VL_DEFINE_DEBUG_FUNCTIONS;
Expand Down
3 changes: 2 additions & 1 deletion src/V3DepthBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
//
//*************************************************************************

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3DepthBlock.h"

#include "V3EmitCBase.h"
#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

VL_DEFINE_DEBUG_FUNCTIONS;

Expand Down
3 changes: 2 additions & 1 deletion src/V3Descope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@
//
//*************************************************************************

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3Descope.h"

#include "V3EmitCBase.h"
#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

VL_DEFINE_DEBUG_FUNCTIONS;

Expand Down
3 changes: 2 additions & 1 deletion src/V3Dfg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
//
//*************************************************************************

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3Dfg.h"

#include "V3File.h"
#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

VL_DEFINE_DEBUG_FUNCTIONS;

Expand Down
3 changes: 2 additions & 1 deletion src/V3DfgAstToDfg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
//
//*************************************************************************

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3Dfg.h"
#include "V3DfgPasses.h"
#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

VL_DEFINE_DEBUG_FUNCTIONS;

Expand Down
3 changes: 2 additions & 1 deletion src/V3DfgDecomposition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
//
//*************************************************************************

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3Dfg.h"
#include "V3File.h"
#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include <deque>
#include <unordered_map>
Expand Down
3 changes: 2 additions & 1 deletion src/V3DfgDfgToAst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
//
//*************************************************************************

#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT

#include "V3Dfg.h"
#include "V3DfgPasses.h"
#include "V3PchAstNoMT.h" // VL_MT_DISABLED_CODE_UNIT
#include "V3UniqueNames.h"

#include <unordered_map>
Expand Down
Loading

0 comments on commit b5828a7

Please sign in to comment.