<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/140408>140408</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clangd] `clangd --style=<string>` command line argument to pass to internal clang-format
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Next-Door-Tech
</td>
</tr>
</table>
<pre>
Clangd currently has a command line option `clangd --fallback-style=<string>` which acts as if the same argument and its value were passed to clangd's internal clang-format. However, as with standalone clang-format, the fallback style must be one of the small handful of predefined presets provided.
Standalone clang-format has an additional argument `clang-format --style=<string>` which allows for fine-grained control over individual style parameters from the command line. This functionality would also be useful in clangd for hopefully obvious reasons.
Usage and semantics of `clangd --style=<string>` should be identical to those of `clang-format --style=<string>`.
Issue also created on clangd repository: https://github.com/clangd/clangd/issues/2397
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMVM2SpDYMfhpzUdHF77AcOExmMpVccsnmAQQW4MRYlGXo9NunTDM7PVWbbE52qWR9P5KMImZyRJ2qf1L1a4JbmNl3v9HfIX1l9ulXGuakZ33rXiy6ScOweU8u2BvMKIAw8LKg02CNI-A1GHagnrLhnp2mI1rb4_BXKuFmSZWvqnyR4I2bVPmzesrgOpthBhyCAAqYEcJMILgQoJ-2hVyAWN8EgR3tRnAlT7CiCGkIDHckVTQCxgXyDu09lo7sFwwX-IWvtJNXxUtEuJowgwR0Gi07-pQbUyL8O2k4SMOySYCeIKbzSXBBa2FGp8fNxuDqSdNoHOl4FQoCq-fdaNIXlT2r7Pn372PefXSAWpvoHtoP4e9GvqemP3LRWr4KjOwhUkknjwejgV3wbIF38mCcNrvRG9pT3ooeFwrkBUbPy6Hvsa0X-DobgXFzw52gCTe48mY1oBWOzmxC0QfjznYcFGZeY9TegPvd8CbgCYWdnIbAH4ITHd0VWtAFM0i08nF8_k2vzAd-T2A0xZdo4zCEmYUea_zQuZPLryIb3eUMnjCQBv4mxtPKYgL7myqfYQ5hFVU-q-JNFW-TCfPWXwZeVPH2PosfFxPriireirJtEt2Vui1bTKjLm6qp86aqy2Tu2v5Liw2NLVW5rnRb9vlYtTjk7dA-5W2fmK7Iijqr86bIy6wuL7WuiifKqob6atS6UVVGCxp7sXZfLuyn5EDu8iqrsi-JxZ6sHFteFJ8nvoh777v4Lu23SVSVWSNBPioFE-zxQ5yq6tf_1aJPP8O3kQ587G48v7uuyeZt9x8WR1bnka6e_6QhPNp86t274p8AAAD__7XDqJc">