[all-commits] [llvm/llvm-project] f00a20: [clang-format] Add the possibility to align assign...

Marek Kurdej via All-commits all-commits at lists.llvm.org
Mon Jan 25 00:37:18 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f00a20e51c1d186e72844939aad10416e1cc99de
      https://github.com/llvm/llvm-project/commit/f00a20e51c1d186e72844939aad10416e1cc99de
  Author: Marek Kurdej <marek.kurdej at gmail.com>
  Date:   2021-01-25 (Mon, 25 Jan 2021)

  Changed paths:
    M clang/docs/ClangFormatStyleOptions.rst
    M clang/docs/ReleaseNotes.rst
    M clang/docs/tools/dump_format_style.py
    M clang/include/clang/Format/Format.h
    M clang/lib/Format/Format.cpp
    M clang/lib/Format/WhitespaceManager.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list