[all-commits] [llvm/llvm-project] 725f64: [clang-format] Improve requires clause parsing (#2...

Björn Schäpers via All-commits all-commits at lists.llvm.org
Wed Jul 15 11:58:42 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 725f644a31627c08f6cec25a7eb2396ad690d08e
      https://github.com/llvm/llvm-project/commit/725f644a31627c08f6cec25a7eb2396ad690d08e
  Author: Björn Schäpers <bjoern at hazardy.de>
  Date:   2026-07-15 (Wed, 15 Jul 2026)

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

  Log Message:
  -----------
  [clang-format] Improve requires clause parsing (#207542)

We did not consider dependent templates and thus ended the parsing after
template and forcing a line break there. The tests was formatted as:

template <typename T> struct S {
  template <typename Foo>
    requires T::template
  Has<Foo> void func(Foo);
};



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list