<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/90880>90880</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Can we prevent line breaks before const/override/final?
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
mikamins
</td>
</tr>
</table>
<pre>
Is there any way to discourage line breaks before member function specifiers? We'd prefer `const`, `override`, `final` to not end up on a line of their own.
Code before formatting:
```
void MyFunction(const std::string& input1, const std::string& input2) const;
```
Actual:
```
void MyFunction(const std::string& input1, const std::string& input2)
const;
```
Desired:
```
void MyFunction(
const std::string& input1,
const std::string& input2) const;
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzEk0GPmzwQhn-NuYwSGTtAOHDIJkL6Dt-5Z4MHMl1jI9skyr-vDGmjSqt291SEjIxn5n1m5FeFQKNFbFjxxopLppZ4db6Z6F1NZEPWOf1o_gsQr-gRlH3AXT0gOtAUerd4NSIYsgidR_UeoMPBeYQJpw49DIvtIzkLYcaeBkIfmGzhGzJRaZg9DuiBlbx3NkRWcibOaetu6D1pfP0ZyCrDSp6UrYuAVsMyg7OgNnk3JETy4O52z_iF8dO2np3Gn1SD85OKkezI5PM4SWzvugUAuDnS8P-jfbIzcVzxIESd0uQpRJ9KiBLIzkvME-OfQwQT9RbC5NuHwtt66uOizD-Aewp8AvGCgTzqrzG-ztLzd-KvxH92tplupK5lrTJs8io_lFXOZZVdm1pocexKPqhDkdeSD0VedIMq6rIailrmGTWCiwMvuMgryWW112WhOZacY5dXWpfswHFSZPbG3Ka982NGISzY1Px45JlRHZqwGkyI3ig77raLyIRIlvNNStt1yxjYgRsKMbwKRYpmNedvicUFzsrCHZOHbmjjRx7cZiLaX24S7WYj2WaLN801xjmkkYqWiXakeF26fe8mJtok__zsZu--Y58KrU0FJtq1rx8BAAD__y2QRwo">