Update c_cpp_properties.json

This commit is contained in:
lianghongkey 2020-02-19 17:54:57 +08:00 committed by GitHub
parent 52e6918022
commit b04abf042f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 14 deletions

View File

@ -1,27 +1,20 @@
{ {
"env": { "env": {
"myDefaultIncludePath": ["${workspaceFolder}", "${workspaceFolder}/include"] "myDefaultIncludePath": [
}, "${workspaceFolder}",
"${workspaceFolder}/include"
]
},
"configurations": [ "configurations": [
{ {
"name": "Linux", "name": "Linux",
"intelliSenseMode": "clang-x64", "intelliSenseMode": "clang-x64",
"includePath": [ "includePath": [
"${myDefaultIncludePath}", "${workspaceFolder}/**"
"${workspaceFolder}/include/**",
"${workspaceFolder}/lib/**",
"${workspaceFolder}/tests/**",
"${workspaceFolder}/third_party/**",
"${workspaceFolder}/tools/**"
], ],
"defines": [], "defines": [],
"compilerPath": "/usr/bin/clang-3.9", "compilerPath": "/usr/bin/clang-3.9",
"compileCommands": "${workspaceFolder}/compile_commands.json", "compileCommands": "${workspaceFolder}/compile_commands.json"
"browse": {
"path": ["${workspaceFolder}"],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
} }
], ],
"version": 4 "version": 4