427 Commits

Author SHA1 Message Date
Daniel Aarno
0747261252 Don't catch exceptions by value.
Exceptions are polymorphic, catching by value may loose information.
2020-04-19 23:14:41 +01:00
Daniel Aarno
f940a0777f Link to CI dashboard on Azure 2020-03-26 10:14:29 +00:00
Daniel Aarno
c398dd3d7d Display CI build status on sourceforge 2020-03-26 10:07:08 +00:00
Daniel Aarno
d6419ab716 Use SF ticket system, not Mike's email for feedback etc. 2020-03-21 15:23:25 +00:00
Daniel Aarno
d0f4bea811 Add build target for manual 2020-03-21 15:20:51 +00:00
Daniel Aarno
cce3831403 Enable CMake to build (not test) in 1.2.
This is useful so we can at least check that it compiles on
Windows. We don't bother fixing the tests or testing infra (as has
been done in 1.4 branch) as we expect most development to happen
there. The CMake files will not be included in the distrubution and
are used for development/testing only.
2020-03-21 10:50:49 +00:00
Daniel Aarno
e9352c04e3 Update manual and instructions for how to regenerate. 2020-03-17 12:28:42 +00:00
Daniel Aarno
ffe155506c Fix missing argument in documentation example. 2020-03-17 12:15:23 +00:00
Daniel Aarno
10103edd7c Merge branch '1.2' 2019-11-24 22:20:20 +00:00
Stefan Büttner
df5303b06c Initialize ValueConstraint from const reference.
This allows the following in post the c++11 world:
```
    tclap::ValueConstraint<std::string> constraints({"foo", "bar"});
```
instead of
```
    std::vector<std::string> constraint_choices({"foo", "bar"});
    tclap::ValueConstraint<std::string> constraints(constraint_choices);
```
2019-09-11 11:05:12 +02:00
Daniel Aarno
0a475929b8 Update copyright notices. 2019-05-06 19:44:57 +01:00
Daniel Aarno
c51fb519d6 Merge branch '1.2' 2018-08-02 12:12:56 -07:00
Daniel Aarno
38af929982 Correctly name variable for caching (fixes warning by autotools.sh) 2018-07-30 19:51:18 +01:00
Daniel Aarno
a219293c87 Rename configure.in configure.ac (as this is recomended) 2018-07-30 19:48:58 +01:00
Daniel Aarno
1dcad08845 Simplify tests by using common test script.
This reduces duplicated checking logic between each test and makes it easier
to run and check result of individual tests.
2018-07-30 18:06:55 +01:00
Daniel Aarno
eb877b0fab Script to simlify all tests 2018-07-30 18:04:15 +01:00
Daniel Aarno
b39f11f01d Hide test-driver (temporary binary) from git 2018-07-30 18:04:15 +01:00
Daniel Aarno
f327450dd5 Script to add emacs mode line to all files 2018-07-30 18:04:15 +01:00
Daniel Aarno
7b51917592 Hide intermediate test files from git. 2018-07-30 18:04:15 +01:00
Daniel Aarno
6db23c03b5 Break out some common test code to a separate file.
Next step to refactor remaining tests.
2018-07-30 18:03:45 +01:00
Daniel Aarno
81e4e8bba5 Add emacs mode-lines to all header files 2018-03-19 10:13:46 +00:00
Daniel Aarno
81bba06d20 Add emacs mode-lines to all test files 2018-03-19 10:12:25 +00:00
Daniel Aarno
c937a87071 Added script to upload documentation to SF 2018-03-19 09:42:45 +00:00
Daniel Aarno
b239b8845a Point people to the forum/tickets instead of to Mike. 2018-03-19 09:07:01 +00:00
Daniel Aarno
1e1cc4fb9a Merge branch '1.2' 2018-01-15 22:44:59 +00:00
Daniel Aarno
9a310a7c39 Check that all .h files in include/tclap are in Makefile.am
check_dead_headers.py can be called as a pre-commit hook.
2018-01-15 22:44:38 +00:00
Daniel Aarno
1a6966726d Update README to point to discussion forum instead of e-mail. 2018-01-15 22:22:55 +00:00
Daniel Aarno
76626f569e Merge branch '1.2' 2018-01-07 15:36:33 +00:00
Daniel Aarno
3adc1d1ff7 Pre-commit check for including test files in Makefile
Script to be called from pre-commit hook to make sure any new test
files were added to Makefile.am

