[all-commits] [llvm/llvm-project] fd4e08: [clang-format] Inconsistent behavior regarding lin...

Max Sagebaum via All-commits all-commits at lists.llvm.org
Fri Apr 16 01:39:29 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd4e08aa8f7edfe877d022859ce162a1b4fa684c
      https://github.com/llvm/llvm-project/commit/fd4e08aa8f7edfe877d022859ce162a1b4fa684c
  Author: Max Sagebaum <max.sagebaum at scicomp.uni-kl.de>
  Date:   2021-04-16 (Fri, 16 Apr 2021)

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

  Log Message:
  -----------
  [clang-format] Inconsistent behavior regarding line break before access modifier

Fixes https://llvm.org/PR41870.

Checks for newlines in option Style.EmptyLineBeforeAccessModifier are now based on the formatted new lines and not on the new lines in the file.

Reviewed By: HazardyKnusperkeks, curdeius

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




More information about the All-commits mailing list