Commit Graph

868 Commits

Author SHA1 Message Date
9c3a46d144 [ox] Make TypeStore own all type info 2022-05-28 19:55:46 -05:00
440d9c0a46 [ox/std] Add another redundant check to suppress GCC's pedantry 2022-05-28 18:58:33 -05:00
779b18e410 [ox/std] Add operator std::string and operator const char* to String 2022-05-28 03:19:50 -05:00
addc2233e7 [ox/std] Make HashMap::at return a pointer instead of reference 2022-05-28 03:18:10 -05:00
dfd6670dfe [ox/std] Delete UniquePtr copy operators 2022-05-28 02:37:15 -05:00
9417307a8e [ox/std] Fix problems in building with GCC 12 2022-05-25 01:07:48 -05:00
c7af7bc54c [ox/fs] Fix memory leak in FileAddress move 2022-05-24 20:31:30 -05:00
f2ddd15d63 [ox] Fix compiler warnings 2022-05-21 16:17:32 -05:00
4ee08441b0 [ox/claw] Fix error codes to differ 2022-05-19 22:22:31 -05:00
71f6364ea3 [ox/fs] Fix FileAddress(String) to allocate correct amount of memory 2022-05-18 03:27:45 -05:00
b5210ff897 [ox/std] Add ox::errCode for extracting error code from Error 2022-04-10 03:04:15 -05:00
9d74eca436 [ox/std] Use std::construct_at in Vector instead placement new 2022-04-10 03:03:07 -05:00
cf7f9b9088 [ox/std] Add std::construct_at 2022-04-10 03:02:57 -05:00
a02d496de5 [ox/std] Add Result::Result(const Result<U> other) 2022-03-26 16:53:00 -05:00
82021b8ee5 [ox] Cleanup mc and std tests 2022-03-24 20:47:25 -05:00
803cd28087 [ox/fs] Add FileAddress::FileAddress(ox::String) and FileAddress::operator==(ox::String) 2022-03-24 20:45:22 -05:00
9161a1a8ef [ox/std] Add BasicString::beginsWith 2022-03-23 03:08:04 -05:00
ccfc7d5405 [ox/std] Remove placement new from Array 2022-03-23 03:05:50 -05:00
0790d8e9c2 [jsoncpp] Remove install from CMake file 2022-03-20 02:17:00 -05:00
0a9bc78a8d [jsoncpp] Remove bin path CMake settings 2022-03-17 03:54:18 -05:00
b43f5e3b98 [ox/std] Fix MaxValue for signed ints 2022-03-17 03:53:46 -05:00
5c783da3fc [ox/mc] Re-enable test 2022-03-16 03:20:24 -05:00
179d311598 [ox/std] Fix C++20 deprecation issue with Vector::iterator 2022-03-16 03:19:45 -05:00
0739c7d611 [ox] Fix for MSVC 2022-03-16 02:53:07 -05:00
52df6efcfc [jsoncpp] Switch to object library 2022-03-12 02:35:48 -06:00
41cc78db66 [ox] Fix jsoncpp include path export 2022-03-12 02:34:04 -06:00
7005ef0bcf [ox] Make jsoncpp only included for builds using stdlib 2022-03-11 22:36:14 -06:00
5a4b539ac1 [ox] Bundle jsoncpp under deps 2022-03-11 22:30:42 -06:00
b96d33bbb9 Merge commit '7eef3bf1545663791252b2a3cad437ec9fcfc9cc' as 'deps/ox/deps/jsoncpp' 2022-03-11 22:21:02 -06:00
a092c393a6 [ox/claw] Improve Claw read error reporting 2022-03-05 11:38:20 -06:00
1372ea9bc9 [ox/std] Make toStr(Error)'s return type template-able 2022-03-05 11:37:55 -06:00
e90d6da01b [ox/std] Fix problem with calling Vector::insert on end of list 2022-03-05 11:37:07 -06:00
6cebe52904 [ox] Fix MC negative int encoding and bump MC version to 2 2022-03-03 01:25:54 -06:00
bd2dd3f000 [ox/std] Add Integer_c concept to fix string + and += duplication of std::size_t with some compilers/platforms 2022-03-02 23:42:12 -06:00
187edcd1d3 [ox/std] Add is_move_constructible 2022-02-26 22:53:50 -06:00
329ecb3266 [ox/model] Cleanup template style 2022-02-26 22:47:19 -06:00
13ba8430c7 [ox/std] Change Result(type&&) to use forward 2022-02-26 10:05:11 -06:00
8d0bf40037 [ox/std] Fix Vector copy assign not to assign to uninitialized memory 2022-02-26 03:02:16 -06:00
21883a046e [ox/std] Add ox::join(del, strList) 2022-02-23 23:41:31 -06:00
7c6df56414 [ox/std] Add String::operator+=(std::size_t) 2022-02-23 23:40:48 -06:00
642b2b04b7 [ox/std] Make ResizedInt use static_cast to get better error messages 2022-02-23 23:40:02 -06:00
69b3245ba3 [ox/std] Make ~Vector constexpr 2022-02-23 23:36:28 -06:00
eea466750c [ox/std] Cleanup BasicString 2022-02-21 02:12:12 -06:00
8a93e44aba [ox] Replace delete invocations with safeDelete 2022-02-21 02:10:26 -06:00
812e4b4c96 [ox/std] Add safeDelete functions 2022-02-21 02:07:53 -06:00
af97a834c0 [ox/std] Add safeDelete functions 2022-02-21 02:00:11 -06:00
5faafad54c [ox/std] Fix BasicString(const char*) for Linux 2022-02-20 21:15:30 -06:00
64c74cb9c1 [ox/std] Fix infinite recursing in BasicString(const char*) 2022-02-20 15:02:36 -06:00
4e2d7ea9dd [ox/std] Fix Vector::expandCap to deallocate the correct amount of memory 2022-02-19 16:42:21 -06:00
5b7dacd51f [ox/claw] Set default write format to MetalClaw 2022-02-19 01:44:27 -06:00
53939a28c6 [ox/std] Add const char *toStr(const ox::Error&) 2022-02-19 01:43:29 -06:00
dc2a5039f8 [ox/std] Fix hardware detection for GCC on ARM64 2022-02-19 01:34:43 -06:00
f9c3c17592 [ox/std] Make Vector::back constexpr 2022-02-19 01:34:20 -06:00
c1fc3d48b2 [ox/std] Replace some OX_USE_STDLIBs with __has_include 2022-02-17 21:26:16 -06:00
21d12fee94 [ox] Make model TypeVersion mandatory so Claw can do version checking 2022-02-17 04:09:44 -06:00
3389656ecf [ox/claw] Fix typo in error msg 2022-02-17 03:31:20 -06:00
0c6e47e0b3 [ox/claw] Fix Claw read to check for type/version compatibility 2022-02-17 02:50:14 -06:00
1d17b3df82 [ox/std] Remove use of emplace_back from ox::Array constructor 2022-02-17 01:52:12 -06:00
8927f0e9c8 [ox/std] Cleanup oxDebug static_asserts 2022-02-16 20:13:31 -06:00
0e4bebcc3d [ox/std] Change initial Vector size to small vector size 2022-02-16 02:28:00 -06:00
627fb387e6 [ox/std] Add operator+(...) to BString 2022-02-16 01:57:03 -06:00
18f02ae25e [ox/model] Add oxModelFieldRename macro 2022-02-13 13:37:48 -06:00
610dc2ceca [ox/std] Move ox::defines::OS to ox::OS 2022-02-12 14:22:28 -06:00
5ea36836bd [ox/model] Make model friend macro constexpr and noexcept 2022-02-10 02:06:13 -06:00
959f75d2db [ox/fs] Cleanup unnecessary reinterpret_casts 2022-02-10 02:02:44 -06:00
0d368b3c02 [ox/std] Add min and max tests 2022-02-10 02:00:59 -06:00
f5c7c26340 [ox/std] Remove unnecessary functions from ox::Array 2022-02-08 02:11:59 -06:00
50eb01115d [ox/std] Silently suppress small Vector in constexpr 2022-02-05 01:33:08 -06:00
4e0cd1444d [ox/std] Add missing iterator functions to String and Vector 2022-02-04 22:48:49 -06:00
60aa172d98 [ox/std] Make release version of oxAssert constexpr 2022-02-04 22:45:22 -06:00
40ce78c684 [ox/std] Add array.hpp to install list 2022-02-03 22:21:37 -06:00
27f5523e70 [ox/std] Add ox::Array 2022-02-03 21:45:45 -06:00
d4e903b593 [ox/std] Remove unnecessary include 2022-02-03 00:40:14 -06:00
395e262e3e [ox/mc] Add writer fieldString function 2022-02-03 00:38:28 -06:00
78942ce21d [ox/std] Add ox::clamp 2022-02-03 00:22:37 -06:00
1aebe93c52 [ox/std] Replace std::cerr with oxErrf 2022-02-02 01:48:04 -06:00
ac9cd26367 [ox/std] Make oxAssert sort of usable in constexpr 2022-02-01 21:20:13 -06:00
180cac5cc6 [ox/std] Add std::is_constant_evaluated() 2022-02-01 20:06:10 -06:00
99550b60ee [ox/std] Move most macros to def.hpp in anticipation of C++20 modules 2022-01-28 19:57:19 -06:00
f10373864d [ox/fs] Fix duplication of dir entries on update of file 2022-01-28 19:44:20 -06:00
2be5b0f6bc [ox] Add a new oxfs tool 2022-01-28 02:07:42 -06:00
df782129bb [ox/mc] Fix string support in MC and add support for ox::BasicString 2022-01-27 20:58:33 -06:00
ff76d2f453 [ox/std] Make HashMap::expand move new Pair Vector instead of copy 2022-01-27 01:47:35 -06:00
81f2865fcc [ox/std] Move bit.hpp static_asserts to cpp file 2022-01-26 21:14:32 -06:00
2d429d30a3 [ox/std] Add print of assert condition to assert output 2022-01-26 21:14:11 -06:00
4a9b0e5dc3 [ox/std] Change default small Vector size to 0 2022-01-26 01:43:26 -06:00
fcc4cf3308 [ox/model] Add macros to simplify model definition 2022-01-26 01:36:29 -06:00
f687134943 [ox/fs] Improve const-correctness of FileSystem 2022-01-26 01:27:31 -06:00
9ee6cfbbfd [ox] Run liccor 2022-01-13 02:05:02 -06:00
fe5fe179f2 [ox/sd] Remove ox::move 2021-12-17 21:02:50 -06:00
5ed806f4c0 [ox/std] Make sfmt usable as constexpr 2021-12-11 19:16:29 -06:00
163fcf1785 [ox] Remove std::move calls that suppressed copy elision 2021-12-11 19:16:29 -06:00
37664ede05 [ox/std] Deprecate ox::move 2021-12-11 19:16:29 -06:00
7aead742eb [ox/model] Add requireModelTypeName 2021-12-11 19:16:29 -06:00
97bf81ba23 [ox/model] Add string type template parameter to getModelTypeName 2021-12-11 19:16:29 -06:00
2c8f4cec2c [ox/std] Enable small string optimization by default 2021-12-11 19:16:29 -06:00
457b97afba [ox/std] Remove iostream include from vector.hpp 2021-12-11 19:16:29 -06:00
a94051644b [ox/std] Make Vector::erase return iterator item after removed item 2021-12-11 19:16:29 -06:00
1f24912ddd [ox] Correct bad bit_cast uses and improve constexpr-ness 2021-12-11 19:16:29 -06:00
22f08f83c5 [ox/std] Rename Vector alloc and dealloc methods 2021-12-11 19:16:29 -06:00
46fe5c3b8f [ox/std] Add char8_t* constructor to String 2021-12-11 19:16:29 -06:00
15947d2fa9 [ox/std] Make toCString(std::string) constexpr 2021-12-11 19:16:29 -06:00
84da41ffc9 [ox/std] Make BString::operator== const 2021-12-11 19:16:29 -06:00
6bee2d12d7 [ox/std] Add std::allocator 2021-12-11 19:16:29 -06:00
2bcea545f5 [ox/std] Make most of Optional constexpr 2021-12-11 19:16:29 -06:00
9a8bb557a6 [ox/std] Make most of Vector constexpr 2021-12-11 19:16:29 -06:00
263ed4f7e7 [ox/std] Make Vector use std::allocator 2021-12-11 19:16:29 -06:00
380dd1cd76 [ox/std] Set default small string size of 8 bytes 2021-12-11 19:16:29 -06:00
f61efbafaf [ox] Fix for C++20 2021-12-11 19:16:29 -06:00
e3a48d0045 [ox/std] Add ox::find(...) and HashMap::erase(K) 2021-12-11 19:16:29 -06:00
708d7382d8 [ox/std] Cleanup stacktrace code 2021-12-11 19:16:29 -06:00
ceb876b6ae [ox/model] Add typenamecatcher.hpp to model.hpp 2021-12-11 19:16:29 -06:00
0133ea30dc [ox/std] Fix UniquePtr reset to work when copying from a UniquePtr to subclass type 2021-12-11 19:16:29 -06:00
31dcd0d280 [ox/std] Add missing pragma once to initializerlist.hpp 2021-12-11 19:16:29 -06:00
a14eb5a0bc [ox/std] Make HashMap use default constructor for T 2021-12-11 19:16:29 -06:00
fa06821d90 [ox/std] Add Optional 2021-12-11 19:16:29 -06:00
51f3c01c4e [ox/claw] Fix CMake generator expression OX_USE_STDLIB switch 2021-12-11 19:16:29 -06:00
5e85f18b60 [ox/claw] Add readClawHeader to public API 2021-12-11 19:16:29 -06:00
5f7bb2e1ae [ox/std] Make oxIgnoreError take const ref 2021-12-11 19:16:29 -06:00
e2b9823ae2 [ox/std] Fix Vector reverse iterators 2021-12-11 19:16:29 -06:00
8a6f08ae73 [ox/std] Update strops nodiscard use to match current style 2021-12-11 19:16:29 -06:00
4bc3da40b4 [ox][std] Fix UniquePtr to use provided deleter 2021-12-11 19:16:29 -06:00
160ef61520 [ox/std] Add implementation of what() to ox::Exception 2021-10-14 19:21:59 -05:00
853f8c25ea [ox/std] Add begin and end methods to BasicString 2021-10-14 19:21:59 -05:00
38596ac941 [ox/event] Move isError into namepsace detail 2021-08-03 00:21:05 -05:00
8f6897225a [ox/std] Fix ptrdiff_t header location 2021-08-02 21:47:45 -05:00
e7bf3d5413 [ox/event] Fix build error in exception variant of Signal 2021-08-02 21:23:19 -05:00
ad0d5c8caf [ox/event] Add variant of Signal that uses exceptions 2021-08-02 21:23:19 -05:00
b61f7a95ad [ox/std] Specify std::bit_cast in Vector 2021-08-02 21:23:19 -05:00
90b2e7a43c [ox/std] Fix another inappropriate assign with constructor 2021-08-02 21:23:19 -05:00
8480eeba0c [ox/oc] Resize vectors before writing to them 2021-08-02 21:23:19 -05:00
313b35f605 [ox/std] Fix problems with Vector using operator= where constructors should be used 2021-08-02 21:23:19 -05:00
d8a0a5f50d [ox/std] Remove preprocessor condition for Vector(initializer_list) constructor implementation 2021-07-30 20:10:20 -05:00
68f829ff2d [ox/std] Improve Vector::iterator to better conform to std::vector::iterator 2021-07-30 20:10:20 -05:00
77bc18129b [ox/oc] Remove setTypeInfo invocation from OC write 2021-07-29 23:33:09 -05:00
d8a13a0933 [ox/{mc,oc}] Fix problems caused by making methods const 2021-07-29 23:25:45 -05:00
11873bc3ed [ox/std] Add implementation of initializer_list 2021-07-29 23:25:43 -05:00
f53b8e38dc [ox/std] Make fmt version of logError 2021-07-29 23:25:42 -05:00
5d5198bf4c [ox/std] Make logError inline 2021-07-29 23:25:40 -05:00
cc5cc01e70 [ox/model] Make field counting automatic 2021-07-29 23:25:39 -05:00
55f14eb548 [ox/{mc,oc}] Improve noexcept correctness 2021-07-29 23:25:38 -05:00
24ca5623e8 [ox/std] Add initializer_list constructor to Vector 2021-07-29 23:25:38 -05:00
5b9e1928d9 [ox/std] Fix oxDefer macro to work outside ox namespace 2021-07-29 23:25:35 -05:00
2e9b7fe871 [ox] Remove need for explicit fields count in model system, add ox::String handler to OC 2021-07-29 23:25:35 -05:00
9418f54ebc [ox/std] Add support for proper std::bit_cast with C++20 enabled 2021-07-29 23:25:35 -05:00
bd0b8e4ee9 [ox/std] Fix copy/move elision in sfmt 2021-07-29 23:25:35 -05:00
7ea0654af6 [ox/std] Add proper forward function 2021-07-23 21:44:11 -05:00
78d444c2e5 [ox/std] Add comparison operators to String 2021-07-23 21:44:10 -05:00
39b1292b91 [ox/std] Add version of OutStream that takes String 2021-07-23 21:44:10 -05:00
0aad2913ea [ox/oc] Fix typo 2021-07-23 21:44:09 -05:00