From 2a7d13c296929b71d4d3f75a56a09c41e7be8dfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20H=C3=B6lscher?= Date: Wed, 20 Apr 2022 10:15:56 +0200 Subject: [PATCH] Better Setup. --- .vscode/tasks.json | 13 +++++++++++++ README.md | 8 ++++++++ 2 files changed, 21 insertions(+) create mode 100644 .vscode/tasks.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..e7d4f67 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,13 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "type": "shell", + "command": "cd build ; cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DLT_LLVM_INSTALL_DIR=$LLVM_DIR ../CacheAnalysisPass/ ; ninja", + "group": "build" + }, + ] +} \ No newline at end of file diff --git a/README.md b/README.md index cb11027..8504948 100644 --- a/README.md +++ b/README.md @@ -31,16 +31,24 @@ For this setup you cannot use the OSS version of VS code or the version from Sna 2.) We recommend you install the following extensions in vs code clangd, +Clang-Format, CodeLLDB, Docker and Remote Development +For a general C/C++ setup of VS Code (I consider good) see: + + +Most of the setup can be skipped + 3.) Use the helper script to build and run a Container ./helper.sh docker This will build a docker image and run a Docker container with the current directory mounted. +The Docker container can later be started from the Docker VS Code extension. + 4.) Attach VS Code to the container, in the Docker Tab, and start developing ## Debugging