Skip to content

Commit

Permalink
Setup plugins for Clang-tidy/format
Browse files Browse the repository at this point in the history
  • Loading branch information
geekbozu committed Aug 9, 2021
1 parent d2dc719 commit 44889ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN apt-get update -qq \
wget \
curl \
dos2unix \
clang-format \
clang-format-12 \
clang-tidy \
locales \
libncurses5 \
Expand Down
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"extensions": [
"ms-vscode.cpptools",
"ms-vscode.cmake-tools",
"marus25.cortex-debug"
"marus25.cortex-debug",
"notskm.clang-tidy",
"mjohns.clang-format"
],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"-DARM_NONE_EABI_TOOLCHAIN_PATH=${env:ARM_NONE_EABI_TOOLCHAIN_PATH}",
"-DNRF5_SDK_PATH=${env:NRF5_SDK_PATH}",
],
"cmake.generator": "Unix Makefiles"
"cmake.generator": "Unix Makefiles",
"clang-tidy.buildPath": "build/compile_commands.json"
}

0 comments on commit 44889ad

Please sign in to comment.