[all-commits] [llvm/llvm-project] 72e4f4: [clang-format] [PR47936] AfterControlStatement: Mu...

MyDeveloperDay via All-commits all-commits at lists.llvm.org
Thu Nov 25 00:30:59 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 72e4f4a2a117f97118692857d91210fc62c066b0
      https://github.com/llvm/llvm-project/commit/72e4f4a2a117f97118692857d91210fc62c066b0
  Author: mydeveloperday <mydeveloperday at gmail.com>
  Date:   2021-11-25 (Thu, 25 Nov 2021)

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

  Log Message:
  -----------
  [clang-format] [PR47936] AfterControlStatement: MultiLine breaks AllowShortFunctionsOnASingleLine

https://bugs.llvm.org/show_bug.cgi?id=47936

Using the MultiLine setting for BraceWrapping.AfterControlStatement appears to disable AllowShortFunctionsOnASingleLine, even in cases without any control statements

Reviewed By: HazardyKnusperkeks, curdeius

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




More information about the All-commits mailing list