Commit Graph

2870 Commits

Author SHA1 Message Date
42cdad1263 preprocessor: don't explicitly raise StopIteration 2018-08-10 13:40:16 +10:00
1d176f2fe4 preprocessor: don't hardcode the python interpretor path 2018-08-10 13:39:51 +10:00
d1866d9b70 tap: add expect_valid test 2018-08-08 12:49:47 +10:00
3a4a7bf1d8 tap: return the success value from test functions 2018-08-08 12:49:33 +10:00
1c814c02d2 bitwise: prefer template SFINAE over param SFINAE 2018-08-07 16:58:02 +10:00
d3c5af6fdf build; remove unnecessary gitignore entries 2018-08-06 14:36:23 +10:00
f6056153e3 rename root namespace from util to cruft
This places, at long last, the core library code into the same namespace
as the extended library code.
2018-08-05 14:42:02 +10:00
803acc9a87 relicense under MPL-2.0 2018-08-04 15:14:06 +10:00
3aaddd1d2b json: move json code to external module
This module can now be found at git://git.nerdcruft.net/libcruft-json.git
2018-08-04 15:02:06 +10:00
c6760c8566 view: don't over qualify the array deduction guide 2018-08-03 16:50:29 +10:00
88cde59c77 iterator: style 2018-08-03 16:50:19 +10:00
b31f4dd094 debug/gdb/printers: add a pretty printer for 'view' 2018-08-03 16:49:47 +10:00
0cea64fa14 view: disable trivally copyable type warnings in util::read 2018-08-02 00:51:01 +10:00
20df746217 view: don't enforce constness of view iterators in util::read 2018-08-01 20:58:43 +10:00
bcb4d7569f types/traits: add is_same_basic_type trait 2018-08-01 18:39:01 +10:00
00c46e0f9a types/traits: move inner_type to the util namespace 2018-08-01 17:18:59 +10:00
e92f0dc337 view: add 'read' operation complementing 'extract' 2018-08-01 14:23:09 +10:00
4b69b7515b format: accept forwarding references for printf/python 2018-08-01 14:20:42 +10:00
c7fe53f430 log: use forwarding references for format parameters 2018-08-01 14:19:44 +10:00
08d8eb942d view: add iterator intersection test 2018-08-01 13:10:43 +10:00
47c912e5e2 view: avoid alignment warnings for view extraction
It is assumed the user is on top of this.
2018-08-01 13:10:11 +10:00
4b9b292848 view: add more assertions for valid consume parameters 2018-08-01 13:09:32 +10:00
5724de752e view: add head/tail accessors that return truncated subviews 2018-08-01 13:09:15 +10:00
3b5197f065 introspection: add type_name for std::byte 2018-08-01 13:08:54 +10:00
cd8a12ed28 introspection: use 'i' prefix for signed type_names
This brings the values into line with the constants in std
2018-08-01 13:08:13 +10:00
5d8ee88772 annotation: add 'expect' wrapper 2018-08-01 13:07:58 +10:00
2c47a3654d view: add a method to extract type cast bytes from a view 2018-07-30 14:03:02 +10:00
ab495bb0f7 view: reduce ambiguity in make_byte_view 2018-07-30 13:52:25 +10:00
56ed44f0e3 io: instantiate slurp for unsigned char 2018-07-30 13:18:22 +10:00
1b92ac5f61 posix/socket: add defaulting wrapper for recvfrom 2018-07-27 21:06:25 +10:00
d99b257268 posix/socket: add wrappers for sendto and recvfrom 2018-07-27 18:29:43 +10:00
f0eb3f0775 posix/socket: add wrappers for connect and bind 2018-07-27 18:29:30 +10:00
d2b36ebded view: parameterise make_byte_view 2018-07-27 18:28:56 +10:00
3dc136595c parse: add specialisation for unsigned short
The code is horrific. Don't judge me.
2018-07-27 18:28:30 +10:00
678e68a468 gitlab-ci: ensure python3 is installed for testing 2018-07-24 16:19:43 +10:00
25b41444a9 gitlab-ci: we don't need ragel for testing 2018-07-24 16:18:27 +10:00
826f9331cc build: don't include cmake modules in this repository
The cmake module is for this project's parent. We only need it for
building and testing directly so we clone it during the testing phase.
2018-07-24 16:16:53 +10:00
f42ae40fcb view: allow arbitrary index types for slice and consume 2018-07-24 15:49:38 +10:00
79409eb6fe avoid push_back in loops
Detected by clang-tidy.
2018-07-24 15:49:11 +10:00
cf800a35da move construction/assignment should be noexcept where possible 2018-07-24 15:48:50 +10:00
503ed940ac job/queue: add move assignment operator for cookie 2018-07-24 15:48:03 +10:00
0cc0178ab5 avoid unnecessary copies by using std::move 2018-07-24 15:47:21 +10:00
799768641f prefer passing by reference over value 2018-07-24 15:46:28 +10:00
946397e325 debug: instantiate is_valid for numeric primitives 2018-07-23 18:55:40 +10:00
9f4fab6e3b gitlab-ci: try using an image with recent gcc _and_ python 2018-07-19 18:45:07 +10:00
8f413f824c gitlab-ci: expire artifacts after one day 2018-07-19 14:54:51 +10:00
7058881a2d .gitlab-ci: upload test artifacts on failure 2018-07-19 14:28:49 +10:00
289242fcbf .gitlab-ci: add test data to artifacts 2018-07-19 12:35:37 +10:00
0f9204b119 .gitlab-ci: add test outputs as artifacts 2018-07-18 16:44:14 +10:00
00651cab7c view: correct constness of make_byte_view 2018-07-18 15:20:42 +10:00