[all-commits] [llvm/llvm-project] 27818f: [clang-format] Fix tabs when using BreakBeforeTern...

Marek Kurdej via All-commits all-commits at lists.llvm.org
Thu Dec 16 00:28:12 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 27818f01fec2dd8f18325281f97646aed5ca9c89
      https://github.com/llvm/llvm-project/commit/27818f01fec2dd8f18325281f97646aed5ca9c89
  Author: Marek Kurdej <marek.kurdej+llvm.org at gmail.com>
  Date:   2021-12-16 (Thu, 16 Dec 2021)

  Changed paths:
    M clang/lib/Format/WhitespaceManager.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [clang-format] Fix tabs when using BreakBeforeTernaryOperators=false.

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

This is rather a workaround than a correct fix. To properly fix it, we'd need to find a better way to tell when not to decrease the StartOfTokenColumn.

Reviewed By: MyDeveloperDay, owenpan

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




More information about the All-commits mailing list