[libcxx-commits] [libcxx] [libcxx] Caches file attributes during directory iteration. (PR #93316)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue May 28 10:38:03 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff ab7e6b66fdd768f566e76972755de3578f1d0f4a 08ca1dcb567ee9ec6ed14d5f296e15e20cb1334a -- libcxx/include/__filesystem/directory_entry.h libcxx/src/filesystem/directory_iterator.cpp libcxx/src/filesystem/file_descriptor.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libcxx/include/__filesystem/directory_entry.h b/libcxx/include/__filesystem/directory_entry.h
index 6d35d92ebf..70a10dd8fa 100644
--- a/libcxx/include/__filesystem/directory_entry.h
+++ b/libcxx/include/__filesystem/directory_entry.h
@@ -243,7 +243,8 @@ private:
     return __data;
   }
 
-  _LIBCPP_HIDE_FROM_ABI static __cached_data __create_iter_cached_result(file_type __ft, uintmax_t __size, perms __perm, file_time_type __write_time) {
+  _LIBCPP_HIDE_FROM_ABI static __cached_data
+  __create_iter_cached_result(file_type __ft, uintmax_t __size, perms __perm, file_time_type __write_time) {
     __cached_data __data;
     __data.__type_       = __ft;
     __data.__size_       = __size;

``````````

</details>


https://github.com/llvm/llvm-project/pull/93316


More information about the libcxx-commits mailing list