[clang-format] Add the possibility to align assignments spanning empty lines or comments
authorLukas Barth <mail@lukas-barth.net>
Mon, 25 Jan 2021 08:30:02 +0000 (09:30 +0100)
committerMarek Kurdej <marek.kurdej@gmail.com>
Mon, 25 Jan 2021 08:41:50 +0000 (09:41 +0100)
commit256314711f3fa724bff1bb2d8b93c5252265b5c7
tree1cff56d0c3c5295c4da40fd6b02347fc90f57730
parent7b9d88ab389e19d26432b1c1a6d57f554feb9a20
[clang-format] Add the possibility to align assignments spanning empty lines or comments

Currently, empty lines and comments break alignment of assignments on consecutive
lines. This makes the AlignConsecutiveAssignments option an enum that allows controlling
whether empty lines or empty lines and comments should be ignored when aligning
assignments.

Reviewed By: MyDeveloperDay, HazardyKnusperkeks, tinloaf

Differential Revision: https://reviews.llvm.org/D93986
clang/docs/ClangFormatStyleOptions.rst
clang/docs/ReleaseNotes.rst
clang/docs/tools/dump_format_style.py
clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp
clang/lib/Format/WhitespaceManager.cpp
clang/unittests/Format/FormatTest.cpp