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