Skip to content

Commit 1b69d22

Browse files
Anton3anatoly-spb
andauthored
feat build: add VSCode config files (#28)
Co-authored-by: Anatoly Shirokov <[email protected]>
1 parent dbd556d commit 1b69d22

File tree

4 files changed

+33
-1
lines changed

4 files changed

+33
-1
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ __pycache__
22
build*
33
compile_commands.json
44
.cache/
5+
.ccache/
56
.idea/
67
.vscode/
8+
!.vscode/c_cpp_properties.json
9+
!.vscode/cmake-variants.yaml
10+
!.vscode/README.md
711
.cores/
8-
.ccache/
912
.pgdata/
1013
cmake-build-*
1114
Testing/

.vscode/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This is the minimal configuration for VSCode IDE.
2+
If you don't use VSCode, feel free to delete this directory.

.vscode/c_cpp_properties.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "CMake",
5+
"compileCommands": "${config:cmake.buildDirectory}/compile_commands.json",
6+
"configurationProvider": "ms-vscode.cmake-tools"
7+
}
8+
],
9+
"version": 4
10+
}

.vscode/cmake-variants.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
buildType:
2+
default: debug
3+
choices:
4+
debug:
5+
short: Debug
6+
long: Unoptimized debug build with sanitizers
7+
buildType: Debug
8+
settings:
9+
CMAKE_EXPORT_COMPILE_COMMANDS: ON
10+
USERVER_SANITIZE: addr ub
11+
12+
release:
13+
short: Release
14+
long: Optimized build
15+
buildType: Release
16+
settings:
17+
CMAKE_EXPORT_COMPILE_COMMANDS: ON

0 commit comments

Comments
 (0)