diff --git a/.vscode/c_cpp_properties.template.json b/.vscode/c_cpp_properties.template.json index 1f92ac5..5c59f3c 100644 --- a/.vscode/c_cpp_properties.template.json +++ b/.vscode/c_cpp_properties.template.json @@ -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" diff --git a/.vscode/settings.template.json b/.vscode/settings.template.json new file mode 100644 index 0000000..a6c3132 --- /dev/null +++ b/.vscode/settings.template.json @@ -0,0 +1,13 @@ +{ + "files.associations": { + "*.s": "gas", + "*.S": "gas", + "*.h": "c", + "*.h.in": "c", + "*.ld.in": "linkerscript" + }, + "editor.rulers": [ + 80, + 100 + ] +}