Skip to content

Commit 24d650a

Browse files
committed
C stubs: add a .clang-format
We may intend to upstream the xenctrlext stubs to Xen, so it should follow the Xen CODING_STYLE. The .clang-format here is based on a version I sent upstream that tries to follow that coding style. Signed-off-by: Edwin Török <[email protected]>
1 parent ac1b830 commit 24d650a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.clang-format

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
BasedOnStyle: GNU
2+
IndentWidth: 4
3+
4+
# override GNU to match Xen ../../CODING_STYLE more closely
5+
AlwaysBreakAfterDefinitionReturnType: None
6+
AlwaysBreakAfterReturnType: None
7+
SpacesInConditionalStatement: true
8+
SpaceBeforeParens: ControlStatements
9+
BreakBeforeBraces: Allman

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ doc-json:
145145

146146
format:
147147
dune build @fmt --auto-promote
148+
git ls-files '*.c' '*.h' | xargs clang-format -i
148149

149150
.PHONY: quality-gate
150151
quality-gate:

0 commit comments

Comments
 (0)