[clang] [clang-format] Wrap and indent lambda braces in GNU style (PR #135479)

2025-04-12 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/135479 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Wrap and indent lambda braces in GNU style (PR #135479)

2025-04-12 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/135479 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Wrap and indent lambda braces in GNU style (PR #135479)

2025-04-12 Thread via cfe-commits
https://github.com/rmarker approved this pull request. https://github.com/llvm/llvm-project/pull/135479 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Wrap and indent lambda braces in GNU style (PR #135479)

2025-04-12 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/135479 >From f041f9c3eac94b8f1322ebaa9dfd60d4287840d7 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 11 Apr 2025 23:36:37 -0700 Subject: [PATCH 1/2] [clang-format] Wrap and indent lambda braces in GNU style Fix #13

[clang] [clang-format] Wrap and indent lambda braces in GNU style (PR #135479)

2025-04-12 Thread Owen Pan via cfe-commits
@@ -1334,6 +1334,11 @@ unsigned ContinuationIndenter::getNewLineColumn(const LineState &State) { Style.IndentWidth; } + if (Style.BraceWrapping.BeforeLambdaBody && + Style.BraceWrapping.IndentBraces && Current.is(TT_LambdaLBrace)) { +return CurrentState

[clang] [clang-format] Wrap and indent lambda braces in GNU style (PR #135479)

2025-04-12 Thread via cfe-commits
https://github.com/rmarker edited https://github.com/llvm/llvm-project/pull/135479 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Wrap and indent lambda braces in GNU style (PR #135479)

2025-04-12 Thread via cfe-commits
@@ -1334,6 +1334,11 @@ unsigned ContinuationIndenter::getNewLineColumn(const LineState &State) { Style.IndentWidth; } + if (Style.BraceWrapping.BeforeLambdaBody && + Style.BraceWrapping.IndentBraces && Current.is(TT_LambdaLBrace)) { +return CurrentState

[clang] [clang-format] Wrap and indent lambda braces in GNU style (PR #135479)

2025-04-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fix #133135 --- Full diff: https://github.com/llvm/llvm-project/pull/135479.diff 3 Files Affected: - (modified) clang/lib/Format/ContinuationIndenter.cpp (+5) - (modified) clang/lib/Format/Format.cpp (+

[clang] [clang-format] Wrap and indent lambda braces in GNU style (PR #135479)

2025-04-11 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/135479 Fix #133135 >From f041f9c3eac94b8f1322ebaa9dfd60d4287840d7 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 11 Apr 2025 23:36:37 -0700 Subject: [PATCH] [clang-format] Wrap and indent lambda braces in GNU style