vscode: update c config and add settings
This commit is contained in:
parent
8f54584493
commit
3a8887ad51
2 changed files with 48 additions and 4 deletions
39
.vscode/c_cpp_properties.template.json
vendored
39
.vscode/c_cpp_properties.template.json
vendored
|
@ -1,13 +1,44 @@
|
|||
{
|
||||
"configurations": [
|
||||
{
|
||||
"name": "GayBSD x86",
|
||||
"name": "GayBSD kernel x86",
|
||||
"includePath": [
|
||||
"${workspaceFolder}/include"
|
||||
"${workspaceFolder}/include",
|
||||
"${workspaceFolder}/build/include"
|
||||
],
|
||||
"defines": [],
|
||||
"defines": [
|
||||
"__KERNEL__",
|
||||
"_GAY_SOURCE=202109L"
|
||||
],
|
||||
"compilerArgs": [
|
||||
"-target=i686",
|
||||
"-m32",
|
||||
"-nodefaultlibs",
|
||||
"-nostartfiles",
|
||||
"-ffreestanding",
|
||||
"-Wall",
|
||||
"-Wstrict-prototypes",
|
||||
"-Wredundant-decls",
|
||||
"-Wnested-externs",
|
||||
"-Wbad-function-cast",
|
||||
"-Wshadow",
|
||||
"-Wsign-compare",
|
||||
"-Wunreachable-code",
|
||||
"-Wwrite-strings",
|
||||
"-Wconversion",
|
||||
"-Waggregate-return",
|
||||
"-Winline",
|
||||
"-Wcast-align"
|
||||
],
|
||||
"browse": {
|
||||
"path": [
|
||||
"${workspaceFolder}/include",
|
||||
"${workspaceFolder}/build/include"
|
||||
],
|
||||
"limitSymbolsToIncludedHeaders": true
|
||||
},
|
||||
"compilerPath": "/usr/bin/clang",
|
||||
"cStandard": "c11",
|
||||
"cStandard": "gnu11",
|
||||
"cppStandard": "c++11",
|
||||
"intelliSenseMode": "clang-x86",
|
||||
"configurationProvider": "ms-vscode.cmake-tools"
|
||||
|
|
13
.vscode/settings.template.json
vendored
Normal file
13
.vscode/settings.template.json
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"files.associations": {
|
||||
"*.s": "gas",
|
||||
"*.S": "gas",
|
||||
"*.h": "c",
|
||||
"*.h.in": "c",
|
||||
"*.ld.in": "linkerscript"
|
||||
},
|
||||
"editor.rulers": [
|
||||
80,
|
||||
100
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue