[all-commits] [llvm/llvm-project] 9c422a: [clang-format] Add option for aligning requires cl...

Danil Sidoruk via All-commits all-commits at lists.llvm.org
Fri Oct 21 00:53:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9c422ab7ce82ec13155629f1e5e4e11d608fe1de
      https://github.com/llvm/llvm-project/commit/9c422ab7ce82ec13155629f1e5e4e11d608fe1de
  Author: Danil Sidoruk <patriotrossii2019 at mail.ru>
  Date:   2022-10-21 (Fri, 21 Oct 2022)

  Changed paths:
    M clang/docs/ClangFormatStyleOptions.rst
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Format/Format.h
    M clang/lib/Format/ContinuationIndenter.cpp
    M clang/lib/Format/Format.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [clang-format] Add option for aligning requires clause body

Adds an option whether requires clause body should be aligned with
the `requires` keyword.
This option is now the default, both without configuration and in LLVM
style.

Fixes https://github.com/llvm/llvm-project/issues/56283

Differential Revision: https://reviews.llvm.org/D129443

Co-authored-by: Emilia Dreamer <emilia at rymiel.space>




More information about the All-commits mailing list