Skip to content

Commit 00dabbf

Browse files
restyled-commitsmarius-alex-tache
authored andcommitted
Restyled by clang-format
1 parent 1452205 commit 00dabbf

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

examples/platform/nxp/common/app_task/include/AppTaskBase.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,23 @@ class AppTaskBase
5151
* This function is called at the begging of the InitServer function.
5252
*
5353
*/
54-
virtual void PreInitMatterServerInstance(void) {};
54+
virtual void PreInitMatterServerInstance(void){};
5555

5656
/**
5757
* \brief This function could be overridden in order to execute code at the end of the InitServer function.
5858
*
5959
* Example of usage: all-cluster-apps example disable last fixed endpoint after InitServer function execution.
6060
*
6161
*/
62-
virtual void PostInitMatterServerInstance(void) {};
62+
virtual void PostInitMatterServerInstance(void){};
6363

6464
/**
6565
* \brief This function could be overridden in order to execute code before matter stack init function.
6666
*
6767
* Example of usage: if some initialization has to be done before the matter stack initialization.
6868
*
6969
*/
70-
virtual void PreInitMatterStack(void) {};
70+
virtual void PreInitMatterStack(void){};
7171

7272
/**
7373
* \brief This function could be overridden in order to execute code after matter stack init function.
@@ -76,7 +76,7 @@ class AppTaskBase
7676
* done after matter stack init. Developper can override this function to add cluster initialization/customization.
7777
*
7878
*/
79-
virtual void PostInitMatterStack(void) {};
79+
virtual void PostInitMatterStack(void){};
8080

8181
/**
8282
* \brief This function could be overridden in order to register features.
@@ -94,7 +94,7 @@ class AppTaskBase
9494
* Example of usage: Laundry washer application used additionnal CLI commands.
9595
*
9696
*/
97-
virtual void AppMatter_RegisterCustomCliCommands(void) {};
97+
virtual void AppMatter_RegisterCustomCliCommands(void){};
9898

9999
/**
100100
* \brief Disallow entering low power mode.
@@ -132,15 +132,15 @@ class AppTaskBase
132132
* \brief Send event to the event queue.
133133
*
134134
*/
135-
virtual void PostEvent(const AppEvent & event) {};
135+
virtual void PostEvent(const AppEvent & event){};
136136

137137
/**
138138
* \brief This function could be overridden in order to dispatch event.
139139
*
140140
* Example of usage: FreeRtos dispatch event using the event handler.
141141
*
142142
*/
143-
virtual void DispatchEvent(const AppEvent & event) {};
143+
virtual void DispatchEvent(const AppEvent & event){};
144144

145145
/**
146146
* \brief Return a pointer to the NXP Wifi Driver instance.

src/platform/nxp/k32w1/CHIPCryptoPalK32W1.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ CHIP_ERROR Hash_SHA256_stream::Begin(void)
340340
mbedtls_sha256_context * const context = to_inner_hash_sha256_context(&mContext);
341341

342342
#if (MBEDTLS_VERSION_NUMBER >= 0x03000000)
343-
const int result = mbedtls_sha256_starts(context, 0);
343+
const int result = mbedtls_sha256_starts(context, 0);
344344
#else
345345
const int result = mbedtls_sha256_starts_ret(context, 0);
346346
#endif
@@ -380,7 +380,7 @@ CHIP_ERROR Hash_SHA256_stream::AddData(const ByteSpan data)
380380
mbedtls_sha256_context * const context = to_inner_hash_sha256_context(&mContext);
381381

382382
#if (MBEDTLS_VERSION_NUMBER >= 0x03000000)
383-
const int result = mbedtls_sha256_update(context, Uint8::to_const_uchar(data.data()), data.size());
383+
const int result = mbedtls_sha256_update(context, Uint8::to_const_uchar(data.data()), data.size());
384384
#else
385385
const int result = mbedtls_sha256_update_ret(context, Uint8::to_const_uchar(data.data()), data.size());
386386
#endif
@@ -452,13 +452,13 @@ CHIP_ERROR Hash_SHA256_stream::Finish(MutableByteSpan & out_buffer)
452452
mbedtls_sha256_context * const context = to_inner_hash_sha256_context(&mContext);
453453

454454
#if (MBEDTLS_VERSION_NUMBER >= 0x03000000)
455-
const int result = mbedtls_sha256_finish(context, Uint8::to_uchar(out_buffer.data()));
455+
const int result = mbedtls_sha256_finish(context, Uint8::to_uchar(out_buffer.data()));
456456
#else
457457
const int result = mbedtls_sha256_finish_ret(context, Uint8::to_uchar(out_buffer.data()));
458458
#endif
459459

460460
VerifyOrReturnError(result == 0, CHIP_ERROR_INTERNAL);
461-
out_buffer = out_buffer.SubSpan(0, kSHA256_Hash_Length);
461+
out_buffer = out_buffer.SubSpan(0, kSHA256_Hash_Length);
462462
#endif
463463

464464
return CHIP_NO_ERROR;

0 commit comments

Comments
 (0)