[PATCH] D94955: [clang-format] Treat ForEachMacros as loops
Jiashu Zou via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 19 01:45:44 PST 2021
GoBigorGoHome created this revision.
GoBigorGoHome added a reviewer: MyDeveloperDay.
GoBigorGoHome requested review of this revision.
Herald added a project: clang.
TT_ForEachMacro should be considered in rules AllowShortBlocksOnASingleLine
and AllowShortLoopsOnASingleLine.
This fixes bug-46087.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D94955
Files:
clang/lib/Format/UnwrappedLineFormatter.cpp
clang/unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94955.317488.patch
Type: text/x-patch
Size: 4557 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210119/b888575f/attachment.bin>
More information about the cfe-commits
mailing list