Skip to content

Commit 6448e72

Browse files
committed
style: astyle to the coding style paragraph
1 parent 58b5537 commit 6448e72

File tree

1 file changed

+8
-8
lines changed
  • docs/reference/contributing/guidelines

1 file changed

+8
-8
lines changed

docs/reference/contributing/guidelines/style.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ Mbed OS follows the [K&R style](https://en.wikipedia.org/wiki/Indent_style#K.26R
1616

1717
The only exception to this coding style are 3rd parties libraries. The 3rd party libraries should be added to the `.astyleignore` file located in the Mbed OS root directory.
1818

19+
You can use [Artistic Style (AStyle)](http://sourceforge.net/projects/astyle/files/) to format your code. Use the command-line switch to select the correct style and point to the file you want to edit:
20+
21+
```
22+
astyle -n --options=.astylerc $(full_path_to_file)
23+
```
24+
25+
File `.astylerc` defines Mbed OS code style and it's located in Mbed OS root directory.
26+
1927
##### Code sample
2028

2129
```c
@@ -158,14 +166,6 @@ typedef struct analogin_s analogin_t;
158166

159167
All functions and methods should contain documentation using Doxgyen.
160168

161-
You can use [Artistic Style (AStyle)](http://sourceforge.net/projects/astyle/files/) to format your code. Use the command-line switch to select the correct style and point to the file you want to edit:
162-
163-
```
164-
astyle -n --options=.astylerc $(full_path_to_file)
165-
```
166-
167-
File `.astylerc` defines Mbed OS code style and it's located in Mbed OS root directory.
168-
169169
#### Compiler settings
170170

171171
All C and C++ code submitted to Mbed OS must compile with GCC Arm Embedded, Arm Compiler 5 and IAR EWARM. Mbed OS:

0 commit comments

Comments
 (0)