mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-07-26 10:38:52 +00:00
conform to clang spec (#2925)
* conform to clang spec * proper find call * Update format-code.sh
This commit is contained in:
+6
-7
@@ -1,14 +1,13 @@
|
|||||||
---
|
---
|
||||||
BasedOnStyle: Chromium
|
BasedOnStyle: Chromium
|
||||||
IndentWidth: '4'
|
IndentWidth: 4
|
||||||
SortIncludes: 'false'
|
SortIncludes: false
|
||||||
AllowAllArgumentsOnNextLine: 'true'
|
AllowAllArgumentsOnNextLine: true
|
||||||
ColumnLimit: 0
|
ColumnLimit: 0
|
||||||
Cpp11BracedListStyle: 'true'
|
Cpp11BracedListStyle: true
|
||||||
AllowShortLoopsOnASingleLine: 'true'
|
AllowShortLoopsOnASingleLine: true
|
||||||
AllowShortIfStatementsOnASingleLine: 'true'
|
AllowShortIfStatementsOnASingleLine: true
|
||||||
SpacesInLineCommentPrefix:
|
SpacesInLineCommentPrefix:
|
||||||
Minimum: 1
|
Minimum: 1
|
||||||
Maximum: 1
|
Maximum: 1
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|||||||
+10
-1
@@ -1,2 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
find firmware/common firmware/baseband firmware/application firmware/test/application firmware/test/baseband -iname '*.h' -o -iname '*.hpp' -o -iname '*.cpp' -o -iname '*.c' | xargs clang-format-18 -style=file -i
|
|
||||||
|
find firmware/common \
|
||||||
|
firmware/baseband \
|
||||||
|
firmware/application \
|
||||||
|
firmware/test/application \
|
||||||
|
firmware/test/baseband \
|
||||||
|
\( -iname '*.h' -o -iname '*.hpp' -o -iname '*.c' -o -iname '*.cpp' \) \
|
||||||
|
-print0 | \
|
||||||
|
xargs -0 clang-format-18 -style=file -i
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user