1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-05-03 14:03:52 +00:00

Check tidy and style separated

This commit is contained in:
Henry Fredrick Schreiner 2017-11-20 16:35:53 -05:00 committed by Henry Schreiner
parent 92a3cacd59
commit 1c7f829514
4 changed files with 13 additions and 7 deletions

11
.ci/check_tidy.sh Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env sh
set -evx
mkdir build-tidy || true
cd build-tidy
CXX_FLAGS="-Werror -Wall -Wextra -pedantic -std=c++11" cmake .. -DCLANG_TIDY_FIX=ON
cmake --build .
git diff --exit-code --color
set +evx

View File

@ -66,6 +66,7 @@ script:
if [ -n "$CHECK_STYLE" ]
then
scripts/check_style.sh
.ci/check_tidy.sh
else
.ci/travis.sh
fi

View File

@ -1,6 +1,7 @@
## Version 1.3 (in progress)
* Reworked the way defaults are set and inherited; explicit control given to user with `->option_defaults()` [#48](https://github.com/CLIUtils/CLI11/pull/48)
* Hidden options now are based on an empty group name, instead of special "hidden" keyword [#48](https://github.com/CLIUtils/CLI11/pull/48)
* `parse` no longer returns (so `CLI11_PARSE` is always usable) [#37](https://github.com/CLIUtils/CLI11/pull/37)
* Added `remaining()` and `remaining_size()` [#37](https://github.com/CLIUtils/CLI11/pull/37)
* `allow_extras` and `prefix_command` are now valid on subcommands [#37](https://github.com/CLIUtils/CLI11/pull/37)

View File

@ -7,11 +7,4 @@ git ls-files -- '*.cpp' '*.hpp' | xargs clang-format -i -style=file
git diff --exit-code --color
mkdir build-tidy || true
cd build-tidy
CXX_FLAGS="-Werror -Wall -Wextra -pedantic -std=c++11" cmake .. -DCLANG_TIDY_FIX=ON
cmake --build .
git diff --exit-code --color
set +evx