Skip to content

Commit 420d6e7

Browse files
Format files that are causing clang format check issues
Signed-off-by: Michal Princ <[email protected]>
1 parent 84c6707 commit 420d6e7

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

erpc_c/infra/erpc_basic_codec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ void BasicCodec::readString(uint32_t &length, char **value)
309309
{
310310
uint8_t *tempPtr = NULL;
311311
readBinary(length, &tempPtr);
312-
312+
313313
*value = reinterpret_cast<char *>(tempPtr);
314314
}
315315

erpc_c/infra/erpc_message_buffer.hpp

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 2014-2016, Freescale Semiconductor, Inc.
3-
* Copyright 2016-2025 NXP
3+
* Copyright 2016-2026 NXP
44
* All rights reserved.
55
*
66
*
@@ -105,9 +105,10 @@ class MessageBuffer
105105
*
106106
* @return Length of free space of buffer.
107107
*/
108-
uint16_t getFree(void) const {
108+
uint16_t getFree(void) const
109+
{
109110
erpc_assert(m_used <= m_len);
110-
return m_len - m_used;
111+
return m_len - m_used;
111112
}
112113

113114
/*!
@@ -248,7 +249,8 @@ class Cursor
248249
*
249250
* @return Remaining free space in current buffer.
250251
*/
251-
uint16_t getRemaining(void) const {
252+
uint16_t getRemaining(void) const
253+
{
252254
erpc_assert(m_pos >= m_buffer.get() && m_pos <= m_buffer.get() + m_buffer.getLength());
253255
return m_buffer.getLength() - (uint16_t)((uintptr_t)m_pos - (uintptr_t)m_buffer.get());
254256
}
@@ -258,9 +260,10 @@ class Cursor
258260
*
259261
* @return Remaining space from used of current buffer.
260262
*/
261-
uint16_t getRemainingUsed(void) const {
262-
erpc_assert(m_pos >= m_buffer.get() && m_pos <= m_buffer.get() + m_buffer.getLength());
263-
return m_buffer.getUsed() - (uint16_t)((uintptr_t)m_pos - (uintptr_t)m_buffer.get());
263+
uint16_t getRemainingUsed(void) const
264+
{
265+
erpc_assert(m_pos >= m_buffer.get() && m_pos <= m_buffer.get() + m_buffer.getLength());
266+
return m_buffer.getUsed() - (uint16_t)((uintptr_t)m_pos - (uintptr_t)m_buffer.get());
264267
}
265268

266269
/*!

erpc_c/transports/erpc_lpspi_slave_transport.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022-2025 NXP
2+
* Copyright 2022-2026 NXP
33
*
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
@@ -135,9 +135,9 @@ erpc_status_t LPSpiSlaveTransport::init(void)
135135
lpspi_slave_config_t lpspiConfig;
136136

137137
LPSPI_SlaveGetDefaultConfig(&lpspiConfig);
138-
#if (defined(MIMXRT798S_cm33_core0_SERIES) || defined(MIMXRT798S_cm33_core1_SERIES) || \
139-
defined(MIMXRT758S_cm33_core0_SERIES) || defined(MIMXRT758S_cm33_core1_SERIES) || \
140-
defined(MIMXRT735S_cm33_core0_SERIES) || defined(MIMXRT735S_cm33_core1_SERIES)) && \
138+
#if (defined(MIMXRT798S_cm33_core0_SERIES) || defined(MIMXRT798S_cm33_core1_SERIES) || \
139+
defined(MIMXRT758S_cm33_core0_SERIES) || defined(MIMXRT758S_cm33_core1_SERIES) || \
140+
defined(MIMXRT735S_cm33_core0_SERIES) || defined(MIMXRT735S_cm33_core1_SERIES)) && \
141141
defined(FSL_FEATURE_SILICON_VERSION_A)
142142
lpspiConfig.pinCfg = kLPSPI_SdoInSdiOut;
143143
#endif

0 commit comments

Comments
 (0)