This commit is contained in:
2026-10-02 21:03:47 +02:00
parent 9d517f3607
commit b15620838b
20 changed files with 579 additions and 60 deletions
+21
View File
@@ -0,0 +1,21 @@
{
"version": 4,
"configurations": [
{
"name": "Linux",
"includePath": ["${workspaceFolder}/include"],
"compilerPath": "/usr/bin/gcc",
"compilerArgs": ["-std=c17", "-Wall", "-Wextra", "-Wpedantic"],
"cStandard": "c17",
"intelliSenseMode": "linux-gcc-x64"
},
{
"name": "Win32",
"includePath": ["${workspaceFolder}/include"],
"compilerPath": "C:/msys64/ucrt64/bin/gcc.exe",
"compilerArgs": ["-std=c17", "-Wall", "-Wextra", "-Wpedantic"],
"cStandard": "c17",
"intelliSenseMode": "windows-gcc-x64"
}
]
}
+34
View File
@@ -0,0 +1,34 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Depurar hello (gdb)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/hello",
"args": [],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"preLaunchTask": "make",
"setupCommands": [
{
"description": "Formato legible para structs y arrays",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "No descargar símbolos de depuración del sistema",
"text": "set debuginfod enabled off",
"ignoreFailures": true
}
],
"windows": {
"program": "${workspaceFolder}/build/hello.exe",
"miDebuggerPath": "C:/msys64/ucrt64/bin/gdb.exe"
}
}
]
}
+16
View File
@@ -0,0 +1,16 @@
{
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"files.associations": {
"*.h": "c"
},
"[c]": {
"editor.tabSize": 4,
"editor.insertSpaces": true,
"editor.formatOnSave": false
},
"[makefile]": {
"editor.insertSpaces": false,
"editor.detectIndentation": false
}
}
+31
View File
@@ -0,0 +1,31 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "make",
"type": "shell",
"command": "make",
"group": { "kind": "build", "isDefault": true },
"problemMatcher": ["$gcc"]
},
{
"label": "make clean",
"type": "shell",
"command": "make clean",
"problemMatcher": []
},
{
"label": "make (clang)",
"type": "shell",
"command": "make clean && make CC=clang",
"problemMatcher": ["$gcc"]
},
{
"label": "valgrind",
"type": "shell",
"command": "valgrind --leak-check=full ./build/hello",
"dependsOn": "make",
"problemMatcher": []
}
]
}