[all-commits] [llvm/llvm-project] 2eff1c: [clang-format] Extend AllowShortLoopsOnASingleLine...

mitchell-stellar via All-commits all-commits at lists.llvm.org
Fri Mar 6 08:18:37 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2eff1c3ce48ef529064e2dc006d57c37da0b4d84
      https://github.com/llvm/llvm-project/commit/2eff1c3ce48ef529064e2dc006d57c37da0b4d84
  Author: Mitchell Balan <mitchell at stellarscience.com>
  Date:   2020-03-06 (Fri, 06 Mar 2020)

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

  Log Message:
  -----------
  [clang-format] Extend AllowShortLoopsOnASingleLine to do ... while loops.
Summary:
If AllowShortLoopsOnASingleLine is enabled,

  do
    a++;
  while (true);

becomes

  do a++;
  while (true);

Reviewers: MyDeveloperDay, mitchell-stellar

Reviewed by: mitchell-stellar

Contributed by: DaanDeMeyer

Subscribers: cfe-commits

Tags: #clang, #clang-format

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




More information about the All-commits mailing list