<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 --- - clang-format: unnecessary line break"
href="https://llvm.org/bugs/show_bug.cgi?id=28546">28546</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang-format: unnecessary line break
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>3.8
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>schnetter@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>clang-format 3.8.0 (OS X) produces this formatting:
{{{
struct X {
template <typename T1 = T, typename S = typename T1::scalar_t, typename S1>
void storeu(const conserved_t<S1 * restrict> &vars, ptrdiff_t idx) const {
map([&](T var,
S1 *restrict varptr) { return var.storeu(varptr[idx]), var; },
*this, vars);
}
template <typename T1 = T, typename S = typename T1::scalar_t, typename S1>
void storeu_partial(const conserved_t<S1 * restrict> &vars, ptrdiff_t idx,
ptrdiff_t i, ptrdiff_t imin, ptrdiff_t imax) const {
map(
[&](T var, S1 *restrict varptr) {
return var.storeu_partial(varptr[idx], i, imin, imax), var;
},
*this, vars);
}
};
}}}
The first call to {{{map}}} is formatted fine. The second call has an
unnecessary line break between the opening parenthesis and the beginning of the
lambda expression.</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>