Example pre-commit hook (in .git/hooks):

function pyhook {
    CMD="./scripts/$1.py"
    $CMD
    local status=$?
    if [ $status -ne 0 ]; then
        echo
        echo "Pre-commit failed"
        exit 1
    fi
}

pyhook check_tests_enabled
2018-01-07 15:35:09 +00:00
Daniel Aarno
d4a36f2ba5 Use make check to run tests (instead of custom logic).
This way the list/number of tests only has to be updated in one place.

Conflicts:
	tests/runtests.sh
2018-01-07 15:33:10 +00:00
Daniel Aarno
f48369d765 Use make check to run tests (instead of custom logic).
This way the list/number of tests only has to be updated in one place.
2018-01-02 17:16:54 +01:00
Daniel Aarno
f737be38c5 Update ignore file 2018-01-02 16:56:23 +01:00
Daniel Aarno
fcc6ba6dd6 Add new tests to makefile 2018-01-02 16:28:28 +01:00
Daniel Aarno
420fe8e13d Merge branch '1.2' 2018-01-02 16:24:10 +01:00
Daniel Aarno
c6fedbbe9d Add .gitignore file to 1.2 branch 2018-01-02 16:23:45 +01:00
Daniel Aarno
de93e6b2ca Remove some unused code related to sstream fixes. 2018-01-02 16:21:29 +01:00
Daniel Aarno
642e48a667 Merge branch '1.2'
# Conflicts:
#	include/tclap/ZshCompletionOutput.h
#	tests/Makefile.am
#	tests/runtests.sh
#	tests/test79.sh
2017-12-26 21:28:10 +01:00
Daniel Aarno
ec3ddcfe41 IWYU: sstream
Explicitly include sstream in tets wherever it is used.
2017-12-26 15:40:35 +01:00
Daniel Aarno
8dab34491d Update changelog with sstream fixes 2017-12-26 15:30:31 +01:00
Daniel Aarno
6c2ef7d6ef Fix sstream/strstream (and config.h) compiler issues.
Code would not compile with HAVE_STRSTREAM defined.

Code would not compile without HAVE_CONFIG_H defined (unless
-DHAVE_STRSTREAM or -DHAVE_SSTREAM was specified).

Code would not compile with HAVE_CONFIG_H defined if config.h did not
also define HAVE_SSTREAM.

This patch moves annoying logic for sstream/strstream logic to it's
own file and fixes the above mentioned issues.

https://sourceforge.net/p/tclap/bugs/23/
2017-12-26 15:28:52 +01:00
Daniel Aarno
fb0d5f1f3e Updated NEWS with new release 2017-12-26 15:18:54 +01:00
Daniel Aarno
8bc3652fe2 Fix make distcheck issue with stale files in build dir. 2017-12-26 15:11:09 +01:00
Daniel Aarno
6d80988c37 Update changelog with new 1.2.2 release info 2017-12-26 14:26:18 +01:00
Daniel Aarno
75f440bcac Bump version to 1.2.2 2017-12-26 14:03:31 +01:00
Daniel Aarno
68fb0f35a2 Quick fix for ZshCompletionOutput test
The test was failing because elipsis changed from "..." to
"... ". This is a quick and dirty fix and should be cleaned up.

Also updated copyright notice

# Conflicts:
#	tests/test85.out
#	tests/test85.sh
2017-12-26 14:03:13 +01:00
Daniel Aarno
5879dff268 Fixed more typos 2017-12-26 14:00:18 +01:00
Daniel Aarno
4c04f3e965 Fixed typo 2017-12-26 14:00:13 +01:00
Daniel Aarno
221a79bf17 Fix } outside of include guards
You get an extra brace if ArgTraits.h ends up included more than once

https://sourceforge.net/p/tclap/patches/13/
2017-12-26 13:56:34 +01:00
Daniel Aarno
ad5345dfb7 Initialize theDelimiter (supress warning), found by test23. 2017-12-26 13:55:34 +01:00
Mike Smoot
0980af54f2 added patch to fix brief output with TCLAP_NAMESTRING defined 2017-12-26 13:54:15 +01:00