<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 - Feature request: Two different indentation width options, one for code, one for pre-processor directives"
href="https://bugs.llvm.org/show_bug.cgi?id=42919">42919</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Feature request: Two different indentation width options, one for code, one for pre-processor directives
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>Keywords</th>
<td>missing-feature, new-feature
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</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>sebastian@pipping.org
</td>
</tr>
<tr>
<th>CC</th>
<td>djasper@google.com, klimek@google.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>It seems like option "IndentWidth" effects both C/C++ code indentation width as
well as pre-processor indentation width. What I have seen a few times is that
pre-processor indentation uses a single space per level while the C/C++ code in
the same file uses 2 or 4 spaces. "IndentWidth" seems to affect both widths
which also means that pre-processor code will look very noise when
"IndentWidth" is more than 2.
So it would be great to have two options, "IndentWidth" and a new one
"IndentWidthPP"(?), thinking of existing "IndentPPDirectives".
Would that be possible?
Thanks in advance!</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>