396 Commits

Author SHA1 Message Date
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
Daniel Aarno
5489dc9597 Formatting change: Don't print space after elipsis in usage 2017-12-26 08:01:03 +01:00
Daniel Aarno
9ccc290a07 Mark test as executable 2017-12-23 16:56:16 +01:00
Daniel Aarno
d2e5525760 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-23 16:55:56 +01:00
Daniel Aarno
d3ae484f7f IWYU: sstream
Explicitly include sstream in tets wherever it is used.
2017-12-23 16:50:07 +01:00
Daniel Aarno
3d02fed104 Fixed more typos 2017-09-02 17:37:56 +01:00
Daniel Aarno
3ccab57178 Fixed typo 2017-09-02 17:16:53 +01:00
Daniel Aarno
7ab738957c 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
2017-08-30 14:26:02 +01:00
Daniel Aarno
1a40e8f5a8 Add const to iterators and xorAdd
No need to modify the passed vector, it should be a const reference.

https://sourceforge.net/p/tclap/patches/14/
2017-08-24 21:50:17 +01:00
Daniel Aarno
0333b277a5 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-08-24 21:44:33 +01:00
Daniel Aarno
4970b7e793 Check for NULL constraint and raise exception if found.
User is not allowed to provide a NULL constraint to the various ARG
constructors. This patch makes sure the Constraint is not NULL before
dereferencing and raises a logic_error if it is NULL.

Also included the two new tests test88 and test89 in runtests script.
2015-05-11 22:47:42 +02:00
Daniel Aarno
e2ed6cfbc4 Correctly run test88 (fixed arguments) 2015-05-11 22:45:09 +02:00
Daniel Aarno
e006d96c53 Mark getValue functions as const.
The various getValue functions should not modify the underlying class,
so they have been turned into const. The only exception is ValueArg
where a non-const version is kept for backward compatibility (it
should be removed if we allow an API break). The other instances are
safe since the return value is not changed and the new function
signature is less restrictive.
2015-05-11 22:19:34 +02:00
Daniel Aarno
b3f85f4965 Cleanup: Unify indentation and line length across files.
Consistenly use 4 space indent (no tabs) and < 80 char lines. The
files were very inconsistent and hard to edit.
2015-05-11 22:08:25 +02:00
Daniel Aarno
b162f59fcb Feature Request #8 Implicit Conversion Operators for SwitchArg and ValueArg. 2015-05-11 21:41:56 +02:00
Daniel Aarno
12cee38782 Added new test after merging traits branch. 2013-10-26 14:00:45 +02:00
Daniel Aarno
bd0440fdbd Merge branch 'traits'
Make all types have ValueLike traits by default.

This allows new types to be added without any fuzz (no need to specify
the traits) if it has operator>>. It also removes the need to manually
specify the ArgTrait for all built in types (such as long, bool, char,
float etc).

ArgTraits now works in the following way:

1) If there exists a specialization of ArgTraits for type X, use it.

2) If no specialization exists but X has the typename
X::ValueCategory, use the specialization for X::ValueCategory.

3) If neither (1) nor (2) defines the trait, use the default which is
ValueLike.

Conflicts:
	examples/Makefile.am
	examples/test24.cpp
	tests/Makefile.am
	tests/runtests.sh
	tests/test83.out
	tests/test83.sh
2013-10-26 13:56:31 +02:00
Daniel Aarno
befc5f9bcf Mark new tests as executable 2013-10-26 13:42:48 +02:00
Daniel Aarno
3816281229 Actually test StringLikeTrait 2013-10-26 13:38:56 +02:00
Daniel Aarno
279a82494f Added test for Zshcompletionoutput - fails 2013-10-26 13:38:56 +02:00
Daniel Aarno
6e236d28db Initialize theDelimiter (supress warning), found by test23. 2013-10-26 13:38:56 +02:00
Daniel Aarno
b60f3c14d1 Added tests for various Arg properties such as invalid flag/names and
DocBookOutput
2013-10-26 12:58:23 +02:00
Daniel Aarno
a5e1c09cef Always run test script in test-dir 2013-10-26 12:56:30 +02:00
Daniel Aarno
b96e42cf76 Make "visit" method pure virtual (needs to be implemented by subclass
to make sense).
2013-10-26 12:56:27 +02:00
Daniel Aarno
5d4ffbf2db Make all types have ValueLike traits by default.
This allows new types to be added without any fuzz (no need to specify
the traits) if it has operator>>. It also removes the need to manually
specify the ArgTrait for all built in types (such as long, bool, char,
float etc).

ArgTraits now works in the following way:

1) If there exists a specialization of ArgTraits for type X, use it.

2) If no specialization exists but X has the typename
X::ValueCategory, use the specialization for X::ValueCategory.

3) If neither (1) nor (2) defines the trait, use the default which is
ValueLike.
2013-05-18 15:02:30 +02:00
Daniel Aarno
f41dcb5ce3 Increase test number (actually run all tests). 2013-05-18 15:02:19 +02:00
Daniel Aarno
520be219de Simplify .gitignore by using globs and added some more ignores 2013-05-18 14:52:19 +02:00
Mike Smoot
df2e88ae56 updated ignores 2012-11-25 15:00:15 -08:00
Mike Smoot
a910939b9a Added more unit tests and clarified difference to UnlabeledMultiArg. 2012-11-25 14:46:34 -08:00
Mike Smoot
634cbb01f5 Updated manual for ignore unmatched args. 2012-11-25 14:04:36 -08:00
Mike Smoot
14ac7a1c17 Merged master into branch. 2012-11-25 13:40:11 -08:00
Mike Smoot
93fc061003 Added git ignores 2012-11-25 13:25:39 -08:00