Skip to content

Commit ed8c3af

Browse files
Use clangd
1 parent 0f8f8bc commit ed8c3af

3 files changed

Lines changed: 49 additions & 19 deletions

File tree

.gitignore

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,31 @@
1+
# IDE folders
2+
.idea/
3+
.vs/
4+
.vscode/
5+
6+
# Caches
17
__pycache__
2-
.idea
3-
.ninja_deps
4-
.ninja_log
5-
*.exe
6-
build
7-
build.ninja
8-
objdiff.json
8+
.mypy_cache
9+
.cache/
10+
11+
# Original files
912
orig/*/*
1013
!orig/*/.gitkeep
11-
tools/mwcc_compiler/*
12-
!tools/mwcc_compiler/.gitkeep
14+
15+
# Build files
16+
build/
17+
.ninja_*
18+
build.ninja
19+
20+
# decompctx output
21+
ctx.*
22+
*.ctx
23+
24+
# Generated configs
25+
objdiff.json
26+
compile_commands.json
27+
28+
# Miscellaneous
1329
/*.txt
14-
ctx.c
30+
*.exe
31+
*.dol

.vscode/extensions.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
{
22
"recommendations": [
3-
"ms-vscode.cpptools",
4-
"xaver.clang-format",
53
"akiramiyakoda.cppincludeguard",
6-
"ms-python.black-formatter"
4+
"llvm-vs-code-extensions.vscode-clangd",
5+
"ms-python.black-formatter",
6+
"ms-python.flake8",
7+
],
8+
"unwantedRecommendations": [
9+
"ms-vscode.cmake-tools",
10+
"ms-vscode.cpptools-extension-pack",
11+
"ms-vscode.cpptools",
712
]
813
}

.vscode/settings.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
{
22
"[c]": {
3-
"files.encoding": "shiftjis",
4-
"editor.defaultFormatter": "xaver.clang-format"
3+
"files.encoding": "utf8",
4+
"editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd"
55
},
66
"[cpp]": {
7-
"files.encoding": "shiftjis",
8-
"editor.defaultFormatter": "xaver.clang-format"
7+
"files.encoding": "utf8",
8+
"editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd"
99
},
10-
"[python]":{
10+
"[python]": {
1111
"editor.defaultFormatter": "ms-python.black-formatter"
1212
},
1313
"editor.tabSize": 2,
14+
"files.associations": {
15+
"source_location": "cpp",
16+
"*.h": "c",
17+
"*.inc": "c",
18+
".clangd": "yaml",
19+
},
1420
"files.autoSave": "onFocusChange",
1521
"files.insertFinalNewline": true,
1622
"files.trimFinalNewlines": true,
@@ -38,5 +44,7 @@
3844
"C/C++ Include Guard.Auto Update Path Blocklist": [
3945
"include/zlib"
4046
],
41-
"search.useIgnoreFiles": false
47+
"search.useIgnoreFiles": false,
48+
// Disable C++ intellisense engine, use clangd instead
49+
"C_Cpp.intelliSenseEngine": "disabled"
4250
}

0 commit comments

Comments
 (0)