clang-power-tools icon indicating copy to clipboard operation
clang-power-tools copied to clipboard

clang-format.exe from a docker image

Open edwardvandevorst-philips opened this issue 3 years ago • 1 comments

Is it possible to use a docker image that provides the clang-format.exe instead of having to install it on the system?

So instead of having exe on the system, a docker container is run that does the formatting:

docker run --rm -it --mount type=bind,source=%current_dir%, target=%current_dir% -w %current_dir% docker-image /usr/bin/clangformat

Probably the directory mapping will be tricky, are files with full path name provided to the executable?

Hello @edwardvandevorst-philips,

Thank you for your suggestion. We will start to investigate if this feature is doable and get back to you.

hprica avatar Sep 20 '21 07:09 hprica