Add vscode configuration

This commit is contained in:
apio 2023-01-02 13:00:22 +01:00
parent df8f9c6cf6
commit 3442970678
Signed by: apio
GPG Key ID: B8A7D06E42258954
4 changed files with 20 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,6 +1,5 @@
Luna.iso Luna.iso
toolchain/ toolchain/
.vscode/
build/ build/
initrd/boot/moon initrd/boot/moon
env-local.sh env-local.sh

13
.vscode/c_cpp_properties.json vendored Normal file
View File

@ -0,0 +1,13 @@
{
"configurations": [
{
"name": "Luna",
"compilerPath": "${workspaceFolder}/toolchain/x86-64-luna/bin/x86_64-luna-gcc",
"cStandard": "c17",
"cppStandard": "c++20",
"intelliSenseMode": "gcc-x64",
"configurationProvider": "ms-vscode.cmake-tools"
}
],
"version": 4
}

4
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,4 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "xaver.clang-format"
}

View File

@ -1,6 +1,9 @@
# The miscellaneous library shared between the Luna kernel and userspace, with stuff such as custom types, common routines and data structures. # The miscellaneous library shared between the Luna kernel and userspace, with stuff such as custom types, common routines and data structures.
file(GLOB HEADERS include/luna/*.h)
set(FREESTANDING_SOURCES set(FREESTANDING_SOURCES
${HEADERS}
src/Format.cpp src/Format.cpp
src/NumberParsing.cpp src/NumberParsing.cpp
src/CString.cpp src/CString.cpp