[clang] [clang-format] Fix alignment in presence of template functions (PR #68029)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 2 15:04:14 PDT 2023
================
@@ -18525,12 +18525,17 @@ TEST_F(FormatTest, AlignConsecutiveAssignments) {
" a_longer_name_for_wrap}};",
Alignment);
- Alignment.ColumnLimit = 60;
+ Alignment = getLLVMStyleWithColumns(60);
+ Alignment.AlignConsecutiveAssignments.Enabled = true;
----------------
owenca wrote:
Is this necessary? If `AlignConsecutiveAssignments` is already on, you can use `EXPECT_TRUE` instead.
https://github.com/llvm/llvm-project/pull/68029
More information about the cfe-commits
mailing list