Alexander Grund
a0327e0b74
Update license headers
...
Use the more concise format omitting the reference to the license file
and refer to the URL only.
2022-07-13 12:35:54 +02:00
Alexander Grund
993deff3ca
Coverity: Remove space in supression comments
...
Seemingly the correct syntax is without that space.
2022-06-14 12:50:04 +02:00
Alexander Grund
0987b8d7af
Consistently use nullptr instead of NULL/0
2022-03-18 11:22:19 +01:00
Alexander Grund
3178dc17ff
Fixup coverity comments
...
They seemingly need to be above the line they refer to
2021-12-20 14:21:05 +01:00
Alexander Grund
ee17695de1
Suppress false positives from coverity
2021-11-19 13:25:05 +01:00
Alexander Grund
c8a9cb0fc2
Suppress some coverity false positives
2021-04-22 11:20:55 +02:00
Alexander Grund
c896185347
Reformat
...
Put nowide headers at top, to test for self-containment
Then custom headers (i.e. "" style includes)
then boost headers (semi-standard)
then standard headers (all other <> style includes)
2021-04-13 12:16:50 +02:00
Alexander Grund
ff3a8e6c6c
Consistently use using instead of typedef
2020-09-28 15:11:15 +02:00
Alexander Grund
20385d4a3c
Fix name of license file
2020-05-22 12:20:11 +02:00
Alexander Grund
fc5da4b239
Move to C++11 as the minimum dropping boost dependencies
2020-05-22 12:20:03 +02:00
Alexander Grund
6afb3f15ab
Deduplicate tests and improve coverage
...
Every test had the same pattern of a main catching exceptions and
returning 0 or 1 based on that. Factor that into test.hpp.
As most code in test.hpp is only executed on failure and those should
not occur this file is excluded from coverage.
Finally test.hpp is included last and the header to test first
consistently to check for self-sufficient includes.
2020-04-03 16:28:28 +02:00
Alexander Grund
3e0a7e33b1
Fix minor issues and improve stackstring tests
...
Make some functions protected to derive a test class from stackstring
which can be used to detect wether a stack or heap value is used
Fix or silence issues from static analyser findings
Double-check and handle surrogates in iostream
2020-03-14 17:46:49 +01:00
Alexander Grund
0804214f92
[Test] Fix tests for stackstring
...
Values that should go onto stack were put on heap invalidating some tests
2020-02-25 15:00:49 +01:00
Alexander Grund
6ae2d8aa9b
Fix crash on assignment of empty stackstring
...
Also add this as a testcase
2020-02-25 15:00:49 +01:00
Alexander Grund
b171658b0a
[Test] Improve test_stackstring
...
Show some progress
Test using stackstring in a vector
2020-02-25 15:00:49 +01:00
Alexander Grund
bf8b679555
Improve conversion tests
...
- Move common test cases into test_sets
- Run test_sets with all variants of conversions
- Handle incomplete input in codecvt conversion test
2020-01-08 17:24:46 +01:00
Alexander Grund
7854435d8e
Switch pointer alignment to left
...
Consistency with rest of boost
2020-01-07 21:27:26 +01:00
Alexander Grund
bb2487351f
Use west-const
...
Almost all of boost does, so be nice stay consistent
2020-01-07 21:26:12 +01:00
Alexander Grund
1168f607bb
Remove vim format tags
2020-01-07 19:41:33 +01:00
Alexander Grund
e972bea06d
Make stackstring return NULL when no string was converted (NULL passed or default constructed)
...
This is important for e.g. freopen where an empty string and a NULL pointer have different meanings
Rename c_str to get to avoid confusion
2020-01-02 18:47:56 +01:00
Alexander Grund
7e4e8c2194
Split tests for convert and stackstring
2020-01-02 18:47:55 +01:00