| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.space/ |
| H A D | space.pass.cpp | 24 bool EqualDelta(std::uintmax_t x, std::uintmax_t y, std::uintmax_t delta) { in EqualDelta() 69 const auto expect = static_cast<std::uintmax_t>(-1); in TEST_CASE() 87 const std::uintmax_t bad_value = static_cast<std::uintmax_t>(-1); in TEST_CASE() 88 std::uintmax_t expect_capacity; in TEST_CASE() 89 std::uintmax_t expect_free; in TEST_CASE() 90 std::uintmax_t expect_avail; in TEST_CASE() 97 const std::uintmax_t delta = expect_capacity / 20; in TEST_CASE()
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/ |
| H A D | file_size.pass.cpp | 56 uintmax_t expect = file_size(ent); in TEST_CASE() 70 uintmax_t expect = file_size(ent); in TEST_CASE() 102 uintmax_t expect = file_size(p, other_ec); in TEST_CASE() 104 uintmax_t got = ent.file_size(ec); in TEST_CASE() 106 TEST_CHECK(got == uintmax_t(-1)); in TEST_CASE() 141 TEST_CHECK(ent.file_size(ec) == uintmax_t(-1)); in TEST_CASE() 155 TEST_CHECK(expect_bad == uintmax_t(-1)); in TEST_CASE() 178 uintmax_t expect_good = file_size(file); in TEST_CASE() 187 TEST_CHECK(ent.file_size(ec) == uintmax_t(-1)); in TEST_CASE() 203 uintmax_t expect_good = file_size(sym_in_dir); in TEST_CASE() [all …]
|
| H A D | hard_link_count.pass.cpp | 56 uintmax_t expect = hard_link_count(ent); in TEST_CASE() 67 uintmax_t expect = hard_link_count(ent); in TEST_CASE() 99 uintmax_t expect = hard_link_count(p); in TEST_CASE() 145 TEST_CHECK(ent.hard_link_count(ec) == uintmax_t(-1)); in TEST_CASE() 159 TEST_CHECK(expect_bad == uintmax_t(-1)); in TEST_CASE() 182 uintmax_t expect_good = hard_link_count(file); in TEST_CASE() 191 TEST_CHECK(ent.hard_link_count(ec) == uintmax_t(-1)); in TEST_CASE() 208 uintmax_t expect_good = hard_link_count(sym_in_dir); in TEST_CASE() 217 TEST_CHECK(ent.hard_link_count(ec) == uintmax_t(-1)); in TEST_CASE() 234 uintmax_t expect_good = hard_link_count(sym_out_of_dir); in TEST_CASE() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.hard_lk_ct/ |
| H A D | hard_link_count.pass.cpp | 32 ASSERT_SAME_TYPE(decltype(hard_link_count(p)), uintmax_t); in TEST_CASE() 33 ASSERT_SAME_TYPE(decltype(hard_link_count(p, ec)), uintmax_t); in TEST_CASE() 49 uintmax_t DirExpect = 3; // hard link from . .. and Dir2 in TEST_CASE() 50 uintmax_t Dir3Expect = 2; // hard link from . .. in TEST_CASE() 51 uintmax_t DirExpectAlt = DirExpect; in TEST_CASE() 52 uintmax_t Dir3ExpectAlt = Dir3Expect; in TEST_CASE() 93 const uintmax_t expect = static_cast<uintmax_t>(-1); in TEST_CASE()
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.resize_file/ |
| H A D | resize_file.pass.cpp | 29 std::uintmax_t i; ((void)i); in TEST_CASE() 41 auto checkThrow = [](path const& f, std::uintmax_t s, const std::error_code& ec) in TEST_CASE() 78 const std::uintmax_t new_s = 100; in TEST_CASE() 85 const std::uintmax_t new_s = 1; in TEST_CASE() 92 const std::uintmax_t new_s = 0; in TEST_CASE() 100 const std::uintmax_t new_s = 1024; in TEST_CASE()
|
| /llvm-project-15.0.7/libcxx/include/__filesystem/ |
| H A D | space_info.h | 28 uintmax_t capacity; 29 uintmax_t free; 30 uintmax_t available;
|
| H A D | directory_entry.h | 179 uintmax_t file_size() const { return __get_size(); } in file_size() 182 uintmax_t file_size(error_code& __ec) const noexcept { in file_size() 187 uintmax_t hard_link_count() const { return __get_nlink(); } in hard_link_count() 190 uintmax_t hard_link_count(error_code& __ec) const noexcept { in hard_link_count() 269 uintmax_t __size_; 270 uintmax_t __nlink_; 285 __size_ = __nlink_ = uintmax_t(-1); in __reset() 422 uintmax_t __get_size(error_code* __ec = nullptr) const { 447 uintmax_t __get_nlink(error_code* __ec = nullptr) const {
|
| H A D | operations.h | 52 _LIBCPP_FUNC_VIS uintmax_t __file_size(const path&, error_code* __ec = nullptr); 53 _LIBCPP_FUNC_VIS uintmax_t __hard_link_count(const path&, error_code* __ec = nullptr); 59 _LIBCPP_FUNC_VIS uintmax_t __remove_all(const path&, error_code* __ec = nullptr); 62 _LIBCPP_FUNC_VIS void __resize_file(const path&, uintmax_t __size, error_code* = nullptr); 108 inline _LIBCPP_HIDE_FROM_ABI uintmax_t file_size(const path& __p) { return __file_size(__p); } in file_size() 109 inline _LIBCPP_HIDE_FROM_ABI uintmax_t file_size(const path& __p, error_code& __ec) noexcept { retu… in file_size() 110 inline _LIBCPP_HIDE_FROM_ABI uintmax_t hard_link_count(const path& __p) { return __hard_link_count(… in hard_link_count() 111 inline _LIBCPP_HIDE_FROM_ABI uintmax_t hard_link_count(const path& __p, error_code& __ec) noexcept … in hard_link_count() 175 inline _LIBCPP_HIDE_FROM_ABI uintmax_t remove_all(const path& __p) { return __remove_all(__p); } in remove_all() 176 inline _LIBCPP_HIDE_FROM_ABI uintmax_t remove_all(const path& __p, error_code& __ec) { return __rem… in remove_all() [all …]
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | format-strings-fixit.c | 15 typedef __UINTMAX_TYPE__ uintmax_t; typedef 65 printf("%f", (uintmax_t) 42); in test() 71 typedef uintmax_t my_uintmax_type; in test() 118 uintmax_t uIntmaxVar; in test2() 153 typedef uintmax_t my_uintmax_type; in test2()
|
| H A D | format-strings-int-typedefs.c | 29 typedef void *uintmax_t; in test() typedef 34 …printf("%ju", (uintmax_t)42); // expected-warning {{format specifies type 'uintmax_t' (aka 'unsign… in test()
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.file_size/ |
| H A D | file_size.pass.cpp | 36 ASSERT_SAME_TYPE(decltype(file_size(p)), uintmax_t); in TEST_CASE() 37 ASSERT_SAME_TYPE(decltype(file_size(p, ec)), uintmax_t); in TEST_CASE() 80 const uintmax_t expect = static_cast<uintmax_t>(-1); in TEST_CASE()
|
| /llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Posix/ |
| H A D | fseek.cpp | 27 printf("position: %" PRIuMAX "\n", (uintmax_t)ftello(fp)); in main() 35 printf("position: %" PRIuMAX "\n", (uintmax_t)ftello(fp)); in main() 40 printf("position: %" PRIuMAX "\n", (uintmax_t)ftello(fp)); in main()
|
| /llvm-project-15.0.7/flang/unittests/Evaluate/ |
| H A D | testing.cpp | 45 static_cast<std::uintmax_t>(got), static_cast<std::uintmax_t>(want)); in Match() 97 static_cast<std::uintmax_t>(x), rel, ys, in Compare() 98 static_cast<std::uintmax_t>(y)); in Compare()
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | filesystem | 64 uintmax_t capacity; 65 uintmax_t free; 66 uintmax_t available; 135 uintmax_t file_size(const path& p); 136 uintmax_t file_size(const path& p, error_code& ec) noexcept; 138 uintmax_t hard_link_count(const path& p); 139 uintmax_t hard_link_count(const path& p, error_code& ec) noexcept; 202 uintmax_t remove_all(const path& p); 203 uintmax_t remove_all(const path& p, error_code& ec); 208 void resize_file(const path& p, uintmax_t size); [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy_file/ |
| H A D | copy_file_large.pass.cpp | 39 constexpr uintmax_t sendfile_size_limit = 2147479552ull; in TEST_CASE() 40 constexpr uintmax_t additional_size = 1024; in TEST_CASE() 41 constexpr uintmax_t test_file_size = sendfile_size_limit + additional_size; in TEST_CASE()
|
| /llvm-project-15.0.7/libc/src/inttypes/ |
| H A D | strtoumax.cpp | 15 LLVM_LIBC_FUNCTION(uintmax_t, strtoumax, 18 return internal::strtointeger<uintmax_t>(str, str_end, base);
|
| /llvm-project-15.0.7/libc/src/stdio/printf_core/ |
| H A D | int_converter.h | 25 static constexpr size_t BITS_IN_NUM = sizeof(uintmax_t) * BITS_IN_BYTE; in convert_int() 27 uintmax_t num = to_conv.conv_val_raw; in convert_int() 39 if ((num & (uintmax_t(1) << (BITS_IN_NUM - 1))) > 0) { in convert_int()
|
| H A D | converter_utils.h | 21 inline uintmax_t apply_length_modifier(uintmax_t num, LengthModifier lm) { in apply_length_modifier()
|
| /llvm-project-15.0.7/libcxx/test/std/atomics/ |
| H A D | types.pass.cpp | 154 test<uintmax_t> (); in main() 156 test<uintmax_t> (); in main() 157 test<uintmax_t> (); in main()
|
| /llvm-project-15.0.7/clang/test/Headers/ |
| H A D | stdint-typeof-MINMAX.cpp | 30 static_assert(__is_same(__typeof__(UINTMAX_MAX), uintmax_t)); 32 static_assert(__is_same(__typeof__(UINTMAX_C(5)), uintmax_t));
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | filesystem_test_helper.h | 57 inline bool space(std::string path, std::uintmax_t &capacity, in space() 58 std::uintmax_t &free, std::uintmax_t &avail) { in space() 79 inline bool space(std::string path, std::uintmax_t &capacity, 80 std::uintmax_t &free, std::uintmax_t &avail) { 89 auto do_mult = [&](std::uintmax_t val) { 90 std::uintmax_t fsize = expect.f_frsize; 91 std::uintmax_t new_val = val * fsize; 187 std::string create_file(fs::path filename_path, uintmax_t size = 0) {
|
| /llvm-project-15.0.7/libcxx/src/filesystem/ |
| H A D | operations.cpp | 1148 ErrorHandler<uintmax_t> err("file_size", ec, &p); in __file_size() 1161 return static_cast<uintmax_t>(st.st_size); in __file_size() 1172 return static_cast<uintmax_t>(st.st_nlink); in __hard_link_count() 1191 return static_cast<uintmax_t>(pst.st_size) == 0; in __fs_is_empty() 1360 const auto npos = static_cast<uintmax_t>(-1); in remove_all_impl() 1364 uintmax_t count = 1; in remove_all_impl() 1384 ErrorHandler<uintmax_t> err("remove_all", ec, &p); in __remove_all() 1429 uintmax_t count = 0; in remove_all_impl() 1479 ErrorHandler<uintmax_t> err("remove_all", ec, &p); in __remove_all() 1511 auto do_mult = [&](uintmax_t& out, uintmax_t other) { in __space() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.remove_all/ |
| H A D | remove_all.pass.cpp | 30 ASSERT_SAME_TYPE(decltype(fs::remove_all(p)), std::uintmax_t); in TEST_CASE() 31 ASSERT_SAME_TYPE(decltype(fs::remove_all(p, ec)), std::uintmax_t); in TEST_CASE() 70 const auto BadRet = static_cast<std::uintmax_t>(-1); in TEST_CASE()
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/cert/ |
| H A D | err34-c.c | 6 typedef unsigned long long uintmax_t; typedef 26 uintmax_t uim; in f1()
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.mods/ |
| H A D | refresh.pass.cpp | 257 TEST_CHECK(ent.file_size(ec) == uintmax_t(-1)); in TEST_CASE() 277 TEST_CHECK(ent.file_size(ec) == uintmax_t(-1)); in TEST_CASE() 319 CHECK_ACCESS(hard_link_count, uintmax_t(-1)); in TEST_CASE() 336 CHECK_ACCESS(hard_link_count, uintmax_t(-1)); in TEST_CASE() 354 CHECK_ACCESS(hard_link_count, uintmax_t(-1)); in TEST_CASE()
|