<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:mpozulp@gmail.com" title="Michael Pozulp <mpozulp@gmail.com>"> <span class="fn">Michael Pozulp</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - clang-format single line if impossible with braces"
href="https://bugs.llvm.org/show_bug.cgi?id=43913">bug 43913</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>CONFIRMED
</td>
<td>RESOLVED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - clang-format single line if impossible with braces"
href="https://bugs.llvm.org/show_bug.cgi?id=43913#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - clang-format single line if impossible with braces"
href="https://bugs.llvm.org/show_bug.cgi?id=43913">bug 43913</a>
from <span class="vcard"><a class="email" href="mailto:mpozulp@gmail.com" title="Michael Pozulp <mpozulp@gmail.com>"> <span class="fn">Michael Pozulp</span></a>
</span></b>
<pre>Thanks for the analysis! I looked more closely and the style for the code that
I work on allows short if statements on a single line AND short loops on a
single line. That means that all of these are ok
if (x) { x++; }
for (int x = 0; x < 10; x++) { x++; }
while (x) { x++; }
and it appears that setting these options retains the above code
AllowShortIfStatementsOnASingleLine: Always
AllowShortBlocksOnASingleLine: Always
AllowShortLoopsOnASingleLine: true
I'm going to close this bug as RESOLVED. I really appreciate your help!</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>