Files
Code/cplusplus/learning/.vscode/settings.json
dl92 c2fc82707e working clang-tidy
clang-tidy is a static analysis tool:
It analyzes C++ source code
It finds bugs, bad practices, and design issues
It uses the same compiler flags as your real build

Examples of what it catches:
Uninitialized variables
Dangling references
Inefficient copies
Dangerous implicit conversions
Missing explicit
Poor modern C++ usage
2026-01-07 23:49:57 +00:00

22 lines
436 B
JSON

{
"clangd.arguments": [
"--compile-commands-dir=build",
"--clang-tidy"
],
"[cpp]": {
"editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd",
"editor.formatOnSave": true
},
"cmake.configureSettings": {
"CMAKE_TOOLCHAIN_FILE": "/home/ys/family-repo/Code/cplusplus/tools/vcpkg/scripts/buildsystems/vcpkg.cmake",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
},
"cmake.generator": "Ninja"
}