summaryrefslogtreecommitdiff
path: root/.vscode
diff options
context:
space:
mode:
authorzy <[email protected]>2023-11-29 17:00:27 +0800
committerzy <[email protected]>2023-11-29 17:00:27 +0800
commit8b320bb15edc7fb29b6b4373c1c6ebffe156851d (patch)
tree24f6f01c24a488ba0a3352b027d75e47412ecfad /.vscode
parent7e86cd9e488104efbcf44c5401f862a53ad9aab9 (diff)
.vscode/setting
Diffstat (limited to '.vscode')
-rw-r--r--.vscode/c_cpp_properties.json10
-rw-r--r--.vscode/settings.json27
2 files changed, 24 insertions, 13 deletions
diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json
index 4483e56..58ad8d2 100644
--- a/.vscode/c_cpp_properties.json
+++ b/.vscode/c_cpp_properties.json
@@ -9,7 +9,7 @@
"${workspaceFolder}/linux-5.17.15/arch/x86/include/generated/**"
],
"forcedInclude": [
- "${workspaceFolder}/linux-5.17.15/include/generated/autoconf.h"
+ "${workspaceFolder}/linux-5.17.15/include/generated/autoconf.h"
],
"defines": [
"__GNUC__",
@@ -18,11 +18,13 @@
"__x86_64__",
"_GNU_SOURCE"
],
- "compileCommands": "${workspaceFolder}/linux-5.17.15/compile_commands.json",
- "compilerPath": "/usr/bin/gcc",
- "cStandard": "c89",
+ "cStandard": "gnu89",
"compilerArgs": [],
"intelliSenseMode": "linux-gcc-x64",
+ "cppStandard": "gnu++11",
+ "browse": {
+ "limitSymbolsToIncludedHeaders": true
+ }
}
],
"version": 4
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 2fd95e4..395354b 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,14 +1,23 @@
{
- // "clangd.arguments": [
- // "--compile-commands-dir=${workspaceFolder}/linux-5.17.15",
- // "--background-index",
- // "--completion-style=detailed",
- // "--header-insertion=never",
- // "-log=info"
- // ],
+ "clangd.arguments": [
+ "--compile-commands-dir=${workspaceFolder}/linux-5.17.15",
+ "--background-index",
+ "--completion-style=detailed",
+ "--header-insertion=never",
+ "-log=info"
+ ],
"C_Cpp.clang_format_fallbackStyle": "LLVM",
- // "C_Cpp.autocomplete": "disabled",
+ "files.associations": {
+ "module.h": "c",
+ "slab.h": "c",
+ "kernel.h": "c",
+ "uaccess.h": "c",
+ "types.h": "c",
+ "monitor_proc.h": "c"
+ },
+ // "C_Cpp.default.compilerPath": "/usr/bin/gcc",
+ "C_Cpp.autocomplete": "disabled",
// "C_Cpp.codeFolding": "disabled",
// "C_Cpp.configurationWarnings": "disabled",
- // "C_Cpp.intelliSenseEngine": "disabled"
+ "C_Cpp.intelliSenseEngine": "disabled"
} \ No newline at end of file