[llvm] Windows Filesystem fs::status Conditionally Call GetFileAttributes (PR #78118)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 14 18:48:51 PST 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 a1eaed7a21e1cc750e78420f298514edee1cb1ad 4fce203eec1918888a624547345948e1e3d6ac61 -- llvm/lib/Support/Windows/Path.inc
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc
index 6598586545..5c0d6d6421 100644
--- a/llvm/lib/Support/Windows/Path.inc
+++ b/llvm/lib/Support/Windows/Path.inc
@@ -781,7 +781,7 @@ std::error_code status(const Twine &path, file_status &result, bool Follow) {
     DWORD attr = ::GetFileAttributesW(path_utf16.begin());
     if (attr == INVALID_FILE_ATTRIBUTES)
       return getStatus(INVALID_HANDLE_VALUE, result);
-    
+
     // Handle reparse points.
     if (attr & FILE_ATTRIBUTE_REPARSE_POINT)
       Flags |= FILE_FLAG_OPEN_REPARSE_POINT;

``````````

</details>


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


More information about the llvm-commits mailing list