kc3-lang/harfbuzz/src/test-iter.cc

Branch :


Log

Author Commit Date CI Message
9027d154 2022-11-16 12:39:30 [test-iter] Fix leak
0a97d27c 2022-11-15 16:23:48 [test-iter] Add another test
8b379ddc 2022-07-14 16:20:04 [test-iter] Add back test of OT namespace iteration
c1e280ea 2022-07-13 22:43:38 [reorg] Move Coverage, RangeRecord into new namespace layout.
071aea42 2021-11-30 16:16:06 [iter] add specialized implementation for hb_concat forward when iterators are not random access.
2e935514 2021-11-30 16:02:05 [iter] fix forward implementation in hb_concat(). Add test coverage for forward.
ca227411 2021-11-30 12:53:15 [iter] add hb_concat (a, b). Iterates over a, and then over b.
2dda6dd7 2020-04-20 14:12:45 minor, tweak spacing turn 8 spaces to tab, add space before Null/Crap
0558413f 2019-10-01 13:49:55 Minor, tweak spaces
67ec9fa9 2019-08-31 14:51:49 [iter] Add hb_chop()
398b296f 2019-08-31 12:44:24 [iter] Add hb_len()
875131d4 2019-08-31 12:42:52 [iter] Add hb_take()
1f88dae9 2019-08-31 12:24:42 [iter] Make iota() accept invokable for increasing to next item
b1378d8a 2019-08-30 12:10:45 [iter] Add hb_repeat()
78d35f0e 2019-05-15 18:15:05 Reduce captures of lambdas
d0df996c 2019-05-15 00:32:41 Use implicit lambda return type
606841b0 2019-05-11 11:54:30 [iter] Check for more before forwarding/rewinding past ends
ed972d5d 2019-05-09 16:58:28 [iter] Rewrite test functions Notably, add hb_is_source_of(,) and hb_is_sink_of(,) to replace most uses of hb_is_iterator_of(,).
c9b287a8 2019-05-09 12:43:57 Add hb_lidentity(), and rename hb_rvalue() to hb_ridentity()
57d54593 2019-05-09 11:23:41 [test-iter] Don't walk past end That's not legal.
2c24ea37 2019-05-09 11:07:38 [iter] Take start value in hb_enumerate() Also rewrite it via composition.
7675d0d3 2019-05-09 11:02:56 [iter] Add hb_range() hb_range() is like Python range. hb_iota() has slightly different API. Ie. it takes a start, instead of end.
afb013f3 2019-05-08 16:16:43 Fix msan issue hb_identity returns rvalue-reference if input is rvalue. That, can leak the reference and cause in bad access to temporaries after they are destructed. This is unfortunately unfixable given the desired transparency of hb_identity :(. Just don't use it with hb_map().
a3048271 2019-05-08 15:08:10 [map] Add .values() iterator
f5705d76 2019-05-08 14:46:55 Whitespace
b827181b 2019-05-08 13:51:11 [map] tweak test-iter.cc
492af0f1 2019-05-08 12:47:18 [map] add keys()
ba605128 2019-05-08 12:09:10 [map] add a test for iteration
cdb61eb0 2019-05-08 11:00:18 [iter] Accept pointer in hb_iter() and hb_iter_t()
c93eeba9 2019-05-08 10:56:09 [iter] Accept pointer in hb_map()
50dc3e7d 2019-05-08 10:35:02 Add hb_iota()
8479eb59 2019-05-08 09:48:55 [iter] Fix hb_sink() to accept rvalue
fe14a400 2019-05-08 09:32:19 Adjust hb_all/any/none
bdbfdc92 2019-05-07 22:52:43 [iter] Add value and projection to hb_all/any/none Allows for eg, checking all values equal 2: hb_all (it, 2).
cf61acb9 2019-05-07 22:45:01 [iter] Accept rvalues to hb_enumerate()
af571dbf 2019-05-07 21:39:20 [meta] Replace most hb_enable_if with hb_requires They do absolutely same thing. hb_requires is to encode constraints, whereas hb_enable_if is for more conditional enabling.
025eaa3c 2019-05-07 00:05:37 [iter] Make filter/map copyable
4c2fd05c 2019-05-06 19:57:15 [iter] Implement range-based for loops Part of https://github.com/harfbuzz/harfbuzz/issues/1648
92588782 2019-04-30 13:05:10 Remove space between right angle brackets now that we have C++11 (#1689)
59a8fa53 2019-04-24 12:19:13 [iter] Add tests for casting to hb_iter_t<> base class for hb_sorted_array_t<> Something's phishy about hb_sorted_array_t<>. Can't get it work nicely with change I'm making. Ugh..
12017db0 2019-04-24 09:24:38 Move test code around
64ca2ffa 2019-04-23 01:10:46 Fix clang's -Wmain complain (#1678)
25dd88ef 2019-04-22 17:45:23 Err, fix hb_invoke() variadic
42ab32cb 2019-04-02 18:41:33 [iter] Remove passing pointer to hb_iter() While doable with hb_deref_pointer() as well, we also would then need to do it in a ton of places. Not worth it / messy.
b6f29bf1 2019-04-02 18:12:01 [iter] Accept pointers in hb_iter() No idea how to avoid dupicating code. Was hoping hb_deref_pointer() would do it, but looks like a pointer can't bind to a universal reference T&&. Humm.
edad6b2c 2019-04-03 00:48:59 [test][iter] minor, fix double promotion warning
062f5d6e 2019-04-02 20:27:00 [test] minor, c style comments
afdbf960 2019-04-02 20:25:06 [iter][test] Add another test for hb_reduce Different initial and accumulator types
b8642087 2019-04-02 00:30:06 [iter] hb_reduce, accumulator with a different type
e526414c 2019-03-31 12:41:58 [iter] Implement hb_reduce
78fc43f2 2019-03-31 19:17:07 [iter] Fix up build, ouch Yeah, some things not very clear...
294d520f 2019-03-30 13:58:22 more iter changes from master
e5306927 2019-03-29 23:31:07 [iter] Fix bug in hb_any() and hb_none()
443db2a2 2019-03-29 10:46:44 [iter] Remove hb_len() Not planning on using it. So remove. Can add later if needed.
f639b9a8 2019-03-28 21:34:47 [iter] Add hb_len() function-object
77060bcd 2019-02-15 16:55:08 [iter] Add hb_all, hb_any, hb_none
fa35d3fd 2019-02-14 14:04:05 [iter] Add hb_drain
773d7563 2019-02-14 11:40:22 [iter] Add hb_apply()
5fa52e62 2019-02-14 10:51:02 [iter] Accept iterator, not iterable, in hb_sink()()
849a0f17 2019-01-29 17:10:19 [iter] Add hb_iter_with_fallback_t instead
4d40ed9d 2019-01-29 13:55:23 [iter] Add hb_iter_with_mixin_t<>
84a25d79 2019-01-29 13:39:19 [iter] Rename
57795bc8 2019-01-28 16:23:12 [iter] Add operator>> and operator<<
0363ce65 2019-01-27 01:03:56 [iter] Accept C arrays in hb_iter()
b62e7f92 2019-01-27 00:51:43 [test] Test unary operator+ "Test" as in compiles..
778c96b8 2019-01-27 00:50:54 [iter] Fix hb_iter()
2f5b1a91 2019-01-27 00:49:37 [iter] Add unary operator+ that returns a copy
fbab07f9 2019-01-27 00:44:45 [iter] Add hb_bool() and make hb_filter default to it for predicate
2aff6d96 2019-01-26 22:54:25 [iter] Test that default-constructed iterators are empty
090fe56d 2019-01-25 15:34:03 Merge branch 'master' into iter
7987095e 2019-01-09 01:02:38 [meta] Remove hb_enable_if_t It was only used for C++<11 which does not allow default parameters in function templates. Looks like we cannot support <11 anyway, so, start cleaning up.
84e5d002 2019-01-08 23:57:16 [iter] Add hb_zip()
636786ec 2019-01-08 23:48:35 [iter] Rename __item_type__ to __item_t__
3fc03e42 2019-01-08 16:33:31 [iter] Use static_assert with hb_is_random_access_iterator() Both, checks constexpr'ness, and fixes build with cra**y implementations of assert() macro: test-iter.cc:108:11: error: too many arguments provided to function-like macro invocation assert (hb_is_random_access_iterator (array_iter_t<int>)); ^ ./hb-iter.hh:186:42: note: expanded from macro 'hb_is_random_access_iterator' hb_is_random_access_iterator_of (Iter, typename Iter::item_t) ^ /usr/include/x86_64-linux-gnu/sys/cdefs.h:89:9: note: macro '__STRING' defined here \#define __STRING(x) #x ^ test-iter.cc:108:3: error: use of undeclared identifier '__STRING' assert (hb_is_random_access_iterator (array_iter_t<int>)); ^ /usr/include/assert.h:91:21: note: expanded from macro 'assert' : __assert_fail (__STRING(expr), __FILE__, __LINE__, __ASSERT_FUNCTION)) ^
2658e40f 2019-01-08 12:53:02 [iter] Add hb_is_random_access_iterator()
445364d8 2019-01-08 12:42:15 [iter] Rename hb_is_[sorted_]iterator() -> hb_is_[sorted_]iterator_of()
ca6adcd1 2019-01-08 14:23:12 [iter] Test hb_is_iterable / hb_is_iterator
47333c8a 2019-01-07 21:38:49 [iter] Fix operator->
85969e35 2019-01-07 18:59:26 [iter] Fix test
6cd96ba1 2018-12-30 20:51:31 [iter] Make is_random_access_iterator a constant We cannot rely on constexpr functions...
859a880b 2018-12-30 02:11:03 [iter] Add back operator + Too ugly to remove..
076faf7c 2018-12-30 01:40:08 [iter] Disable operator + To see if it makes bots happy... This is frustrating.
037f735e 2018-12-28 21:09:15 [iter] Remove friend operator +, hoping to fix some bots
5ec11ce1 2018-12-27 17:17:28 [iter] Clarify readonly vs lvalue iterators lvalue iterators must declare __item_type__ as a reference.
2cbf5bf3 2018-12-27 16:55:18 [iter] Test OT::Coverage iter
570473a3 2018-12-27 13:29:51 [iter] Make hb_sorted_array_t work as iter Ugly, but does the job.
3dea9aff 2018-12-26 19:56:37 [iter] Test default-constructability
743ff093 2018-12-26 19:54:52 [iter] Implement friend opeator + (int, iter)
2ea79e03 2018-12-26 19:01:46 [iter] Minor
fb053b63 2018-12-26 19:01:30 [iter] Rename random_access() to constexpr is_random_access()
d3976b7e 2018-12-26 18:54:27 [iter] Make them work, mostly
e4355b1c 2018-12-22 16:11:22 [set] Add iter_t as alias to const_iter_t
2a33ab05 2018-12-21 18:49:27 [iter] Change __more__ to fallback to __len__
474a1205 2018-12-21 18:46:51 [array/vector] Rename len to length
2fc1860a 2018-12-21 18:09:45 [iter] Split hb_iter_t<> into hb_iter_t<> and hb_iter_mixin_t<>
865deeb3 2018-12-21 17:35:58 Adjust internal header dependencies
7557e348 2018-12-21 17:21:19 [iter] Move hb_fill() and hb_copy() to hb-iter.hh
65e8bd56 2018-12-21 16:20:30 [iter] Fix hb_copy() return value
aaddfaa5 2018-12-21 16:04:38 [iter] Make hb_fill() take collection type, not iter Starting to get the hang of when take which.
3dbe1e36 2018-12-21 15:53:09 [iter] Add .random_access()