45 Commits

Author SHA1 Message Date
Julien Marrec
10ac3e59a4 update macros for codecvt and support C++26 support on clang19 (#1113)
* Modifies #1100 
* That PR comes from https://github.com/phlptp/CLI11 and unfortunately I
have no way of opening a PR to that repo, pointing to that branch...

The commit you care about is
9a2884ad6a
@phlptp

where I fix the build error on LLVM 19 with C++26 after rooting the
actual template issue (see
https://github.com/CLIUtils/CLI11/issues/1098#issuecomment-2572715578)

It comes down to C++26 adding a tuple interface to std::complex
https://en.cppreference.com/w/cpp/numeric/complex/tuple_size

---------

Co-authored-by: Philip Top <phlptp@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-01-11 05:42:24 -08:00
Philip Top
35aa92d71a update supported cmake versions and add some tests with newer compilers (#972)
Update and test with some newer compilers and cmake versions

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-08 05:40:26 -08:00
Philip Top
faea921e40 chore: cmake reorganization (#768)
update conan and azure-pipelines to fix gcc 4.8 issue

make the CLI11 target sources only for newer CMake

Change the cmake to use subdirectory and move the library generation and warnings to separate files.
2022-08-25 08:14:59 -04:00
Henry Schreiner
c7aff0ee6b ci: fix GCC 4.8 missing dir issue 2022-08-23 11:42:02 -04:00
Henry Schreiner
6ae1e1ecc1 ci: set up coverage on GHA (#747)
* ci: set up coverage on GHA

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>

* ci: update to newer codecov uploader

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>

* ci: move to newer Windows image

* fix: better single file script help and usage strictness

* ci: revert update to windows-2022
2022-06-27 15:41:32 -04:00
Henry Schreiner
c781998273 chore: clang tidy updates (#742)
* chore: update clang-tidy

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>

* refactor: address clang-tidy

* fix: C++11 support

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>

* chore: two more clang-tidy fixes

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>

* fix: get_inject_separator should be bool

* refactor: addressing review feedback

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Co-authored-by: Philip Top <phlptp@gmail.com>

* Apply suggestions from code review

* Update include/CLI/Config.hpp

* Update include/CLI/Config.hpp

* Update include/CLI/Config.hpp

* Update include/CLI/Config.hpp

Co-authored-by: Philip Top <phlptp@gmail.com>
2022-06-26 14:53:01 -04:00
Henry Schreiner
4f14dbde63 style: run pre-commit on linewidth 2022-05-10 13:47:38 -04:00
Henry Schreiner
0038ad4658 style: run prettier 2022-05-10 13:47:38 -04:00
Henry Schreiner
b4f6be31c1 chore: codacity (#621)
* docs: fix some Codacity recommendations

* chore: update copyright year

* style: more codacity fixes

* style: fix issues reported by Codacity
2021-07-16 17:41:46 -04:00
Henry Schreiner
911ee02f6c style: run pre-commit 2021-06-15 14:52:40 -04:00
Isabella Muerte
60e2932356 CMake updates from @slurps-mad-rips 2020-01-09 09:53:58 -05:00
Philip Top
73950eb6a2 add a cmakeLists for the book (#374)
* add a cmakeLists for the book to add a project in visual studio so the book can be edited with the code

* remove trailing whitespace

* remove restrictions on MSVC and use a globbing expression in finding the files.  Also add a check to make sure book directory exists which seems to be important on appveyor

* apparently doxygen was updated and the old download script no longer worked

* try a different url for the older download

* use github source tar
2019-12-28 17:59:47 -05:00
Henry Schreiner
efb99b97b3 Tutorial book (#318)
* Clean up book merge

* Book building in place
2019-09-06 15:20:16 -04:00
Henry Schreiner
7b315782e1 Warnings (#281)
* Fixing some warnings

* Make gtest a system library

* Fixing format

* Adding better method for adding warnings

* Nicer Windows deprecated test

* JSON update and drop testing timer

* Warnings as errors everywhere
2019-05-18 19:11:27 +02:00
Henry Schreiner
b6e3fb126a Boost optional is no longer automatic (#279)
* Boost optional is no longer automatic

* Tighten up optional a bit

* Check times
2019-05-16 23:34:29 +02:00
Henry Schreiner
10e4b0784b Adding CTest output (#278) 2019-05-16 17:24:05 +02:00
Henry Schreiner
433fd91212 Build testing (#277)
* build-testing better supported

* Add formatting to Azure

* Adding more jobs to Azure

* Control

* Allow libc++ to be used on linux

* Fix modernize message

* Fix variable

* fixup! Fix modernize message

* Drop auto exp. optional

* Update readme, better user id in docker

* Fix BUILD_TESTING

* Drop format from travis, leave tidy for now

* Check tidy and format

* Tidy fully on Azure now
2019-05-14 15:33:15 +02:00
Henry Schreiner
49ab339a51 Set up CI with Azure Pipelines (#244)
* Set up CI with Azure Pipelines

* Adding more agents to Azure
2019-02-28 13:12:51 +01:00
Henry Schreiner
3038540bd9 Help delete (#196)
* Getting a bit closer to Version 1.7

* Check and fix for deleting an option pointer directly that is also a help option. It is not common, but could be done
2019-01-19 12:26:31 +01:00
Henry Fredrick Schreiner
524dd85a91 Fixing doxygen download 2018-12-19 14:20:19 +01:00
Henry Fredrick Schreiner
f3b00d94d1 Python 2.6 support, SINGLE_FILE no longer defaults to ON 2018-07-30 09:51:08 +02:00
Henry Fredrick Schreiner
2ae5598d95 Adding example with json config 2018-06-25 19:25:19 +02:00
Henry Schreiner
b23275358a Adding nicer header with LICENSE to single file version (#107)
* Adding nicer header with LICENSE to single file version

* Adding badges

* Clean up sh files

* Adding explicit in a few places

* More fixes from codacy
2018-04-13 14:07:32 +02:00
Henry Fredrick Schreiner
39e777392d Adding informational printout to ctest 2018-04-04 18:29:32 +02:00
Henry Fredrick Schreiner
43ec307781 Better message about optional test, warning suppression 2018-04-04 18:29:32 +02:00
Henry Fredrick Schreiner
d2d4f07fd4 Dropping CLI_ in favor of CLI11_ everywhere 2018-04-04 18:29:32 +02:00
Henry Fredrick Schreiner
bea833bbcd Adding and fixing more warnings 2018-03-26 11:48:23 +02:00
Henry Schreiner
2ef176e86c Dropping cmake and clang 5 since they are now in Travis (#89)
* Dropping cmake and clang 5 since they are now in Travis

* Dropping pathlib since it is now unused

* Doxy build

* Folding output and fixing ccache
2018-03-23 15:28:30 +01:00
Henry Schreiner
f089255ad0 Adding support for conan.io (#83)
* Adding fix for #75, rename requires to needs

* Removing check for install commands (should still be run in subproject)

* Adding conan build

* Some small changes to CMake

* Adding nicer Travis code

* Adding package test, find works now
2018-03-09 08:30:22 +01:00
Henry Fredrick Schreiner
9359f642cb Moving to newer CMake (3.9) on Travis 2017-11-21 21:28:32 -05:00
Henry Fredrick Schreiner
1c7f829514 Check tidy and style separated 2017-11-20 18:07:13 -05:00
Henry Fredrick Schreiner
366716eebc Moving check_style 2017-11-20 18:07:13 -05:00
Henry Schreiner
37667f523d Adding simple flag callback (#33)
* Addind simple flag callback

* Give flag function a new name, old name only on C++14

* Fixing reference to destroyed function

* Better GCC 4.7 support, travis prepared for C++17 (not used yet)

* Updating documentation
2017-09-11 11:45:00 -04:00
Henry Fredrick Schreiner
adbd2aa725 Fixes based on #30 by @infinity0n3 2017-09-10 15:29:23 -04:00
Henry Schreiner
54114d0948 Travis improvements and updates (#28)
* Adding check for style

* Adding reformats

* Fix syntax error in travis

* Support clang-format 3.9

* Adding clang-tidy check
2017-09-01 16:51:09 -04:00
Henry Fredrick Schreiner
34e14b7445 Removing example directory from code coverage 2017-08-22 14:02:53 -07:00
Henry Fredrick Schreiner
8bf8a695de Avoid examples in coverage 2017-08-22 12:07:15 -07:00
Henry Fredrick Schreiner
5f030f5fb9 Adding faster build 2017-03-07 18:53:20 -05:00
Henry Schreiner
89ed072f39 Codecov (#5)
* Adding first try at coverage

* Fix for CMakeLists

* Fix for wrong shell

* Fixes to Coverage

* Fix for missing coverage

* Adding badge

* Using repo token

* Adding test files to coverage

* Fix typo

* Adding codecov

* Fix for code coverage

* Fix single file tests under CodeCov

* Seperating coverage steps

* Fix testrunner to be ctest

* Fix constant rebuilding of doxygen

* Adding coverage, tested locally

* Adding compiler version to gcov

* Fixing code coverage gcov download and use

* Adding Coverage build type with some fixes

* Better way of using gcc

* Adding coverage badge

* Removing tests from calcs
2017-03-07 16:17:30 -05:00
Henry Fredrick Schreiner
608124bd81 Adding new build location 2017-02-15 12:17:49 -05:00
Henry Fredrick Schreiner
f91e995b63 Cleaner build, builds doxygen and stashes it 2017-02-15 11:43:28 -05:00
Henry Fredrick Schreiner
f1ea55a453 Adding docs build 2017-02-15 10:59:34 -05:00
Henry Fredrick Schreiner
ce6c942008 Adding doxygen docs 2017-02-15 09:35:54 -05:00
Henry Fredrick Schreiner
2b40b8cbd3 Removing automatic testing with single file, kept on travis 2017-02-14 12:26:07 -05:00
Henry Fredrick Schreiner
f6874e664a Adding travis and license 2017-01-28 13:11:02 -05:00