From fc053ebf97d6f29dad9328eb8d59cb6162c62f30 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Thu, 26 May 2022 06:08:47 +0000 Subject: [PATCH] add clang-format-11 support --- .devcontainer/Dockerfile | 2 ++ .devcontainer/devcontainer.json | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index b129666..eb3135b 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,4 +1,6 @@ ARG VARIANT="3.10-bullseye" FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT} +RUN apt-get update && apt-get install -y clang-format-11 + RUN pip3 --disable-pip-version-check --no-cache-dir install platformio diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 4ce1cec..dc7411a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -19,12 +19,14 @@ "python.linting.mypyPath": "/usr/local/py-utils/bin/mypy", "python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle", "python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle", - "python.linting.pylintPath": "/usr/local/py-utils/bin/pylint" + "python.linting.pylintPath": "/usr/local/py-utils/bin/pylint", + "clang-format.executable": "clang-format-11" }, "extensions": [ "ms-python.python", "ms-python.vscode-pylance", - "platformio.platformio-ide" + "platformio.platformio-ide", + "xaver.clang-format" ], "postCreateCommand": "pip3 install --user platformio", //"remoteUser": "vscode"