Commit 1c7f8295142aa14fb63581ca4b4629065bb2c013

Authored by Henry Fredrick Schreiner
Committed by Henry Schreiner
1 parent 92a3cacd

Check tidy and style separated

.ci/check_tidy.sh 0 → 100755
  1 +#!/usr/bin/env sh
  2 +set -evx
  3 +
  4 +mkdir build-tidy || true
  5 +cd build-tidy
  6 +CXX_FLAGS="-Werror -Wall -Wextra -pedantic -std=c++11" cmake .. -DCLANG_TIDY_FIX=ON
  7 +cmake --build .
  8 +
  9 +git diff --exit-code --color
  10 +
  11 +set +evx
.travis.yml
@@ -66,6 +66,7 @@ script: @@ -66,6 +66,7 @@ script:
66 if [ -n "$CHECK_STYLE" ] 66 if [ -n "$CHECK_STYLE" ]
67 then 67 then
68 scripts/check_style.sh 68 scripts/check_style.sh
  69 + .ci/check_tidy.sh
69 else 70 else
70 .ci/travis.sh 71 .ci/travis.sh
71 fi 72 fi
CHANGELOG.md
1 ## Version 1.3 (in progress) 1 ## Version 1.3 (in progress)
2 2
3 * Reworked the way defaults are set and inherited; explicit control given to user with `->option_defaults()` [#48](https://github.com/CLIUtils/CLI11/pull/48) 3 * Reworked the way defaults are set and inherited; explicit control given to user with `->option_defaults()` [#48](https://github.com/CLIUtils/CLI11/pull/48)
  4 +* Hidden options now are based on an empty group name, instead of special "hidden" keyword [#48](https://github.com/CLIUtils/CLI11/pull/48)
4 * `parse` no longer returns (so `CLI11_PARSE` is always usable) [#37](https://github.com/CLIUtils/CLI11/pull/37) 5 * `parse` no longer returns (so `CLI11_PARSE` is always usable) [#37](https://github.com/CLIUtils/CLI11/pull/37)
5 * Added `remaining()` and `remaining_size()` [#37](https://github.com/CLIUtils/CLI11/pull/37) 6 * Added `remaining()` and `remaining_size()` [#37](https://github.com/CLIUtils/CLI11/pull/37)
6 * `allow_extras` and `prefix_command` are now valid on subcommands [#37](https://github.com/CLIUtils/CLI11/pull/37) 7 * `allow_extras` and `prefix_command` are now valid on subcommands [#37](https://github.com/CLIUtils/CLI11/pull/37)
scripts/check_style.sh
@@ -7,11 +7,4 @@ git ls-files -- '*.cpp' '*.hpp' | xargs clang-format -i -style=file @@ -7,11 +7,4 @@ git ls-files -- '*.cpp' '*.hpp' | xargs clang-format -i -style=file
7 7
8 git diff --exit-code --color 8 git diff --exit-code --color
9 9
10 -mkdir build-tidy || true  
11 -cd build-tidy  
12 -CXX_FLAGS="-Werror -Wall -Wextra -pedantic -std=c++11" cmake .. -DCLANG_TIDY_FIX=ON  
13 -cmake --build .  
14 -  
15 -git diff --exit-code --color  
16 -  
17 set +evx 10 set +evx