Add uncrustify github workflow (#659)

* Add uncrustify github workflow

* Fix exclusion pattern

* fix find expression

* exclude uncrustify files

* Uncrustify common demo and test files

* exlude white space checking files

* Fix EOL whitespace checker

* Remove whitespaces from EOL

* Fix space at EOL

* Fix find spaces at EOL

Co-authored-by: Archit Aggarwal <architag@amazon.com>
This commit is contained in:
alfred gedeon 2021-07-22 14:23:48 -07:00 committed by GitHub
parent dd80d615b5
commit ae92d8c6ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
191 changed files with 17540 additions and 17102 deletions

View file

@ -40,10 +40,10 @@ void vPrepareTask( TaskHandle_t * xTask );
*/
void harness()
{
TaskHandle_t xTask;
UBaseType_t uxTaskNumber;
TaskHandle_t xTask;
UBaseType_t uxTaskNumber;
vPrepareTask( &xTask );
vPrepareTask( &xTask );
uxTaskNumber = uxTaskGetTaskNumber( xTask );
uxTaskNumber = uxTaskGetTaskNumber( xTask );
}

View file

@ -33,12 +33,14 @@
*/
TaskHandle_t xUnconstrainedTCB( void )
{
TCB_t * pxTCB = pvPortMalloc(sizeof(TCB_t));
TCB_t * pxTCB = pvPortMalloc( sizeof( TCB_t ) );
if ( pxTCB == NULL )
return NULL;
if( pxTCB == NULL )
{
return NULL;
}
return pxTCB;
return pxTCB;
}
/*
@ -47,7 +49,7 @@ TaskHandle_t xUnconstrainedTCB( void )
*/
void vPrepareTask( TaskHandle_t * xTask )
{
__CPROVER_assert_zero_allocation();
__CPROVER_assert_zero_allocation();
*xTask = xUnconstrainedTCB();
*xTask = xUnconstrainedTCB();
}