[all-commits] [llvm/llvm-project] 9dffab: [clang-format][NFC] Don't call mightFitOnOneLine()...

Owen via All-commits all-commits at lists.llvm.org
Mon May 16 02:43:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9dffab9d524a05742a765dea27aedc8a7080a402
      https://github.com/llvm/llvm-project/commit/9dffab9d524a05742a765dea27aedc8a7080a402
  Author: owenca <owenpiano at gmail.com>
  Date:   2022-05-16 (Mon, 16 May 2022)

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

  Log Message:
  -----------
  [clang-format][NFC] Don't call mightFitOnOneLine() unnecessarily

Clean up UnwrappedLineParser for RemoveBracesLLVM to avoid calling
mightFitOnOneLine() as much as possible.

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




More information about the All-commits mailing list