diff --git a/.ci/check_tidy.sh b/.ci/check_tidy.sh new file mode 100755 index 00000000..55189d9e --- /dev/null +++ b/.ci/check_tidy.sh @@ -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 diff --git a/.travis.yml b/.travis.yml index 7af9c187..37cce0f3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -66,6 +66,7 @@ script: if [ -n "$CHECK_STYLE" ] then scripts/check_style.sh + .ci/check_tidy.sh else .ci/travis.sh fi diff --git a/CHANGELOG.md b/CHANGELOG.md index a85dc66c..01f53457 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/scripts/check_style.sh b/scripts/check_style.sh index 2d3c0a72..3fe500ec 100755 --- a/scripts/check_style.sh +++ b/scripts/check_style.sh @@ -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