Skip to content

Commit 8545741

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 6b386b8 commit 8545741

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
@@ -81,6 +81,7 @@ doc-json:
8181

8282
format:
8383
dune build @fmt --auto-promote
84+
git ls-files '*.c' '*.h' | xargs clang-format -i
8485

8586
.PHONY: quality-gate
8687
quality-gate:

0 commit comments

Comments
 (0)