Commit Graph

788 Commits

Author SHA1 Message Date
gary 900083271b [ox/oc] Cleanup test scaffolding and replace cout with oxOut
(synced from 6c629a9f13)
2021-04-25 14:49:57 -05:00
gary d758ff2edb [ox/std] Fix UniquePtr comparison operators to take const references to avoid copying
(synced from 356d6a5036)
2021-04-25 02:33:39 -05:00
gary 8b3f0cf15f [ox/std] Make fmt stringify(std::string) require C++20 and remove QString variant
(synced from 5e78289cbc)
2021-04-25 02:07:08 -05:00
gary ebd492d94e [ox/std] Make oxIgnoreError constexpr
(synced from 3ead29a8bb)
2021-04-24 15:50:02 -05:00
gary 7989607bc3 [ox/std] Add std::string and QString support to fmt
(synced from a2e1ac8851)
2021-04-24 15:48:46 -05:00
gary f68181bcc3 [ox/std] Add cbit_cast as a stop-gap until I can implment a normal constexpr bit_cast
(synced from 75902ba2a3)
2021-04-24 15:43:11 -05:00
gary 3d2ab93b91 [ox/model] Add modelops with copy, move, and equals
(synced from 24f26d822a)
2021-04-24 15:39:05 -05:00
gary 4ea317f966 [ox/fs] Add more detail to log messages of PassThroughFS
(synced from 4518288745)
2021-04-23 03:54:55 -05:00
gary fe9d924ffb [ox/fs] Make FileAddress methods and models constexpr and noexcept
(synced from 5e1d4fcd95)
2021-04-23 03:54:25 -05:00
gary 75c8e284e1 [ox/std] Fix HashMap and Vector move operators
(synced from 0cf25f3029)
2021-04-22 01:17:57 -05:00
gary 9b8f665196 [ox/std] Remove unnecessary cast
(synced from 85b101884a)
2021-04-22 01:09:42 -05:00
gary 8033334dd3 [ox/std] Make make_unique not noexcept
(synced from 8887daf7e4)
2021-04-22 01:08:19 -05:00
gary df8b4e4796 [ox/clargs] Fix overlapping memcpy that asan is being pedantic about
(synced from 9c63f26684)
2021-04-21 01:04:07 -05:00
gary 10aab24dd1 [ox/fs] Fix broken test that was hidden because of bad asserts
(synced from 9bd2a5a5ee)
2021-04-21 01:03:09 -05:00
gary 9615f10814 [ox/oc] Add move constructor for TestStruct
(synced from 5073681ff9)
2021-04-21 00:23:27 -05:00
gary 78c8d6ffe5 [ox] Add Result<T> read{OC,MC,Claw}<T>(...)
(synced from 58dbda48c4)
2021-04-21 00:06:24 -05:00
gary dbfad870b3 [ox/fs] Add Result<Vector<char>> FileSystem::read
(synced from 4540b410dc)
2021-04-21 00:05:37 -05:00
gary cc94a61655 [ox/fs] Remove unnecessary nodiscards
(synced from 4814b4f5cc)
2021-04-20 23:18:24 -05:00
gary 1ab08c442a [ox/oc] Add missing nodiscards
(synced from 17165f5394)
2021-04-20 23:18:05 -05:00
gary 1b676ecac7 [ox/std] Cleanup
(synced from a86bad1719)
2021-04-20 23:16:58 -05:00
gary dde2c00a73 [ox/std] Reorder Error fields to allow for better packing
(synced from 314ed8d05c)
2021-04-20 22:16:29 -05:00
gary 112042d868 [ox/oc] Replace std::unique_ptr usage with ox::UniquePtr
(synced from 841a7436c1)
2021-04-20 22:10:14 -05:00
gary 97b53189f8 [ox/std] Add UniquePtr
(synced from 2b579c58bb)
2021-04-20 22:09:52 -05:00
gary 2ad4545de7 [ox/std] Remove unnecessary template parameters from assert functions
(synced from a16b56325d)
2021-04-20 22:08:57 -05:00
gary 7b0a52c469 [ox] General cleanup and updating to newer coding standards
(synced from 161780cb91)
2021-04-20 01:55:40 -05:00
gary 24f6639c27 [ox/fs] Fix FileSystemTemplate::directAccess
(synced from c587bf0997)
2021-04-18 16:06:52 -05:00
gary cf7f8e84ea [ox/model] Improve const correctness of SerStr and UnionView
(synced from 659830fcdf)
2021-04-18 15:07:51 -05:00
gary 0591caa4b9 [ox/std] Add const version of Result::get
(synced from 16298d8672)
2021-04-18 15:05:48 -05:00
gary eadc3504ff [ox/mc] Correct parameter naming
(synced from 72cec8e459)
2021-04-18 15:05:00 -05:00
gary d98650c6bc [ox/fs] Rename Result<const char*> FileSystem::read to directAccess
(synced from 858ba9fe8d)
2021-04-18 15:03:45 -05:00
gary 1dae416745 [ox/fs/ptrarith] Make everything in ptrarith noexcept
(synced from 9d74c5b464)
2021-04-18 14:33:06 -05:00
gary ab50eab155 [ox/fs] Add FileSystem::ls(const String&)
(synced from 28dc5552d4)
2021-04-17 17:35:21 -05:00
gary 49e15ea8fe [ox/mc] Cleanup field presence indicator code
(synced from 9822a6ec47)
2021-04-17 16:59:16 -05:00
gary 2ebc0231a0 [ox/std] Cleanup
(synced from 69fb4acd24)
2021-04-17 16:40:19 -05:00
gary f19ca23f86 [ox/std] Add move operators to HashMap and cleanup noexcept correctness
(synced from 39dc09e3d3)
2021-04-17 16:38:44 -05:00
gary e5126436da [ox/mc] Make read take const buffers
(synced from 394d13df9b)
2021-04-17 16:37:58 -05:00
gary 6b2b15f47d [ox/fs] Add new version of ls and make direct read return const
(synced from 772cc7d954)
2021-04-17 16:36:39 -05:00
gary 13d453dc85 [ox/std] Add String::endsWith
(synced from 8f7504c1c8)
2021-04-17 16:35:14 -05:00
gary 283eb79799 [ox/oc] Remove redundant move in readOC
(synced from 49fb4d0f0b)
2021-04-17 14:06:15 -05:00
gary d0f5611be6 [ox/std] Make HashMap::at return Result<T&> instead of Result<T*>
(synced from af9991c008)
2021-04-17 13:56:52 -05:00
gary b3b5e8e1e3 [ox/std] Make Vector erase methods return Errors
(synced from c46ec57431)
2021-04-17 12:44:27 -05:00
gary 9c0e48b038 [ox] Cleanup some old style error handling
(synced from a22823e3b4)
2021-04-17 11:33:33 -05:00
gary 68c5dd9ebd [ox/std] Make Vector::{front,back} return Result
(synced from 09383401e5)
2021-04-17 11:29:21 -05:00
gary fcd5a8f114 [ox/std] Add is_pointer and is_pointer_v
(synced from 6610b501b3)
2021-04-17 10:56:24 -05:00
gary bd35d417cc [ox/std] Fix oxOut and oxErr to explicitly use OutStream over TraceStream
(synced from cd1db371eb)
2021-04-17 01:02:36 -05:00
gary 412520290f [ox/fs] Remove noexcept from ls and add it to FileSystemTemplate constructors and destructor
(synced from 96f79757cf)
2021-04-17 00:51:05 -05:00
gary 5c3571c150 [ox/fs] Cleanup PassThroughFS detection logic
(synced from b7d24c998e)
2021-04-16 21:57:34 -05:00
gary 146b51ba0c [ox/fs] Make all FileSystem methods noexcept
(synced from 0f99f7eb91)
2021-04-16 21:52:16 -05:00
gary dc125426b0 [ox/std] Add support for explicity printing to stdout and stderr
(synced from 86a38c7197)
2021-04-16 21:18:31 -05:00
gary de4f756c13 [ox/std] Add support for appending single chars
(synced from db49361f8a)
2021-04-16 20:00:04 -05:00