Skip to content

Commit fc79387

Browse files
committed
AStyle: add .astylerc options file
1 parent 0c839e5 commit fc79387

File tree

1 file changed

+3
-1
lines changed
  • docs/reference/contributing/guidelines

1 file changed

+3
-1
lines changed

docs/reference/contributing/guidelines/style.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,11 @@ All functions and methods should contain documentation using Doxgyen.
159159
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:
160160

161161
```
162-
astyle --style=kr --indent=spaces=4 --indents-switches $(full_path_to_file)
162+
astyle -n --options=.astylerc $(full_path_to_file)
163163
```
164164

165+
File `.astylerc` defines Mbed OS code style and it's located in Mbed OS root directory.
166+
165167
#### Compiler settings
166168

167169
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)