[llvm] [llvm][vfs] Preserve paths for fallback/fallthrough in RedirectingFileSystem (PR #85307)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 14 13:48:40 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 c08d70a5cbc61efc5c8636c8788f39270f59dec5 2c331e6a8b27734b87adf92c290b854ca9a24f06 -- llvm/include/llvm/Support/VirtualFileSystem.h llvm/lib/Support/VirtualFileSystem.cpp llvm/unittests/Support/VirtualFileSystemTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/unittests/Support/VirtualFileSystemTest.cpp b/llvm/unittests/Support/VirtualFileSystemTest.cpp
index bf5c53602e..695b093432 100644
--- a/llvm/unittests/Support/VirtualFileSystemTest.cpp
+++ b/llvm/unittests/Support/VirtualFileSystemTest.cpp
@@ -3380,13 +3380,8 @@ TEST(RedirectingFileSystemTest, ExternalPaths) {
FS->isLocal("/e/./../f", IsLocal);
FS->dir_begin(".././g", EC);
- std::vector<std::string> Expected{
- "/a/../b",
- "/cwd/c",
- "/cwd/./d",
- "/e/./../f",
- "/cwd/.././g"
- };
+ std::vector<std::string> Expected{"/a/../b", "/cwd/c", "/cwd/./d",
+ "/e/./../f", "/cwd/.././g"};
EXPECT_EQ(CheckFS->SeenPaths, Expected);
``````````
</details>
https://github.com/llvm/llvm-project/pull/85307
More information about the llvm-commits
mailing list