Skip to content

Commit 23a2288

Browse files
committed
Move else statement to new line
1 parent 4b613dd commit 23a2288

File tree

8 files changed

+16
-8
lines changed

8 files changed

+16
-8
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,8 @@ case class PortCppWriter (
517517
|
518518
|if (this->m_port != nullptr) {
519519
| $invokeCall
520-
|} else {
520+
|}
521+
|else {
521522
| Fw::SerializeStatus _status;
522523
| ${name}PortBuffer _buffer;
523524
|"""

compiler/tools/fpp-to-cpp/test/port/AbsTypePortAc.ref.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ void OutputAbsTypePort ::
165165

166166
if (this->m_port != nullptr) {
167167
this->m_port->invoke(t, tRef);
168-
} else {
168+
}
169+
else {
169170
Fw::SerializeStatus _status;
170171
AbsTypePortBuffer _buffer;
171172

compiler/tools/fpp-to-cpp/test/port/BuiltInTypePortAc.ref.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ void OutputBuiltInTypePort ::
165165

166166
if (this->m_port != nullptr) {
167167
this->m_port->invoke(t, tRef);
168-
} else {
168+
}
169+
else {
169170
Fw::SerializeStatus _status;
170171
BuiltInTypePortBuffer _buffer;
171172

compiler/tools/fpp-to-cpp/test/port/EmptyPortAc.ref.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ void OutputEmptyPort ::
143143

144144
if (this->m_port != nullptr) {
145145
this->m_port->invoke();
146-
} else {
146+
}
147+
else {
147148
Fw::SerializeStatus _status;
148149
EmptyPortBuffer _buffer;
149150

compiler/tools/fpp-to-cpp/test/port/FppTypePortAc.ref.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ void OutputFppTypePort ::
197197

198198
if (this->m_port != nullptr) {
199199
this->m_port->invoke(e, eRef, a, aRef, s, sRef);
200-
} else {
200+
}
201+
else {
201202
Fw::SerializeStatus _status;
202203
FppTypePortBuffer _buffer;
203204

compiler/tools/fpp-to-cpp/test/port/KwdNamePortAc.ref.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ void OutputKwdNamePort ::
153153

154154
if (this->m_port != nullptr) {
155155
this->m_port->invoke(time);
156-
} else {
156+
}
157+
else {
157158
Fw::SerializeStatus _status;
158159
KwdNamePortBuffer _buffer;
159160

compiler/tools/fpp-to-cpp/test/port/PrimitivePortAc.ref.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ void OutputPrimitivePort ::
197197

198198
if (this->m_port != nullptr) {
199199
this->m_port->invoke(u32, u32Ref, f32, f32Ref, b, bRef);
200-
} else {
200+
}
201+
else {
201202
Fw::SerializeStatus _status;
202203
PrimitivePortBuffer _buffer;
203204

compiler/tools/fpp-to-cpp/test/port/StringPortAc.ref.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@ void OutputStringPort ::
343343

344344
if (this->m_port != nullptr) {
345345
this->m_port->invoke(str80, str80Ref, str100, str100Ref);
346-
} else {
346+
}
347+
else {
347348
Fw::SerializeStatus _status;
348349
StringPortBuffer _buffer;
349350

0 commit comments

Comments
 (0)