[all-commits] [llvm/llvm-project] 19884d: [clang-format] Don't skip PP lines if original lin...

aeubanks via All-commits all-commits at lists.llvm.org
Wed Apr 20 08:43:12 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 19884d62c44cdcf236cdf4a55e8a50437070c4fc
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2022-04-20 (Wed, 20 Apr 2022)

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

  Log Message:
  [clang-format] Don't skip PP lines if original line was a PP line when trying to merge lines

Fixes a crash introduced in D123737 where LastNonComment would be null.

Reviewed By: curdeius

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

More information about the All-commits mailing list