Skip to content

[clang-format] Alignment does not honor ColumnLimit #68122

@HazardyKnusperkeks

Description

@HazardyKnusperkeks

Given the code

LongT foo() const noexcept;
T bar(int arg, int arg2, int arg3,
      int loooooooooooooooong) noexcept;

with AlignConsecutiveDeclarations: true and ColumnLimit: 40 it gets formatted as

LongT foo() const noexcept;
T     bar(int arg, int arg2, int arg3,
          int loooooooooooooooong) noexcept;

which does not fit within the ColumnLimit.

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions