[all-commits] [llvm/llvm-project] b3aeca: [clang-format] Further improve requires clause det...

Björn Schäpers via All-commits all-commits at lists.llvm.org
Fri Jun 24 19:43:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b3aeca3962bb39dfe110472ea033bda32044455d
      https://github.com/llvm/llvm-project/commit/b3aeca3962bb39dfe110472ea033bda32044455d
  Author: Björn Schäpers <bjoern at hazardy.de>
  Date:   2022-06-25 (Sat, 25 Jun 2022)

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

  Log Message:
  -----------
  [clang-format] Further improve requires clause detection

If there is a typeish token before the requires, it can't be a requires
expression.

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

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




More information about the All-commits mailing list