Skip to content

Commit d01857f

Browse files
authored
YT-CPPAP-65: Argument groupt hiding
- Added a `hidden` flag and setter to the `argument_group` class. If the flag is set to `true`, the argument group should not be included in the parser's help message. - Refactored project test building to generate a single testing executable with Doctest suites instead of having multiple test binaries - Added a `--clang-format-executable` argument to the formatting script
1 parent 7b9102d commit d01857f

36 files changed

Lines changed: 205 additions & 131 deletions

.clangd

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
CompileFlags:
2+
Add:
3+
- -std=c++23
4+
- -xc++-header
5+
- -Iinclude
6+
- -Itests/include
7+
- -Itests/external
8+
- -Wall
9+
- -Wextra
10+
- -ftemplate-depth=512
11+
12+
Diagnostics:
13+
UnusedIncludes: None
14+
ClangTidy:
15+
Add:
16+
- bugprone-*
17+
- modernize-*
18+
- performance-*
19+
Remove:
20+
- modernize-use-trailing-return-type
21+
22+
Index:
23+
Background: Build

.github/workflows/clang.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Clang
22
on:
33
push:
44
branches:
5-
- '*'
5+
- "*"
66
paths:
77
- .github/workflows/clang.yaml
88
- include/**
@@ -23,17 +23,17 @@ jobs:
2323

2424
- name: Prepare
2525
env:
26-
CC: clang-17
26+
CC: clang-17
2727
CXX: clang++-17
2828
run: |
2929
cmake -B build_clang -DBUILD_TESTS=ON -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_C_COMPILER=$CC
3030
continue-on-error: false
3131

32-
- name: Build tests
32+
- name: Build and Run tests
3333
run: |
34-
cmake --build build_clang/ -j 4
34+
cmake --build build_clang/ -j4
3535
continue-on-error: false
3636

3737
- name: Run tests
3838
run: |
39-
ctest --test-dir build_clang/tests/ -V
39+
./build_clang/tests/run_uts

.github/workflows/demo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: demo
22
on:
33
push:
44
branches:
5-
- '*'
5+
- "*"
66
paths:
77
- .github/workflows/demo.yaml
88
- .gitmodules

.github/workflows/documentation.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: documentation
33
on:
44
pull_request:
55
branches:
6-
- '*'
6+
- "*"
77
push:
88
tags:
9-
- 'v*'
9+
- "v*"
1010

1111
jobs:
1212
build-doc:

.github/workflows/format.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: format
22
on:
33
push:
44
branches:
5-
- '*'
5+
- "*"
66
paths:
77
- .github/workflows/format.yaml
88
- scripts/format.py
@@ -31,4 +31,4 @@ jobs:
3131
- name: Test formatting
3232
shell: bash
3333
run: |
34-
python3 scripts/format.py --check
34+
python3 scripts/format.py --check -exe clang-format-18

.github/workflows/gcc.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: GCC
22
on:
33
push:
44
branches:
5-
- '*'
5+
- "*"
66
paths:
77
- .github/workflows/gcc.yaml
88
- include/**
@@ -23,7 +23,7 @@ jobs:
2323

2424
- name: Prepare
2525
env:
26-
CC: gcc-13
26+
CC: gcc-13
2727
CXX: g++-13
2828
run: |
2929
cmake -B build_gcc -DBUILD_TESTS=ON -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_C_COMPILER=$CC
@@ -36,4 +36,4 @@ jobs:
3636

3737
- name: Run tests
3838
run: |
39-
ctest --test-dir build_gcc/tests/ -V
39+
./build_gcc/tests/run_uts

.github/workflows/license.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: license
22
on:
33
push:
44
branches:
5-
- '*'
5+
- "*"
66
paths:
77
- .github/workflows/license.yaml
88
- scripts/check_licence.py

.github/workflows/msvc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: MSVC
22
on:
33
push:
44
branches:
5-
- '*'
5+
- "*"
66
paths:
77
- .github/workflows/msvc.yaml
88
- include/**
@@ -33,5 +33,5 @@ jobs:
3333

3434
- name: Run tests
3535
run: |
36-
ctest --test-dir build_msvc/tests -V -C Debug
36+
./build_msvc/tests/Debug/run_uts.exe
3737
shell: powershell

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ else()
77
endif()
88

99
project(cpp-ap
10-
VERSION 3.0.1
10+
VERSION 3.1.0
1111
DESCRIPTION "Command-line argument parser for C++20"
1212
HOMEPAGE_URL "https://github.com/SpectraL519/cpp-ap"
1313
LANGUAGES CXX

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ PROJECT_NAME = CPP-AP
4848
# could be handy for archiving the generated documentation or if some version
4949
# control system is used.
5050

51-
PROJECT_NUMBER = 3.0.1
51+
PROJECT_NUMBER = 3.1.0
5252

5353
# Using the PROJECT_BRIEF tag one can provide an optional one line description
5454
# for a project that appears at the top of each page and should give viewer a

0 commit comments

Comments
 (0)