Skip to content

Commit bf2166c

Browse files
committed
TEMP: Define formatting
1 parent bc1f050 commit bf2166c

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.clang-format

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
Language: Cpp
3+
AlignAfterOpenBracket: BlockIndent
4+
BinPackArguments: false # NOTE: Conflicts with trailing commas
5+
BreakBeforeBraces: Attach
6+
BreakStringLiterals: true
7+
ColumnLimit: 88
8+
IndentWidth: 4
9+
InsertBraces: true
10+
InsertNewlineAtEOF: true
11+
InsertTrailingCommas: Wrapped
12+
LineEnding: LF
13+
PointerAlignment: Right
14+
TabWidth: 4
15+
UseTab: Always

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ stats.o: stats.c stats.h version.c version.h
1313
version.o: version.c version.h
1414
$(CC) -c -o version.o version.c
1515

16+
.PHONY: format
17+
format:
18+
clang-format -i *.c *.h
19+
1620
.PHONY: run
1721
run: fetchfetch
1822
./fetchfetch

0 commit comments

Comments
 (0)