<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/78981>78981</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Allow keeping indentation of commented-out code
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
mstorsjo
</td>
</tr>
</table>
<pre>
When commenting out code, there's two common styles, `<indent>// code` or `//<indent>code`.
When running clang-format over the latter style, it ends up as `<indent>//<indent>code`, which doesn't look great. It would be good to have an option to keep such lines untouched.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsUsFu4zoM_Br5QsSQJdupDz7kNS_AfsGeZYux1MpiIFEJ-vcLOy22C_RiAyRHM-SMydkvEXEU3X-iO1emsKM0rpkp5TeqJrIf42-HEWZaV4zs4wJUGGayKNQrsMOEQh0z8IP2IYqQ-SNg3tqil0K_-mgxstD_C3UR6vIE9xIo7QN78fvYZ78W8izk6fndRaQS46ZgDiYuhyul1TDQHdOmA4JhxvRk38g9A0abodzA5J-l_MC6IR_Ozw4sYY5CHRkC0TssCQ3X8IvhQSVYmBAWIgtM4MwdwUSgG3uKW-Ud8Qa5zA6Cj5ihRKYyO7R1ZUdtBz2YCsfmKLtB66HTlRsH1O3cmWa4dqaXKHEYhqsxU_eCfdu0c-VHJVUrG6WaViutajxKnHpp504Psp-UaCWuxoc6hPtaU1oqn3PB8fgyvDRVMBOGvDut1PcLCqU279O4wQ5TWbJoZfCZ89-H2HPYU_IPsDvDKQR67OtuxjyPafYr0PUrNGgPX5mpSgqjY75loU9PDxbPrkz1TKtQl43w83e4JXrDmYW67GtkoS77Jn8CAAD__2eG4Mo">