[all-commits] [llvm/llvm-project] 1e512f: [clang-format] Treat ForEachMacros as loops

Marek Kurdej via All-commits all-commits at lists.llvm.org
Mon Jan 17 08:11:20 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e512f022ad5c23dc4ef4e663f51d5d0bcbc7c69
      https://github.com/llvm/llvm-project/commit/1e512f022ad5c23dc4ef4e663f51d5d0bcbc7c69
  Author: Marek Kurdej <marek.kurdej+llvm.org at gmail.com>
  Date:   2022-01-17 (Mon, 17 Jan 2022)

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

  Log Message:
  -----------
  [clang-format] Treat ForEachMacros as loops

TT_ForEachMacro should be considered in rules AllowShortBlocksOnASingleLine
and AllowShortLoopsOnASingleLine.
Fixes https://github.com/llvm/llvm-project/issues/45432.

Reviewed By: MyDeveloperDay

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




More information about the All-commits mailing list