<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - Exceeding column limit in comments"
href="https://bugs.llvm.org/show_bug.cgi?id=34274">34274</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Exceeding column limit in comments
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>artemiev.mikhail@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>djasper@google.com, klimek@google.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Example:
<before.cpp>
int main() {
//Lore m ipsum d olor si t amet, cons ectetu r adipisci ng elit. Nu, nc
eu orci ut j us to or
//na re egest as si t ame t a nisl. In . hac habita sse platea dictu
mst . Nunc at vel, it, a era t fe,
//rm en tum porta . Aenean po rttito r congu. e au gu e, id m ol lis
eros ve stib u lum ut. Du i s sit a met .
return 0;
}
Formatting:
clang-format -style="{BasedOnStyle: LLVM, ColumnLimit: 85, IndentWidth: 3}"
before.cpp > after.cpp
<after.cpp>
1 int main() {
2 // Lore m ipsum d olor si t amet, cons ectetu r adipisci ng elit.
Nu, nc eu
3 // orci ut j us to or na re egest as si t ame t a nisl. In .
hac habita sse
4 // platea dictu mst . Nunc at vel, it, a era t fe, rm en tum
porta . Aenean
5 // po rttito r congu. e au gu e, id m ol lis eros ve stib u lum
ut. Du i s sit a
6 // met .
7 return 0;
8 }
Line 5 exceeds the column limit.
awk '{print length;}' after.cpp
12
82
84
84
86
11
12
1</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>