[all-commits] [llvm/llvm-project] b9f6e0: [clang-format][NFC] Handle wrapping after => in mu...

Owen via All-commits all-commits at lists.llvm.org
Tue Dec 21 16:57:38 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b9f6e09b850acf2ade04f22fa423e7cc0f075e62
      https://github.com/llvm/llvm-project/commit/b9f6e09b850acf2ade04f22fa423e7cc0f075e62
  Author: Owen Pan <owenpiano at gmail.com>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

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

  Log Message:
  -----------
  [clang-format][NFC] Handle wrapping after => in mustBreakBefore()

Move the handling of brace wrapping after => from unwrapped line
parser to token annotator and clean up the parser.

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




More information about the All-commits mailing list