Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
simple-mbed-cloud-client/mbed-cloud-client/update-client-hub/.astylerc@0:8f0bb79ddd48, 2021-05-04 (annotated)
- Committer:
- leothedragon
- Date:
- Tue May 04 08:55:12 2021 +0000
- Revision:
- 0:8f0bb79ddd48
nmn
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
leothedragon | 0:8f0bb79ddd48 | 1 | # Mbed OS code style definition file for astyle |
leothedragon | 0:8f0bb79ddd48 | 2 | |
leothedragon | 0:8f0bb79ddd48 | 3 | # Don't create backup files, let git handle it |
leothedragon | 0:8f0bb79ddd48 | 4 | suffix=none |
leothedragon | 0:8f0bb79ddd48 | 5 | |
leothedragon | 0:8f0bb79ddd48 | 6 | # K&R style |
leothedragon | 0:8f0bb79ddd48 | 7 | style=kr |
leothedragon | 0:8f0bb79ddd48 | 8 | |
leothedragon | 0:8f0bb79ddd48 | 9 | # 1 TBS addition to k&r, add braces to one liners |
leothedragon | 0:8f0bb79ddd48 | 10 | # Use -j as it was changed in astyle from brackets to braces, this way it is compatible with older astyle versions |
leothedragon | 0:8f0bb79ddd48 | 11 | -j |
leothedragon | 0:8f0bb79ddd48 | 12 | |
leothedragon | 0:8f0bb79ddd48 | 13 | # 4 spaces, convert tabs to spaces |
leothedragon | 0:8f0bb79ddd48 | 14 | indent=spaces=4 |
leothedragon | 0:8f0bb79ddd48 | 15 | convert-tabs |
leothedragon | 0:8f0bb79ddd48 | 16 | |
leothedragon | 0:8f0bb79ddd48 | 17 | # Indent switches and cases |
leothedragon | 0:8f0bb79ddd48 | 18 | indent-switches |
leothedragon | 0:8f0bb79ddd48 | 19 | |
leothedragon | 0:8f0bb79ddd48 | 20 | # Remove spaces in and around parentheses |
leothedragon | 0:8f0bb79ddd48 | 21 | unpad-paren |
leothedragon | 0:8f0bb79ddd48 | 22 | |
leothedragon | 0:8f0bb79ddd48 | 23 | # Insert a space after if, while, for, and around operators |
leothedragon | 0:8f0bb79ddd48 | 24 | pad-header |
leothedragon | 0:8f0bb79ddd48 | 25 | pad-oper |
leothedragon | 0:8f0bb79ddd48 | 26 | |
leothedragon | 0:8f0bb79ddd48 | 27 | # Pointer/reference operators go next to the name (on the right) |
leothedragon | 0:8f0bb79ddd48 | 28 | align-pointer=name |
leothedragon | 0:8f0bb79ddd48 | 29 | align-reference=name |
leothedragon | 0:8f0bb79ddd48 | 30 | |
leothedragon | 0:8f0bb79ddd48 | 31 | # Attach { for classes and namespaces |
leothedragon | 0:8f0bb79ddd48 | 32 | attach-namespaces |
leothedragon | 0:8f0bb79ddd48 | 33 | attach-classes |
leothedragon | 0:8f0bb79ddd48 | 34 | |
leothedragon | 0:8f0bb79ddd48 | 35 | # Extend longer lines, define maximum 120 value. This results in aligned code, |
leothedragon | 0:8f0bb79ddd48 | 36 | # otherwise the lines are broken and not consistent |
leothedragon | 0:8f0bb79ddd48 | 37 | max-continuation-indent=120 |
leothedragon | 0:8f0bb79ddd48 | 38 | |
leothedragon | 0:8f0bb79ddd48 | 39 | |
leothedragon | 0:8f0bb79ddd48 | 40 | # Style formatting options for Update Client codebase. |
leothedragon | 0:8f0bb79ddd48 | 41 | |
leothedragon | 0:8f0bb79ddd48 | 42 | # Each line no greater than 120 characters. |
leothedragon | 0:8f0bb79ddd48 | 43 | --max-code-length=120 |
leothedragon | 0:8f0bb79ddd48 | 44 | |
leothedragon | 0:8f0bb79ddd48 | 45 | # Display only files that have been formatted. |
leothedragon | 0:8f0bb79ddd48 | 46 | -Q |
leothedragon | 0:8f0bb79ddd48 | 47 | |
leothedragon | 0:8f0bb79ddd48 | 48 | # Keep one-line blocks, especially for union initialization of error structs. |
leothedragon | 0:8f0bb79ddd48 | 49 | --keep-one-line-blocks |
leothedragon | 0:8f0bb79ddd48 | 50 | |
leothedragon | 0:8f0bb79ddd48 | 51 | # Indent pre-processor block |
leothedragon | 0:8f0bb79ddd48 | 52 | # --indent-preproc-block |
leothedragon | 0:8f0bb79ddd48 | 53 | |
leothedragon | 0:8f0bb79ddd48 | 54 | # Delete empty lines |
leothedragon | 0:8f0bb79ddd48 | 55 | # --delete-empty-lines |
leothedragon | 0:8f0bb79ddd48 | 56 | |
leothedragon | 0:8f0bb79ddd48 | 57 | # Attach the return type to a function definition or declaration. |
leothedragon | 0:8f0bb79ddd48 | 58 | --attach-return-type # Definition |
leothedragon | 0:8f0bb79ddd48 | 59 | --attach-return-type-decl # Declaration |