Skip to content

Commit

Permalink
Clangd in vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
shuhaowu committed Jul 18, 2024
1 parent fd78d5d commit 827f9ac
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .clangd
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
CompileFlags:
CompilationDatabase: build/debug
---
If:
PathMatch: tests/.*

CompileFlags:
CompilationDatabase: build/test
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"ms-vscode.cpptools",
"llvm-vs-code-extensions.vscode-clangd"
]
}
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"C_Cpp.intelliSenseEngine": "disabled",
"editor.formatOnSave": true,
"[cpp]": {
"editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd"
}
}

0 comments on commit 827f9ac

Please sign in to comment.