[clang-format] Add the possibility to align assignments spanning empty lines or comments
authorMarek Kurdej <marek.kurdej@gmail.com>
Mon, 25 Jan 2021 08:30:02 +0000 (09:30 +0100)
committerMarek Kurdej <marek.kurdej@gmail.com>
Mon, 25 Jan 2021 08:36:55 +0000 (09:36 +0100)
commitf00a20e51c1d186e72844939aad10416e1cc99de
tree1cff56d0c3c5295c4da40fd6b02347fc90f57730
parent01d9f13c3a5914baf9739348ef666e348a7b2a2f
[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