Skip to content
This repository was archived by the owner on Aug 16, 2026. It is now read-only.

Commit d2ac6aa

Browse files
committed
Added .clang-format
1 parent eb6e049 commit d2ac6aa

3 files changed

Lines changed: 20 additions & 2 deletions

File tree

.clang-format

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
BasedOnStyle: LLVM
2+
IndentWidth: 2
3+
ColumnLimit: 120
4+
# Force blocks, functions, and control statements onto one line
5+
AllowShortBlocksOnASingleLine: false
6+
AllowShortFunctionsOnASingleLine: false
7+
AllowShortIfStatementsOnASingleLine: false
8+
AllowShortLambdasOnASingleLine: false
9+
AllowShortLoopsOnASingleLine: false
10+
AllowShortCaseLabelsOnASingleLine: false
11+
BreakBeforeBraces: Attach

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
wsjcpp-validators
22
tmp/*
3-
.vscode
4-
!.vscode/setting.json
3+
.vscode/*
4+
!/.vscode/settings.json
55

66
# Vim temp files
77
*.swp

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"C_Cpp.clang_format_style": "file",
3+
"cSpell.words": [
4+
"nlohmann",
5+
"wsjcpp"
6+
]
7+
}

0 commit comments

Comments
 (0)