diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..517f2a7 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "run-clang-format"] + path = run-clang-format + url = https://github.com/Sarcasm/run-clang-format diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..768f4ea --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM ubuntu:19.04 + +RUN apt update && apt-get install -y --no-install-recommends \ + clang-format python3 \ + && rm -rf /var/lib/apt/lists/* + +ADD run-clang-format/run-clang-format.py /usr/bin + +RUN mkdir /src +WORKDIR /src +ENTRYPOINT ["run-clang-format.py", "-r", "."] + diff --git a/run-clang-format b/run-clang-format new file mode 160000 index 0000000..50fc7ad --- /dev/null +++ b/run-clang-format @@ -0,0 +1 @@ +Subproject commit 50fc7ad73e596225955fe90226ee7870b28febf2