[all-commits] [llvm/llvm-project] bcd1e4: [clang-format] Further improve support for require...

Björn Schäpers via All-commits all-commits at lists.llvm.org
Tue Feb 15 12:38:36 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bcd1e4612f4fa2d12a51f0708c619ae3b2deaa2b
      https://github.com/llvm/llvm-project/commit/bcd1e4612f4fa2d12a51f0708c619ae3b2deaa2b
  Author: Björn Schäpers <bjoern at hazardy.de>
  Date:   2022-02-15 (Tue, 15 Feb 2022)

  Changed paths:
    M clang/lib/Format/UnwrappedLineParser.cpp
    M clang/lib/Format/UnwrappedLineParser.h
    M clang/unittests/Format/TokenAnnotatorTest.cpp

  Log Message:
  -----------
  [clang-format] Further improve support for requires expressions

Detect requires expressions in more unusable contexts. This is far from
perfect, but currently we have no good metric to decide between a
requires expression and a trailing requires clause.

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


  Commit: b786a4aefedaf68eb7710d9c01a18ad1d0c820b7
      https://github.com/llvm/llvm-project/commit/b786a4aefedaf68eb7710d9c01a18ad1d0c820b7
  Author: Björn Schäpers <bjoern at hazardy.de>
  Date:   2022-02-15 (Tue, 15 Feb 2022)

  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/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [clang-format] Extend SpaceBeforeParens for requires

We can now configure the space between requires and the following paren,
seperate for clauses and expressions.

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


  Commit: 8da319fe770b21d342a534bf02d2b88fffe667cc
      https://github.com/llvm/llvm-project/commit/8da319fe770b21d342a534bf02d2b88fffe667cc
  Author: Björn Schäpers <bjoern at hazardy.de>
  Date:   2022-02-15 (Tue, 15 Feb 2022)

  Changed paths:
    M clang/lib/Format/ContinuationIndenter.cpp

  Log Message:
  -----------
  [clang-format][NFC] Give State.Stack.back() a meaningful name

Without that debugging was a hell for me.

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


Compare: https://github.com/llvm/llvm-project/compare/2e507607754c...8da319fe770b


More information about the All-commits mailing list