Skip to content

Revert Portable/CodeWarrior formatting - #831

Merged
aggarg merged 13 commits into
FreeRTOS:mainfrom
Skptak:fixCodeWarriorFormatting
Dec 7, 2023
Merged

Revert Portable/CodeWarrior formatting#831
aggarg merged 13 commits into
FreeRTOS:mainfrom
Skptak:fixCodeWarriorFormatting

Conversation

@Skptak

@Skptak Skptak commented Oct 10, 2023

Copy link
Copy Markdown
Contributor

Description

Revert the formatting on CodeWarrior ports

Test Steps

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Skptak
Skptak requested a review from a team as a code owner October 10, 2023 23:26
@codecov

codecov Bot commented Oct 10, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (de2c0c1) 93.78% compared to head (223c2db) 93.78%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #831   +/-   ##
=======================================
  Coverage   93.78%   93.78%           
=======================================
  Files           6        6           
  Lines        3184     3184           
  Branches      885      885           
=======================================
  Hits         2986     2986           
  Misses         91       91           
  Partials      107      107           
Flag Coverage Δ
unittests 93.78% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Skptak Skptak mentioned this pull request Nov 8, 2023
2 tasks

@chinglee-iot chinglee-iot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compared with commit before #768
d6bccb1 | 2023-09-05 | Gaurav-Aggarwal-AWS | Fix heap address calculation issue (#781)

d6bccb1...Skptak:FreeRTOS-Kernel:fixCodeWarriorFormatting

  • INDENT-OFF/ON comments are removed. Suggest we add them back.
  • configTICK_TYPE_WIDTH_IN_BITS is wrongly reverted. We should add it back.

Comment on lines -32 to -36
/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
/* *INDENT-ON* */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest we add back the INDENT-OFF/ON comments.

Comment on lines 60 to 66
#if( configUSE_16_BIT_TICKS == 1 )
typedef uint16_t TickType_t;
#define portMAX_DELAY ( TickType_t ) 0xffff
#else
#error configTICK_TYPE_WIDTH_IN_BITS set to unsupported tick type width.
typedef uint32_t TickType_t;
#define portMAX_DELAY ( TickType_t ) 0xffffffffUL
#endif

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

configTICK_TYPE_WIDTH_IN_BITS is also wrongly reverted. We should add it back.

} \
} while( 0 )

/* *INDENT-OFF* */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same suggestion for the INDENT-OFF/ON

#ifndef PORTMACRO_H
#define PORTMACRO_H

/* *INDENT-OFF* */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same suggestion for INDENT-OFF/ON

Comment thread portable/CodeWarrior/ColdFire_V2/portmacro.h

#ifdef __cplusplus
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

INDENT-OFF/ON suggestion.

Comment thread portable/CodeWarrior/HCS12/portmacro.h Outdated
typedef signed char BaseType_t;
typedef unsigned char UBaseType_t;

#if( configUSE_16_BIT_TICKS == 1 )

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

configTICK_TYPE_WIDTH_IN_BITS suggestion.

@sonarqubecloud

sonarqubecloud Bot commented Dec 7, 2023

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@aggarg
aggarg merged commit db5df4b into FreeRTOS:main Dec 7, 2023
@Skptak
Skptak deleted the fixCodeWarriorFormatting branch December 19, 2023 13:06
DajanaV pushed a commit to auroralabs-loci/FreeRTOS-Kernel that referenced this pull request Dec 3, 2025
Revert the formatting on CodeWarrior ports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants