<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: Add capability to emulate earlier versions"
href="https://bugs.llvm.org/show_bug.cgi?id=45465">45465</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Feature request: Add capability to emulate earlier versions
</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>Linux
</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>Formatter
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jonas@lippuner.ca
</td>
</tr>
<tr>
<th>CC</th>
<td>djasper@google.com, klimek@google.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>As you know, the formatting produced by different versions of clang-format is
not entirely consistent. So if you use clang-format-9 to format some code, the
result will the slightly different than if you use clang-format-8 even if the
config file is exactly the same.
This is causing some issues for our collaboration since different developers
have different version of clang-format installed and available on their various
Linux distros.
It would be great if a later version of clang-format was able to emulate the
formatting of a previous version. For example, if the project decides to use
clang-format-8, those people who have clang-format-9 could just pass a flag to
clang-format-9 that tells it to format the code like clang-format-8 used to do
it.
I know this may be non-trivial to implement, but I think there would a number
of collaborative coding projects that would benefit from this feature.</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>