Skip to content

Commit

Permalink
Move else statement to new line
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffany1618 committed Jan 23, 2023
1 parent 4b613dd commit 23a2288
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,8 @@ case class PortCppWriter (
|
|if (this->m_port != nullptr) {
| $invokeCall
|} else {
|}
|else {
| Fw::SerializeStatus _status;
| ${name}PortBuffer _buffer;
|"""
Expand Down
3 changes: 2 additions & 1 deletion compiler/tools/fpp-to-cpp/test/port/AbsTypePortAc.ref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ void OutputAbsTypePort ::

if (this->m_port != nullptr) {
this->m_port->invoke(t, tRef);
} else {
}
else {
Fw::SerializeStatus _status;
AbsTypePortBuffer _buffer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ void OutputBuiltInTypePort ::

if (this->m_port != nullptr) {
this->m_port->invoke(t, tRef);
} else {
}
else {
Fw::SerializeStatus _status;
BuiltInTypePortBuffer _buffer;

Expand Down
3 changes: 2 additions & 1 deletion compiler/tools/fpp-to-cpp/test/port/EmptyPortAc.ref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ void OutputEmptyPort ::

if (this->m_port != nullptr) {
this->m_port->invoke();
} else {
}
else {
Fw::SerializeStatus _status;
EmptyPortBuffer _buffer;

Expand Down
3 changes: 2 additions & 1 deletion compiler/tools/fpp-to-cpp/test/port/FppTypePortAc.ref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ void OutputFppTypePort ::

if (this->m_port != nullptr) {
this->m_port->invoke(e, eRef, a, aRef, s, sRef);
} else {
}
else {
Fw::SerializeStatus _status;
FppTypePortBuffer _buffer;

Expand Down
3 changes: 2 additions & 1 deletion compiler/tools/fpp-to-cpp/test/port/KwdNamePortAc.ref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ void OutputKwdNamePort ::

if (this->m_port != nullptr) {
this->m_port->invoke(time);
} else {
}
else {
Fw::SerializeStatus _status;
KwdNamePortBuffer _buffer;

Expand Down
3 changes: 2 additions & 1 deletion compiler/tools/fpp-to-cpp/test/port/PrimitivePortAc.ref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ void OutputPrimitivePort ::

if (this->m_port != nullptr) {
this->m_port->invoke(u32, u32Ref, f32, f32Ref, b, bRef);
} else {
}
else {
Fw::SerializeStatus _status;
PrimitivePortBuffer _buffer;

Expand Down
3 changes: 2 additions & 1 deletion compiler/tools/fpp-to-cpp/test/port/StringPortAc.ref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@ void OutputStringPort ::

if (this->m_port != nullptr) {
this->m_port->invoke(str80, str80Ref, str100, str100Ref);
} else {
}
else {
Fw::SerializeStatus _status;
StringPortBuffer _buffer;

Expand Down

0 comments on commit 23a2288

Please sign in to comment.