Created
November 16, 2021 19:06
-
-
Save kienvo/7087503513937edbfce0d6ce6ee8feef to your computer and use it in GitHub Desktop.
IntelliSense configuration for kernel headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "Linux", | |
"includePath": [ | |
// https://github.com/microsoft/vscode-cpptools/issues/5588#issuecomment-662116156 | |
"${workspaceFolder}/**", | |
"/usr/src/linux-headers-5.4.0-81-generic/arch/x86/include", | |
"/usr/src/linux-headers-5.4.0-81-generic/arch/x86/include/generated", | |
"/usr/src/linux-headers-5.4.0-81-generic/include", | |
"/usr/src/linux-headers-5.4.0-81-generic/arch/x86/include/uapi", | |
"/usr/src/linux-headers-5.4.0-81-generic/arch/x86/include/generated/uapi", | |
"/usr/src/linux-headers-5.4.0-81-generic/include/uapi", | |
"/usr/src/linux-headers-5.4.0-81-generic/include/generated/uapi", | |
"/usr/src/linux-headers-5.4.0-81-generic/ubuntu/include", | |
"/usr/lib/gcc/x86_64-linux-gnu/9/include" | |
], | |
"defines": [ | |
"__KERNEL__", | |
"__SMP__", | |
"MODULE" | |
], | |
"intelliSenseMode": "gcc-x64", | |
"compilerPath": "/usr/bin/gcc", | |
"cStandard": "c11", | |
"compilerArgs": [ | |
"-nostdinc", | |
"-isystem" | |
], | |
"configurationProvider": "ms-vscode.makefile-tools", | |
"cppStandard": "c++11" | |
} | |
], | |
"version": 4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment