<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Lack of option to keep short lambda on a single line"
href="https://llvm.org/bugs/show_bug.cgi?id=24672">24672</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Lack of option to keep short lambda on a single line
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Formatter
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>predelnik@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>djasper@google.com, klimek@google.com, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Currently it seems that `AllowShortFunctionsOnASingleLine` doesn't affect are
lambdas kept as a single line or not. I don't know if it should be part of this
option or made as a different one, but in my opinion keeping short lambdas on a
single line often seems much more clear at least in some coding styles.
For example,
std::find_if (a.cbegin (), a.cend (), [&](auto &x){ return x.is_good ();});
seems better than
std::find_if (a.cbegin (), a.cend (), [&](auto &x)
{
return x.is_good ();
});</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>