[all-commits] [llvm/llvm-project] 2a42a7: [clang-format] Don't misannotate left squares as l...

Owen via All-commits all-commits at lists.llvm.org
Fri Mar 31 16:13:20 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a42a7b4e87395ae2a4321292f0fd9dce401b4e1
  Author: Owen Pan <owenpiano at gmail.com>
  Date:   2023-03-31 (Fri, 31 Mar 2023)

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

  Log Message:
  [clang-format] Don't misannotate left squares as lambda introducers

A left square can start a lambda only if it's not preceded by an
identifier other than return and co-wait/co-yield/co-return.

Fixes #54245.
Fixes #61786.

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

More information about the All-commits mailing list