Skip to content

Commit 44889ad

Browse files
committed
Setup plugins for Clang-tidy/format
1 parent d2dc719 commit 44889ad

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN apt-get update -qq \
1616
wget \
1717
curl \
1818
dos2unix \
19-
clang-format \
19+
clang-format-12 \
2020
clang-tidy \
2121
locales \
2222
libncurses5 \

.devcontainer/devcontainer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
"extensions": [
2020
"ms-vscode.cpptools",
2121
"ms-vscode.cmake-tools",
22-
"marus25.cortex-debug"
22+
"marus25.cortex-debug",
23+
"notskm.clang-tidy",
24+
"mjohns.clang-format"
2325
],
2426

2527
// Use 'forwardPorts' to make a list of ports inside the container available locally.

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"-DARM_NONE_EABI_TOOLCHAIN_PATH=${env:ARM_NONE_EABI_TOOLCHAIN_PATH}",
55
"-DNRF5_SDK_PATH=${env:NRF5_SDK_PATH}",
66
],
7-
"cmake.generator": "Unix Makefiles"
7+
"cmake.generator": "Unix Makefiles",
8+
"clang-tidy.buildPath": "build/compile_commands.json"
89
}

0 commit comments

Comments
 (0)