Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.08 KB

README.md

File metadata and controls

42 lines (28 loc) · 1.08 KB

Docker Clang Format

License CI

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.

Usage

There are 2 ways to use this container Interactive and Command mode.

Interactive

This will drop you into an interactive bash session.

docker run -it -v /src:/src clang-format

Command

This will run the supplied command directly.

docker run -v /src:/src clang-format [command]

Building

docker build -t clang-format --build-arg CLANG_FORMAT_VERSION=10 .

Note that CLANG_FORMAT_VERSION defaults to 10 if not supplied.