From 80d0497c8de718fce187b9bdee940453d0b88c52 Mon Sep 17 00:00:00 2001 From: Zoe Pfister <zoe.pfister@student.uibk.ac.at> Date: Mon, 8 Aug 2022 13:52:59 +0200 Subject: [PATCH] add .clang-format file, add extension recommendation --- .clang-format | 13 +++++++++++++ .vscode/extensions.json | 5 +++++ .vscode/tasks.json | 12 ++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 .clang-format create mode 100644 .vscode/extensions.json create mode 100644 .vscode/tasks.json diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..b8e6a68 --- /dev/null +++ b/.clang-format @@ -0,0 +1,13 @@ +--- +BasedOnStyle: LLVM +ColumnLimit: 120 +IndentWidth: 4 +TabWidth: 4 +UseTab: ForIndentation +AlignEscapedNewlines: DontAlign +AllowShortFunctionsOnASingleLine: Inline +AlwaysBreakTemplateDeclarations: Yes +BreakBeforeBinaryOperators: NonAssignment +BreakBeforeBraces: Custom +BraceWrapping: + AfterFunction: true diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..3078fdf --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + // See http://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": ["platformio.platformio-ide", "xaver.clang-format"] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..2e9982b --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,12 @@ +{ + "version": "0.1.0", + "tasks": [ + { + "taskName": "clang-format-everything", + "command": "clang-format", + "args": ["-i", "*"], + "isShellCommand": true, + "isBackground": true + } + ] +} -- GitLab