[llvm-bugs] [Bug 46087] New: AllowShortBlocksOnASingleLine fails on ForEachMacros
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue May 26 19:01:58 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=46087
Bug ID: 46087
Summary: AllowShortBlocksOnASingleLine fails on ForEachMacros
Product: clang
Version: 10.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: zjsdut at 163.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
.clang-format:
ForEachMacros: ['rng']
AllowShortBlocksOnASingleLine: Never
Before:
rng (i, 0, 10) {
std::cout << i;
}
After:
rng (i, 0, 10) { std::cout << i; }
Expect:
rng (i, 0, 10) {
std::cout << i;
}
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200527/a13f9723/attachment.html>
More information about the llvm-bugs
mailing list