[llvm] [Support] Better error msg when cache dir can't be created. (PR #69575)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 19 02:30:03 PDT 2023
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 3517b67ef021055d201234384359fa313f3312f7 c66936964c514b12e97be747d7f4384278cfd260 -- llvm/lib/Support/Caching.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Support/Caching.cpp b/llvm/lib/Support/Caching.cpp
index 722746e7b440..c13957ba8493 100644
--- a/llvm/lib/Support/Caching.cpp
+++ b/llvm/lib/Support/Caching.cpp
@@ -145,7 +145,8 @@ Expected<FileCache> llvm::localCache(const Twine &CacheNameRef,
// ensures the filesystem isn't mutated until the cache is.
if (std::error_code EC = sys::fs::create_directories(
CacheDirectoryPath, /*IgnoreExisting=*/true))
- return createStringError(EC, Twine("Can't create cache directory: ") + CacheDirectoryPath);
+ return createStringError(EC, Twine("Can't create cache directory: ") +
+ CacheDirectoryPath);
// Write to a temporary to avoid race condition
SmallString<64> TempFilenameModel;
``````````
</details>
https://github.com/llvm/llvm-project/pull/69575
More information about the llvm-commits
mailing list