initial commit

This commit is contained in:
fanlumaster
2025-01-01 23:59:37 +08:00
commit e865631fe9
53 changed files with 12742 additions and 0 deletions

15
.vscode/c_cpp_propertities.json vendored Normal file
View File

@ -0,0 +1,15 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/src/",
"${workspaceFolder}/includes/"
],
"intelliSenseMode": "linux-gcc-x64",
"compilerPath": "/usr/bin/g++",
"cppStandard": "c++17"
}
],
"version": 4
}

13
.vscode/custom.code-snippets vendored Normal file
View File

@ -0,0 +1,13 @@
{
"Main Function": {
"scope": "c,cpp",
"prefix": "main",
"body": [
"int main(int argc, char *argv[]) {",
" $0",
" return 0;",
"}"
],
"description": "Insert a C++ main function"
}
}

32
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,32 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/bin/linuxcppdemo",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
}
]
}

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

@ -0,0 +1,10 @@
{
"C_Cpp.default.cppStandard": "c++17",
"editor.tabSize": 2,
"editor.indentSize": "tabSize",
"[cpp]": {
"editor.tabSize": 2
},
"C_Cpp.formatting": "clangFormat",
"cmake.generator": "Unix Makefiles"
}