diff --git a/.gitignore b/.gitignore index ede5619..95c04c5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,10 +2,13 @@ __pycache__ build* compile_commands.json .cache/ +.ccache/ .idea/ .vscode/ +!.vscode/c_cpp_properties.json +!.vscode/cmake-variants.yaml +!.vscode/README.md .cores/ -.ccache/ cmake-build-* Testing/ .DS_Store diff --git a/.vscode/README.md b/.vscode/README.md new file mode 100644 index 0000000..8044ccc --- /dev/null +++ b/.vscode/README.md @@ -0,0 +1,2 @@ +This is the minimal configuration for VSCode IDE. +If you don't use VSCode, feel free to delete this directory. diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..fe6bd42 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,10 @@ +{ + "configurations": [ + { + "name": "CMake", + "compileCommands": "${config:cmake.buildDirectory}/compile_commands.json", + "configurationProvider": "ms-vscode.cmake-tools" + } + ], + "version": 4 +} diff --git a/.vscode/cmake-variants.yaml b/.vscode/cmake-variants.yaml new file mode 100644 index 0000000..955a8f2 --- /dev/null +++ b/.vscode/cmake-variants.yaml @@ -0,0 +1,17 @@ +buildType: + default: debug + choices: + debug: + short: Debug + long: Unoptimized debug build with sanitizers + buildType: Debug + settings: + CMAKE_EXPORT_COMPILE_COMMANDS: ON + USERVER_SANITIZE: addr ub + + release: + short: Release + long: Optimized build + buildType: Release + settings: + CMAKE_EXPORT_COMPILE_COMMANDS: ON