Skip to content

Commit 456cf4f

Browse files
committed
style: formatting
1 parent 2d9e302 commit 456cf4f

File tree

3 files changed

+120
-1
lines changed

3 files changed

+120
-1
lines changed

.clang-format

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
BasedOnStyle: LLVM
2+
IndentWidth: 2
3+
ContinuationIndentWidth: 2
4+
UseTab: Never
5+
BreakBeforeBraces: Allman
6+
AllowShortIfStatementsOnASingleLine: false
7+
AllowShortLoopsOnASingleLine: false
8+
AllowShortFunctionsOnASingleLine: None
9+
SpacesBeforeParens: ControlStatements
10+
AlwaysBreakAfterReturnType: None
11+
BinPackArguments: true
12+
BinPackParameters: true
13+
AlignAfterOpenBracket: Align
14+
ColumnLimit: 140
15+
NamespaceIndentation: All

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
# Ignore
12
*.exe
23
_build/
34
build
45
*.o
5-
.vscode/
6+
.vscode/*
7+
*.dis
8+
9+
# Do not ignore
10+
!.vscode/settings.json

.vscode/settings.json

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
{
2+
"files.associations": {
3+
"ratio": "cpp",
4+
"cassert": "cpp",
5+
"iterator": "cpp",
6+
"array": "cpp",
7+
"atomic": "cpp",
8+
"bit": "cpp",
9+
"bitset": "cpp",
10+
"cctype": "cpp",
11+
"charconv": "cpp",
12+
"chrono": "cpp",
13+
"cinttypes": "cpp",
14+
"clocale": "cpp",
15+
"cmath": "cpp",
16+
"codecvt": "cpp",
17+
"compare": "cpp",
18+
"complex": "cpp",
19+
"concepts": "cpp",
20+
"condition_variable": "cpp",
21+
"csignal": "cpp",
22+
"cstdarg": "cpp",
23+
"cstddef": "cpp",
24+
"cstdint": "cpp",
25+
"cstdio": "cpp",
26+
"cstdlib": "cpp",
27+
"cstring": "cpp",
28+
"ctime": "cpp",
29+
"cwchar": "cpp",
30+
"cwctype": "cpp",
31+
"deque": "cpp",
32+
"list": "cpp",
33+
"map": "cpp",
34+
"set": "cpp",
35+
"string": "cpp",
36+
"unordered_map": "cpp",
37+
"vector": "cpp",
38+
"exception": "cpp",
39+
"algorithm": "cpp",
40+
"functional": "cpp",
41+
"memory": "cpp",
42+
"memory_resource": "cpp",
43+
"numeric": "cpp",
44+
"optional": "cpp",
45+
"random": "cpp",
46+
"regex": "cpp",
47+
"string_view": "cpp",
48+
"system_error": "cpp",
49+
"tuple": "cpp",
50+
"type_traits": "cpp",
51+
"utility": "cpp",
52+
"format": "cpp",
53+
"fstream": "cpp",
54+
"future": "cpp",
55+
"initializer_list": "cpp",
56+
"iomanip": "cpp",
57+
"iosfwd": "cpp",
58+
"iostream": "cpp",
59+
"istream": "cpp",
60+
"limits": "cpp",
61+
"mutex": "cpp",
62+
"new": "cpp",
63+
"numbers": "cpp",
64+
"ostream": "cpp",
65+
"semaphore": "cpp",
66+
"span": "cpp",
67+
"sstream": "cpp",
68+
"stdexcept": "cpp",
69+
"stop_token": "cpp",
70+
"streambuf": "cpp",
71+
"text_encoding": "cpp",
72+
"thread": "cpp",
73+
"typeinfo": "cpp",
74+
"variant": "cpp"
75+
},
76+
77+
// Spellchecker
78+
"cSpell.words": [
79+
"microkernel",
80+
"MATMUL"
81+
],
82+
83+
// Include Paths
84+
"C_Cpp.default.includePath": [
85+
"${workspaceFolder}/build/_deps/catch2-src/src/**",
86+
"${workspaceFolder}/build/_deps/google_benchmark-src/include/**",
87+
"${workspaceFolder}/src/**"
88+
],
89+
"C_Cpp.default.cppStandard": "c++20",
90+
91+
// Formatter
92+
"editor.formatOnSave": true,
93+
"editor.defaultFormatter": "ms-vscode.cpptools",
94+
95+
// Cmake
96+
"cmake.configureArgs": [
97+
"-DSAVE_JITS_TO_FILE=ON"
98+
]
99+
}

0 commit comments

Comments
 (0)