[all-commits] [llvm/llvm-project] 747394: [clang-format] turn on formatting after "clang-for...

Rafał Jelonek via All-commits all-commits at lists.llvm.org
Mon Jan 11 00:41:40 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7473940bae0f263832456d2c99a4bd606ed0d76e
      https://github.com/llvm/llvm-project/commit/7473940bae0f263832456d2c99a4bd606ed0d76e
  Author: Rafał Jelonek <71409580+rjelonek at users.noreply.github.com>
  Date:   2021-01-11 (Mon, 11 Jan 2021)

  Changed paths:
    M clang/lib/Format/Format.cpp
    M clang/unittests/Format/SortIncludesTest.cpp

  Log Message:
  -----------
  [clang-format] turn on formatting after "clang-format on" while sorting includes

Formatting is not active after "clang-format on" due to merging lines while formatting is off. Also, use trimmed line. Behaviour with LF is different than with CRLF.

Reviewed By: curdeius, MyDeveloperDay

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




More information about the All-commits mailing list