[llvm-branch-commits] [clang] [KeyInstr][Clang] For range stmt atoms (PR #134647)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Apr 7 06:51:54 PDT 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 375ca9f7b756d01da82772f9316ab20b56214d91 2484a49c8f259891882a18636b769bf4c06cb8ce --extensions cpp -- clang/test/KeyInstructions/for-range.cpp clang/lib/CodeGen/CGStmt.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp
index 9292be24fc..2696bc9cc3 100644
--- a/clang/lib/CodeGen/CGStmt.cpp
+++ b/clang/lib/CodeGen/CGStmt.cpp
@@ -1535,7 +1535,7 @@ CodeGenFunction::EmitCXXForRangeStmt(const CXXForRangeStmt &S,
     ConvergenceTokenStack.pop_back();
 
   // We want the for closing brace to be step-able on to match existing
-  // behaviour. 
+  // behaviour.
   addInstToNewSourceAtom(ForBody->getTerminator(), nullptr);
 }
 

``````````

</details>


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


More information about the llvm-branch-commits mailing list