[llvm] Clang-format coroutine files ahead of refactoring (PR #95583)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 14 11:52:17 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 c7b32341e9f885cc7e6ba4b2ff017f748a6f76ee ca46bd191f67e18600a1ea6315c9e36c4a9fa8ac -- llvm/lib/Transforms/Coroutines/CoroCleanup.cpp llvm/lib/Transforms/Coroutines/CoroEarly.cpp llvm/lib/Transforms/Coroutines/CoroElide.cpp llvm/lib/Transforms/Coroutines/CoroFrame.cpp llvm/lib/Transforms/Coroutines/CoroInstr.h llvm/lib/Transforms/Coroutines/CoroInternal.h llvm/lib/Transforms/Coroutines/Coroutines.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Coroutines/CoroFrame.cpp b/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
index 1918d88d62..1617530321 100644
--- a/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
+++ b/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
@@ -869,7 +869,8 @@ void FrameTypeBuilder::addFieldForAllocas(const Function &F,
SWI->setDefaultDest(DestBB);
}
// This Debug Info could tell us which allocas are merged into one slot.
- LLVM_DEBUG(for (auto &AllocaSet : NonOverlapedAllocas) {
+ LLVM_DEBUG(for (auto &AllocaSet
+ : NonOverlapedAllocas) {
if (AllocaSet.size() > 1) {
dbgs() << "In Function:" << F.getName() << "\n";
dbgs() << "Find Union Set "
``````````
</details>
https://github.com/llvm/llvm-project/pull/95583
More information about the llvm-commits
mailing list