mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-29 12:13:52 +00:00
* build-testing better supported * Add formatting to Azure * Adding more jobs to Azure * Control * Allow libc++ to be used on linux * Fix modernize message * Fix variable * fixup! Fix modernize message * Drop auto exp. optional * Update readme, better user id in docker * Fix BUILD_TESTING * Drop format from travis, leave tidy for now * Check tidy and format * Tidy fully on Azure now
15 lines
441 B
Bash
Executable File
15 lines
441 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
# Also good but untagged: CLANG_FORMAT=unibeautify/clang-format
|
|
# This might provide more control in the future: silkeh/clang:8 (etc)
|
|
CLANG_FORMAT=saschpe/clang-format:5.0.1
|
|
|
|
set -evx
|
|
|
|
docker run --rm ${CLANG_FORMAT} --version
|
|
docker run --rm --user $(id -u):$(id -g) -v "$(pwd)":/workdir -w /workdir ${CLANG_FORMAT} -style=file -sort-includes -i $(git ls-files -- '*.cpp' '*.hpp')
|
|
|
|
git diff --exit-code --color
|
|
|
|
set +evx
|