Updated Code formatting (markdown)

zxkmm 2023-05-28 23:17:34 +08:00
parent 08a1dfbe27
commit 4eb97027a1

@ -3,9 +3,6 @@ For this we are using clang format version 13. All the config for this is in the
## VS Code
Make sure you have C/C++ extension by Microsoft installed and it should automatically pick up your .clang-format file. If not, you can go to the extension settings and specify the location under the `Clang_format_style` setting
## CLion
CLion has built in clang-format, just press Ctrl + Shift + L (Windows and Linux) to format the code with ``.clang-format`` configure file within project directory.
## CLI
To format using CLI, make sure you have clang-format-13 installed
@ -25,4 +22,9 @@ or individually:
find firmware/common -iname '*.h' -o -iname '*.hpp' -o -iname '*.cpp' -o -iname '*.c' | xargs clang-format-13 -style=file -i
find firmware/baseband -iname '*.h' -o -iname '*.hpp' -o -iname '*.cpp' -o -iname '*.c' | xargs clang-format-13 -style=file -i
find firmware/application -iname '*.h' -o -iname '*.hpp' -o -iname '*.cpp' -o -iname '*.c' | xargs clang-format-13 -style=file -i
```
```
## CLion
CLion has built in clang-format, just press Ctrl + Shift + L (Windows and Linux) to format the code with ``.clang-format`` configure file within project directory. If you have clang-tidy or so enabled, you need to disable them.