aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Frontend/CompilerInstanceTest.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2025-10-01 14:35:17 -0700
committerGitHub <noreply@github.com>2025-10-01 14:35:17 -0700
commitf122484b998d8dbfdaf2e6b9c222438c71e90d86 (patch)
treeb4fc2472cd4523ec8da4524098e56c9f280eb19c /clang/unittests/Frontend/CompilerInstanceTest.cpp
parent39410dff52d813ccfc7efc6fc0c6afd4583e14a6 (diff)
downloadllvm-f122484b998d8dbfdaf2e6b9c222438c71e90d86.zip
llvm-f122484b998d8dbfdaf2e6b9c222438c71e90d86.tar.gz
llvm-f122484b998d8dbfdaf2e6b9c222438c71e90d86.tar.bz2
[llvm][support] Move `make_absolute` from `sys::fs` to `sys::path` (#161459)
The `llvm::sys::fs::make_absolute(const Twine &, SmallVectorImpl<char> &)` functions doesn't perform any FS access - it only modifies the second parameter via path/string operations. This function should live in the `llvm::sys::path` namespace for consistency and for making it easier to spot function calls that perform IO.
Diffstat (limited to 'clang/unittests/Frontend/CompilerInstanceTest.cpp')
-rw-r--r--clang/unittests/Frontend/CompilerInstanceTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/Frontend/CompilerInstanceTest.cpp b/clang/unittests/Frontend/CompilerInstanceTest.cpp
index 36cac5a..cd3fefa 100644
--- a/clang/unittests/Frontend/CompilerInstanceTest.cpp
+++ b/clang/unittests/Frontend/CompilerInstanceTest.cpp
@@ -33,7 +33,7 @@ TEST(CompilerInstance, DefaultVFSOverlayFromInvocation) {
SmallString<256> CurrentPath;
sys::fs::current_path(CurrentPath);
- sys::fs::make_absolute(CurrentPath, FileName);
+ sys::path::make_absolute(CurrentPath, FileName);
// Mount the VFS file itself on the path 'virtual.file'. Makes this test
// a bit shorter than creating a new dummy file just for this purpose.