From 23a2288233166fdb46bca5314235471bbdcb5305 Mon Sep 17 00:00:00 2001 From: tiffany1618 Date: Mon, 23 Jan 2023 09:49:13 -0800 Subject: [PATCH] Move else statement to new line --- .../lib/src/main/scala/codegen/CppWriter/PortCppWriter.scala | 3 ++- compiler/tools/fpp-to-cpp/test/port/AbsTypePortAc.ref.cpp | 3 ++- compiler/tools/fpp-to-cpp/test/port/BuiltInTypePortAc.ref.cpp | 3 ++- compiler/tools/fpp-to-cpp/test/port/EmptyPortAc.ref.cpp | 3 ++- compiler/tools/fpp-to-cpp/test/port/FppTypePortAc.ref.cpp | 3 ++- compiler/tools/fpp-to-cpp/test/port/KwdNamePortAc.ref.cpp | 3 ++- compiler/tools/fpp-to-cpp/test/port/PrimitivePortAc.ref.cpp | 3 ++- compiler/tools/fpp-to-cpp/test/port/StringPortAc.ref.cpp | 3 ++- 8 files changed, 16 insertions(+), 8 deletions(-) diff --git a/compiler/lib/src/main/scala/codegen/CppWriter/PortCppWriter.scala b/compiler/lib/src/main/scala/codegen/CppWriter/PortCppWriter.scala index 6f038ff53..d152f2575 100644 --- a/compiler/lib/src/main/scala/codegen/CppWriter/PortCppWriter.scala +++ b/compiler/lib/src/main/scala/codegen/CppWriter/PortCppWriter.scala @@ -517,7 +517,8 @@ case class PortCppWriter ( | |if (this->m_port != nullptr) { | $invokeCall - |} else { + |} + |else { | Fw::SerializeStatus _status; | ${name}PortBuffer _buffer; |""" diff --git a/compiler/tools/fpp-to-cpp/test/port/AbsTypePortAc.ref.cpp b/compiler/tools/fpp-to-cpp/test/port/AbsTypePortAc.ref.cpp index f94f237d7..ff97e228c 100644 --- a/compiler/tools/fpp-to-cpp/test/port/AbsTypePortAc.ref.cpp +++ b/compiler/tools/fpp-to-cpp/test/port/AbsTypePortAc.ref.cpp @@ -165,7 +165,8 @@ void OutputAbsTypePort :: if (this->m_port != nullptr) { this->m_port->invoke(t, tRef); - } else { + } + else { Fw::SerializeStatus _status; AbsTypePortBuffer _buffer; diff --git a/compiler/tools/fpp-to-cpp/test/port/BuiltInTypePortAc.ref.cpp b/compiler/tools/fpp-to-cpp/test/port/BuiltInTypePortAc.ref.cpp index 88c51ef34..515b3b9a2 100644 --- a/compiler/tools/fpp-to-cpp/test/port/BuiltInTypePortAc.ref.cpp +++ b/compiler/tools/fpp-to-cpp/test/port/BuiltInTypePortAc.ref.cpp @@ -165,7 +165,8 @@ void OutputBuiltInTypePort :: if (this->m_port != nullptr) { this->m_port->invoke(t, tRef); - } else { + } + else { Fw::SerializeStatus _status; BuiltInTypePortBuffer _buffer; diff --git a/compiler/tools/fpp-to-cpp/test/port/EmptyPortAc.ref.cpp b/compiler/tools/fpp-to-cpp/test/port/EmptyPortAc.ref.cpp index edeabaac9..4e521f630 100644 --- a/compiler/tools/fpp-to-cpp/test/port/EmptyPortAc.ref.cpp +++ b/compiler/tools/fpp-to-cpp/test/port/EmptyPortAc.ref.cpp @@ -143,7 +143,8 @@ void OutputEmptyPort :: if (this->m_port != nullptr) { this->m_port->invoke(); - } else { + } + else { Fw::SerializeStatus _status; EmptyPortBuffer _buffer; diff --git a/compiler/tools/fpp-to-cpp/test/port/FppTypePortAc.ref.cpp b/compiler/tools/fpp-to-cpp/test/port/FppTypePortAc.ref.cpp index 3dd8d0da8..402e34217 100644 --- a/compiler/tools/fpp-to-cpp/test/port/FppTypePortAc.ref.cpp +++ b/compiler/tools/fpp-to-cpp/test/port/FppTypePortAc.ref.cpp @@ -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; diff --git a/compiler/tools/fpp-to-cpp/test/port/KwdNamePortAc.ref.cpp b/compiler/tools/fpp-to-cpp/test/port/KwdNamePortAc.ref.cpp index a7b5c76b7..20e867ae0 100644 --- a/compiler/tools/fpp-to-cpp/test/port/KwdNamePortAc.ref.cpp +++ b/compiler/tools/fpp-to-cpp/test/port/KwdNamePortAc.ref.cpp @@ -153,7 +153,8 @@ void OutputKwdNamePort :: if (this->m_port != nullptr) { this->m_port->invoke(time); - } else { + } + else { Fw::SerializeStatus _status; KwdNamePortBuffer _buffer; diff --git a/compiler/tools/fpp-to-cpp/test/port/PrimitivePortAc.ref.cpp b/compiler/tools/fpp-to-cpp/test/port/PrimitivePortAc.ref.cpp index a93865b5c..03bf1b524 100644 --- a/compiler/tools/fpp-to-cpp/test/port/PrimitivePortAc.ref.cpp +++ b/compiler/tools/fpp-to-cpp/test/port/PrimitivePortAc.ref.cpp @@ -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; diff --git a/compiler/tools/fpp-to-cpp/test/port/StringPortAc.ref.cpp b/compiler/tools/fpp-to-cpp/test/port/StringPortAc.ref.cpp index 3db133e00..0dfad1965 100644 --- a/compiler/tools/fpp-to-cpp/test/port/StringPortAc.ref.cpp +++ b/compiler/tools/fpp-to-cpp/test/port/StringPortAc.ref.cpp @@ -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;