reformated vscode files

This commit is contained in:
mrbesen 2022-04-10 14:31:33 +02:00
parent 332988a4f3
commit d053765b2a
Signed by: MrBesen
GPG Key ID: 596B2350DCD67504
2 changed files with 77 additions and 91 deletions

96
.vscode/launch.json vendored
View File

@ -1,50 +1,50 @@
{ {
// Use IntelliSense to learn about possible attributes. // Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes. // Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "test Debuggen (gdb)", "name": "Debuggen (gdb)",
"type": "cppdbg", "type": "cppdbg",
"request": "launch", "request": "launch",
"program": "${workspaceFolder}/test", "program": "${workspaceFolder}/%NAME%",
"args": [], "args": [],
"stopAtEntry": false, "stopAtEntry": false,
"cwd": "${workspaceFolder}", "cwd": "${workspaceFolder}",
"environment": [], "environment": [],
"externalConsole": false, "externalConsole": false,
"MIMode": "gdb", "MIMode": "gdb",
"setupCommands": [ "setupCommands": [
{ {
"description": "Automatische Strukturierung und Einrückung für \"gdb\" aktivieren", "description": "Automatische Strukturierung und Einrückung für \"gdb\" aktivieren",
"text": "-enable-pretty-printing", "text": "-enable-pretty-printing",
"ignoreFailures": true "ignoreFailures": true
} }
], ],
"preLaunchTask": "make test", "preLaunchTask": "make all",
"miDebuggerPath": "/usr/bin/gdb" "miDebuggerPath": "/usr/bin/gdb"
}, },
{ {
"name": "Debuggen (gdb)", "name": "test Debuggen (gdb)",
"type": "cppdbg", "type": "cppdbg",
"request": "launch", "request": "launch",
"program": "${workspaceFolder}/%NAME%", "program": "${workspaceFolder}/test",
"args": [], "args": [],
"stopAtEntry": false, "stopAtEntry": false,
"cwd": "${workspaceFolder}", "cwd": "${workspaceFolder}",
"environment": [], "environment": [],
"externalConsole": false, "externalConsole": false,
"MIMode": "gdb", "MIMode": "gdb",
"setupCommands": [ "setupCommands": [
{ {
"description": "Automatische Strukturierung und Einrückung für \"gdb\" aktivieren", "description": "Automatische Strukturierung und Einrückung für \"gdb\" aktivieren",
"text": "-enable-pretty-printing", "text": "-enable-pretty-printing",
"ignoreFailures": true "ignoreFailures": true
} }
], ],
"preLaunchTask": "make all", "preLaunchTask": "make test",
"miDebuggerPath": "/usr/bin/gdb" "miDebuggerPath": "/usr/bin/gdb"
} }
] ]
} }

72
.vscode/tasks.json vendored
View File

@ -1,45 +1,31 @@
{ {
// See https://go.microsoft.com/fwlink/?LinkId=733558 // See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format // for the documentation about the tasks.json format
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{ {
"label": "make all", "label": "make all",
"type": "shell", "type": "shell",
"command": "make -j all", "command": "make -j all",
"group": { "group": {
"kind": "build", "kind": "build",
"isDefault": true "isDefault": true
}, },
"problemMatcher": [ "problemMatcher": [
"$gcc" "$gcc"
] ]
}, },
{ {
"label": "make clean", "label": "make clean",
"type": "shell", "type": "shell",
"command": "make clean", "command": "make clean",
"problemMatcher": [] "problemMatcher": []
}, },
{ {
"label": "leak check", "label": "make test",
"type": "shell", "type": "shell",
"command": "/usr/bin/valgrind --leak-check=full ${workspaceFolder}/%NAME% -s", "command": "make -j test",
"problemMatcher": [], "problemMatcher": ["$gcc"],
"dependsOn": "make all" }
}, ]
{
"label": "leak check ALL",
"type": "shell",
"command": "/usr/bin/valgrind --leak-check=full --show-leak-kinds=all ${workspaceFolder}/%NAME% -s",
"problemMatcher": [],
"dependsOn": "make all"
},
{
"label": "make test",
"type": "shell",
"command": "make -j test",
"problemMatcher": ["$gcc"],
}
]
} }