[all-commits] [llvm/llvm-project] be9a7f: [clang-format] Fixed handling of requires clauses ...

kuzkry via All-commits all-commits at lists.llvm.org
Sun Feb 20 13:35:19 PST 2022


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

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

  Log Message:
  -----------
  [clang-format] Fixed handling of requires clauses followed by attributes

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

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


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

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

  Log Message:
  -----------
  [clang-format][NFC] Return early in ContinuationIndenter::mustBreak

We can return as early as possible and only calculate IsComparison if we
really need to. Also cache getPrecedence() instead of querying it at
most 4 times.

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


  Commit: 8f310d1967c20d348c617af3a30999031c71fee0
      https://github.com/llvm/llvm-project/commit/8f310d1967c20d348c617af3a30999031c71fee0
  Author: Krystian Kuzniarek <krystian.kuzniarek at gmail.com>
  Date:   2022-02-20 (Sun, 20 Feb 2022)

  Changed paths:
    M clang/docs/ClangFormatStyleOptions.rst
    M clang/include/clang/Format/Format.h

  Log Message:
  -----------
  [clang-format][docs] Fix incorrect 'clang-format 13' configuration ...

...options markers

Note: Option 'IndentRequiresClause' was previously known as
'IndentRequires' but the version marker should still indicate
'clang-format 15' as this option most recent name wasn't accessible
earlier and it would produce:
error: unknown key 'IndentRequiresClause'

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


Compare: https://github.com/llvm/llvm-project/compare/4701bcae9747...8f310d1967c2


More information about the All-commits mailing list