mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2024-11-27 12:05:34 +00:00
Updated Code formatting (markdown)
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
|
## 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
|
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
|
## CLI
|
||||||
To format using CLI, make sure you have clang-format-13 installed
|
To format using CLI, make sure you have clang-format-13 installed
|
||||||
|
|
||||||
@ -26,3 +23,8 @@ find firmware/common -iname '*.h' -o -iname '*.hpp' -o -iname '*.cpp' -o -iname
|
|||||||
find firmware/baseband -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
|
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.
|
Loading…
Reference in New Issue
Block a user