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:
parent
92a3cacd59
commit
1c7f829514
11
.ci/check_tidy.sh
Executable file
11
.ci/check_tidy.sh
Executable 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
|
@ -66,6 +66,7 @@ script:
|
|||||||
if [ -n "$CHECK_STYLE" ]
|
if [ -n "$CHECK_STYLE" ]
|
||||||
then
|
then
|
||||||
scripts/check_style.sh
|
scripts/check_style.sh
|
||||||
|
.ci/check_tidy.sh
|
||||||
else
|
else
|
||||||
.ci/travis.sh
|
.ci/travis.sh
|
||||||
fi
|
fi
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
## Version 1.3 (in progress)
|
## 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)
|
* 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)
|
* `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)
|
* 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)
|
* `allow_extras` and `prefix_command` are now valid on subcommands [#37](https://github.com/CLIUtils/CLI11/pull/37)
|
||||||
|
@ -7,11 +7,4 @@ git ls-files -- '*.cpp' '*.hpp' | xargs clang-format -i -style=file
|
|||||||
|
|
||||||
git diff --exit-code --color
|
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
|
set +evx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user