[Lldb-commits] [lldb] [llvm] Modify the localCache API to require an explicit commit on CachedFile… (PR #115331)

via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 27 06:32:23 PST 2025


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 fd534e524dd3b683077cab2dae4c87b7c2f1b574 987f307fd361190a4801de3161db9c2f5dd7156d --extensions cpp,h -- llvm/unittests/Support/Caching.cpp lldb/source/Core/DataFileCache.cpp llvm/include/llvm/Support/Caching.h llvm/lib/CGData/CodeGenData.cpp llvm/lib/Debuginfod/Debuginfod.cpp llvm/lib/LTO/LTOBackend.cpp llvm/lib/Support/Caching.cpp llvm/tools/gold/gold-plugin.cpp llvm/tools/llvm-lto2/llvm-lto2.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/unittests/Support/Caching.cpp b/llvm/unittests/Support/Caching.cpp
index 55e762cb50..fb63b0c1a9 100644
--- a/llvm/unittests/Support/Caching.cpp
+++ b/llvm/unittests/Support/Caching.cpp
@@ -109,7 +109,8 @@ TEST(Caching, WriteAfterCommit) {
   (*CFS->OS).write(data, sizeof(data));
   ASSERT_THAT_ERROR(CFS->commit(), Succeeded());
 
-  EXPECT_DEATH({ (*CFS->OS).write(data, sizeof(data)); }, "")
+  EXPECT_DEATH(
+      { (*CFS->OS).write(data, sizeof(data)); }, "")
       << "Write after commit did not cause abort";
 
   ASSERT_NO_ERROR(sys::fs::remove_directories(CacheDir.str()));

``````````

</details>


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


More information about the lldb-commits mailing list