Skip to content

Commit b0f83ec

Browse files
committed
Revise topology code gen
Remove blank lines
1 parent c217405 commit b0f83ec

10 files changed

+1
-12
lines changed

compiler/lib/src/main/scala/codegen/CppWriter/TopologyCppWriter/TopologyCppWriter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ case class TopologyCppWriter(
6666
TopConfigObjects(s, aNode).getHppLines
6767
)
6868
val cppLines = linesMember(
69-
Line.blank :: addBlankPostfix(TopConfigObjects(s, aNode).getCppLines),
69+
TopConfigObjects(s, aNode).getCppLines,
7070
CppDoc.Lines.Cpp
7171
)
7272
val (helperFnNames, helperFns) = TopHelperFns(s, aNode).getMembers

compiler/tools/fpp-to-cpp/test/top/BasicTopologyAc.ref.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ M::Active active1(FW_OPTIONAL_NAME("active1"));
3737

3838
namespace M {
3939

40-
4140
// ----------------------------------------------------------------------
4241
// Component configuration objects
4342
// ----------------------------------------------------------------------
@@ -50,7 +49,6 @@ namespace M {
5049

5150
}
5251

53-
5452
// ----------------------------------------------------------------------
5553
// Helper functions
5654
// ----------------------------------------------------------------------

compiler/tools/fpp-to-cpp/test/top/CommandsTopologyAc.ref.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ namespace M {
2424

2525
namespace M {
2626

27-
2827
// ----------------------------------------------------------------------
2928
// Helper functions
3029
// ----------------------------------------------------------------------

compiler/tools/fpp-to-cpp/test/top/HealthTopologyAc.ref.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ namespace M {
3030

3131
namespace M {
3232

33-
3433
// ----------------------------------------------------------------------
3534
// Component configuration objects
3635
// ----------------------------------------------------------------------
@@ -54,7 +53,6 @@ namespace M {
5453

5554
}
5655

57-
5856
// ----------------------------------------------------------------------
5957
// Helper functions
6058
// ----------------------------------------------------------------------

compiler/tools/fpp-to-cpp/test/top/NestedNamespacesTopologyAc.ref.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ M::N::O::C c(FW_OPTIONAL_NAME("c"));
1414

1515
namespace M {
1616

17-
1817
// ----------------------------------------------------------------------
1918
// Helper functions
2019
// ----------------------------------------------------------------------

compiler/tools/fpp-to-cpp/test/top/NoInstancesTopologyAc.ref.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
#include "NoInstancesTopologyAc.hpp"
88

9-
109
// ----------------------------------------------------------------------
1110
// Helper functions
1211
// ----------------------------------------------------------------------

compiler/tools/fpp-to-cpp/test/top/NoNamespaceTopologyAc.ref.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
#include "NoNamespaceTopologyAc.hpp"
88

9-
109
// ----------------------------------------------------------------------
1110
// Helper functions
1211
// ----------------------------------------------------------------------

compiler/tools/fpp-to-cpp/test/top/OneInstanceTopologyAc.ref.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ namespace M {
1818

1919
namespace M {
2020

21-
2221
// ----------------------------------------------------------------------
2322
// Helper functions
2423
// ----------------------------------------------------------------------

compiler/tools/fpp-to-cpp/test/top/ParamsTopologyAc.ref.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ namespace M {
2424

2525
namespace M {
2626

27-
2827
// ----------------------------------------------------------------------
2928
// Helper functions
3029
// ----------------------------------------------------------------------

compiler/tools/fpp-to-cpp/test/top/TwoInstancesTopologyAc.ref.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ namespace M {
2424

2525
namespace N {
2626

27-
2827
// ----------------------------------------------------------------------
2928
// Helper functions
3029
// ----------------------------------------------------------------------

0 commit comments

Comments
 (0)