<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/75719>75719</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format: BreakBeforeBraces option affects IndentExternBlock option
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
d06alexandrov
</td>
</tr>
</table>
<pre>
It was already described in https://github.com/llvm/llvm-project/issues/36620
When you set BreakBeforeBraces to anything that differs from "Custom", it sets IndentExternBlock to "AfterExternBlock" even if you explicitly set IndentExternBlock to something else, e.g. "false".
This behavior is not mentioned in an official documentation (https://clang.llvm.org/docs/ClangFormatStyleOptions.html).
So I think it should be added to the documentation or fixed.
At least clang-format version 14.0.0 and 17.0.6 are affected.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycU8Fu4zoM_Br5QtSw6dipDz4k7QvQ0zv0Ae_MWFSsrSwFEp1N_n4hp7vbLnraiwSQ4nBmMKKU7MkzD6rdq_a5oEWmEAdddeT4Sl7HcCmOQd-GF4HvlIBcZNI30JzGaI-swXqYRM5JNTuFB4WHk5VpOZZjmBUenLv8vB7OMXzjURQebEoLJ4WHpuuwUtWzqnb38_-JPdzCAokF9pHpbc8mRN5HGjmBBCB_k8n6E8hEAtoawzGBiWEGhfi0JMmLUeETWMkwCV68Zi__XIWj37swvmUchbgzwvFDWSECX9iDNSsHvp6dHa2420rnS5gUZr7zYZc4b-XyVGZ0Q2sBy4_6_ptsgiNPdLEhgk3gg8DMXmzwdzPJQzDGjpYc6DAuuUm5DQofPzs9OvKnMntbhnhSeNBhzK4-5fohxJnkVW6O_z3n-VROMjuF_Tuh1wAvkKm_rUZNYXEajgykNessTSb-g0GIYOyV9SdJOwHHlARWOg9m3QsXjimP1JuyKisgr6HellXZAUUGMoZHYV0Wemh03_RU8FBvK9x27aZpimnoeuq7znTj1hjabB_bmlvqe3w0LdZd1xd2wAqbGusOEZu2KbuG-xpNR1RVhnWrNhXPZN0vg4o1dsO23dZ94ejILq25R_zIPGenfS7isGb2uJyS2lTOJkm_gcSK4-HTVLP7Iq5hNf5d7Vc5vD8oluiGv_9Eq6AfAQAA__-4YkNC">