Skip to content

Format for uncrustify 0.83.0 - #391

Merged
kstribrnAmzn merged 1 commit into
FreeRTOS:mainfrom
kstribrnAmzn:formatting
Nov 17, 2026
Merged

kstribrnAmzn merged 1 commit into
FreeRTOS:mainfrom
kstribrnAmzn:formatting

Conversation

@kstribrnAmzn

Copy link
Copy Markdown
Member

Description

Update formatting file for uncrustify 0.83.0 supported params.

Test Steps

To reproduce the failures here, I pulled the coreMQTT repo and ran the following command uncrustify --no-backup --replace -c ~/workspace/forks/CI-CD-Github-Actions/formatting/uncrustify.cfg source/core_mqtt_serializer.c. With the old config file it would output:

/Users/kstribrn/workspace/uncrustify.cfg:20: option 'sp_cpp_lambda_paren' is deprecated; use 'sp_cpp_lambda_square_paren' instead.

/Users/kstribrn/workspace/uncrustify.cfg:37: option 'sp_balance_nested_parens' never works; it has been replaced by 'sp_paren_paren'.

/Users/kstribrn/workspace/uncrustify.cfg:96: option 'sp_type_question' is deprecated; did you want to use 'sp_before_ptr_star' instead?

/Users/kstribrn/workspace/uncrustify.cfg:171: option 'sp_word_brace' is deprecated; did you want to use 'sp_type_brace_init_lst' instead?

/Users/kstribrn/workspace/uncrustify.cfg:223: option 'sp_before_tr_emb_cmt' is deprecated; did you want to use 'sp_before_tr_cmt' instead?

With the updated configuration file the output was clean.

Note: I used Homebrew's uncrustify which is now also 0.83.0

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.

@kstribrnAmzn

Copy link
Copy Markdown
Member Author

formatting check will fail until FreeRTOS/CI-CD-Github-Actions#158 is merged in.

@kstribrnAmzn

Copy link
Copy Markdown
Member Author

Build failure fixed in #392.

@kstribrnAmzn
kstribrnAmzn merged commit 697b962 into FreeRTOS:main Nov 17, 2026
15 of 22 checks passed
@kstribrnAmzn
kstribrnAmzn deleted the formatting branch November 17, 2026 18:11
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.

2 participants