You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.2 KiB
35 lines
1.2 KiB
{
|
|
"files.associations": {
|
|
"unordered_map": "cpp",
|
|
"vector": "cpp",
|
|
"array": "cpp",
|
|
"iostream": "cpp"
|
|
},
|
|
"C_Cpp.default.compilerPath": "/usr/bin/clang++",
|
|
"[cpp]": {
|
|
"editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd",
|
|
"editor.formatOnSave": true,
|
|
},
|
|
// "C_Cpp.clangTidy.enabled": true,
|
|
// "C_Cpp.clangTidy.path": "clang-tidy", // 需要确保clang-tidy在系统PATH中
|
|
// "C_Cpp.clangTidy.args": [
|
|
// "--checks=*,-clang-analyzer-*,-cppcoreguidelines-pro-bounds-array-to-pointer-decay", // 允许所有规则,排除某些干扰较大的检查
|
|
// "--warnings-as-errors=*",
|
|
// "--header-filter=.*"
|
|
// ],
|
|
// "C_Cpp.clangTidy.fixOnSave": false, // 保存时自动修复可修复的建议
|
|
|
|
// "C_Cpp.cpplint.enabled": false, // 禁用cpplint,使用cppcheck
|
|
// "C_Cpp.cppcheck.enabled": true,
|
|
// "C_Cpp.cppcheck.args": [
|
|
// "--enable=all", // 启用所有检查
|
|
// "--inconclusive", // 报告潜在的问题
|
|
// "--std=c++17", // 设置C++标准
|
|
// "--force" // 强制检查所有文件,即使有错误
|
|
// ],
|
|
"[c]": {
|
|
"editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd",
|
|
"editor.formatOnSave": true
|
|
},
|
|
"C_Cpp.codeAnalysis.clangTidy.enabled": true
|
|
}
|