conform to clang spec (#2925)

* conform to clang spec
* proper find call
* Update format-code.sh
This commit is contained in:
gullradriel
2026-01-22 15:26:31 +01:00
committed by GitHub
parent 7a2b432bfa
commit 3a0ca480b0
2 changed files with 16 additions and 8 deletions
+6 -7
View File
@@ -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
View File
@@ -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