Docker container containing all needed tools to run Clang Format. Each container will contain only one version of the Clang Format but will contain all additional libraries needed.
There are 2 ways to use this container Interactive and Command mode.
This will drop you into an interactive bash
session.
docker run -it -v /src:/src clang-format
This will run the supplied command directly.
docker run -v /src:/src clang-format [command]
docker build -t clang-format --build-arg CLANG_FORMAT_VERSION=10 .
Note that CLANG_FORMAT_VERSION
defaults to 10
if not supplied.