[llvm-branch-commits] [clang] [Clang] [C++26] Expansion Statements (Part 5: Iterating Expansion Statements) (PR #169684)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Mar 18 18:02:32 PDT 2026
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 origin/main HEAD --extensions cpp,h -- clang/include/clang/Sema/Sema.h clang/lib/Sema/SemaExpand.cpp clang/lib/Sema/SemaStmt.cpp clang/lib/Sema/TreeTransform.h --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp
index 58010a695..6da2bcebf 100644
--- a/clang/lib/Sema/SemaStmt.cpp
+++ b/clang/lib/Sema/SemaStmt.cpp
@@ -2431,7 +2431,7 @@ void NoteForRangeBeginEndFunction(Sema &SemaRef, Expr *E,
SemaRef.Diag(Loc, diag::note_for_range_begin_end)
<< BEF << IsTemplate << Description << E->getType();
}
-}
+} // namespace
/// Build a variable declaration for a for-range statement.
VarDecl *Sema::BuildForRangeVarDecl(SourceLocation Loc, QualType Type,
``````````
</details>
https://github.com/llvm/llvm-project/pull/169684
More information about the llvm-branch-commits
mailing list