Commit Graph

31 Commits

Author SHA1 Message Date
f2542f22fe Require C++14 (#2596)
This only has some minor additions of std::make_unique, digits
separators, std::string literals, and more flexible constexpr.
References #2469.
2025-05-18 12:34:53 +09:00
fe82477a6b Add missing utility header for std::move (#2572)
Found via clang-tidy.
2024-10-25 14:55:01 +09:00
141d74f187 Use auto for iterator variable types (#2554)
This touches a few other long type names.  Applied via clang-tidy
-fix.
2024-10-18 21:57:52 +09:00
86e6bdaf4d Apply clang-tidy to headers (#2470) 2024-06-23 11:49:59 +09:00
ebae5a302f Prefer std::string::clear where possible (#2467)
This is somewhat more clear and is declared noexcept.
2024-06-10 23:36:49 +09:00
691669749e Remove obsolete C++11 #ifdef (#2377) 2023-11-21 00:37:42 +09:00
01189e99fc Store mvnode in vector instead of manual linked list (#2312)
This simplifies code and avoids manual memory management.  References #2261.
2023-09-13 22:32:15 +09:00
50f6c38c84 Replace xattr_value with std::string (#2280) 2023-08-19 11:12:43 +09:00
67e6b9e495 Simplify xattr_value with owned values (#2262)
References #2261.
2023-08-15 22:54:46 +09:00
528a61718d Convert manual memory allocations to std::unique_ptr (#2253) 2023-08-11 23:26:07 +09:00
13ad53eef7 Convert most std::list to std::vector (#2247)
This tends to be more efficient due to fewer allocations.  Also fix std::sort
comparator which should be strictly less than.
2023-08-05 10:05:32 +09:00
b29f8d0f2b Use C++ enum class for most enums (#2241)
This promotes type-safety.
2023-07-30 22:53:17 +09:00
a4a2841c05 Use C++11 nullptr instead of 0 or NULL (#2234)
This improves type-safety.
2023-07-27 21:56:58 +09:00
6344d74ae3 Replace some raw pointers with std::unique_ptr (#2195)
This simplifies code paths and makes memory leaks less likely.  It
also makes memory ownership more explicit by requiring std::move.
This commit requires C++11.  References #2179.
2023-07-27 09:12:28 +09:00
5b95a0fcb6 Fixed errors reported by cppcheck 2.9 (#2038) 2022-09-24 15:45:13 +09:00
22f2392fca Fixed bugs about stream upload 2022-07-19 21:29:56 +09:00
b0eeaa6679 Reflected the result of the review in the code 2022-07-17 22:20:45 +09:00
d22e1dc018 Add the stream upload which starts uploading parts before Flush 2022-07-17 22:20:45 +09:00
57b2e4a4f1 Fix 32-bit compilation issues (#1757) 2021-08-31 19:36:02 +09:00
a868c0656e Changed etaglist_t from string list to new structure etagpairs list 2021-08-16 09:27:12 +09:00
15e89b78de Add a partial page_list unit test (#1735) 2021-08-04 07:36:32 +09:00
945cc2ac54 Added UntreatedParts class instead of untreated upload info members in PseudoFdInfo 2021-07-12 21:45:29 +09:00
4cc210c5ab Prevents the etag string buffer from being destroyed during use
and absorbed MPPART_INFO structure into filepart structure
2021-07-03 22:42:18 +09:00
c2c56d0263 Added info object about multipart uploading for each pseudo fd
(and fixed typo about method name)
2021-06-04 22:42:58 +09:00
bbcccd6e98 Make storage class a string (#1663)
This allows non-standard storage classes like Google Cloud Storage
Nearline.  Fixes #1613.
2021-05-21 23:34:31 +09:00
f8d5b76edb Simplify handling of returned ETag (#1479)
This works around lifetime warnings uncovered by cppcheck.
References #1478.
2020-11-21 06:56:05 +09:00
081d6c1245 Allow setting signature V4-only
Default to allowing V2 or V4.
2020-10-01 20:03:14 +09:00
05863a3178 Fix clang-tidy warnings 2020-09-21 07:03:42 +09:00
b5ffd419d8 Source file division and set 4 spaces and cleanup 2020-08-26 17:43:50 +09:00
892e7129c5 Add support for deep archive storage class 2020-08-20 23:42:45 +09:00
60d456a993 Use scoped enums for acl_t, sse_type_t, and storage_class_t
This prevents some kinds of implicit conversions.  Also deduplicate
str/from_str logic.  References #1371.
2020-08-20 18:46:18 +09:00