From 4eb97027a189abb3f7b947a64d3f45dc3a732fa2 Mon Sep 17 00:00:00 2001 From: zxkmm Date: Sun, 28 May 2023 23:17:34 +0800 Subject: [PATCH] Updated Code formatting (markdown) --- Code-formatting.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Code-formatting.md b/Code-formatting.md index d0813b4..e7faf48 100644 --- a/Code-formatting.md +++ b/Code-formatting.md @@ -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 -``` \ No newline at end of file +``` + + + +## 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. \ No newline at end of file