[all-commits] [llvm/llvm-project] a08fa8: [Clang-Format] Add ReferenceAlignment directive

Seraphime Kirkovski via All-commits all-commits at lists.llvm.org
Thu Jun 24 13:28:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a08fa8a508199c6463f5ee5d617e2f360f718067
      https://github.com/llvm/llvm-project/commit/a08fa8a508199c6463f5ee5d617e2f360f718067
  Author: Seraphime Kirkovski <skirkovski at vmware.com>
  Date:   2021-06-24 (Thu, 24 Jun 2021)

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

  Log Message:
  -----------
  [Clang-Format] Add ReferenceAlignment directive

This introduces ReferenceAlignment style option modeled around
PointerAlignment.
Style implementors can specify Left, Right, Middle or Pointer to
follow whatever the PointerAlignment option specifies.

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




More information about the All-commits mailing list