<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58655>58655</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Add an option to ignore unknown format options.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
H-G-Hristov
</td>
</tr>
</table>
<pre>
When using a newer `clang-format` format options in a `.clang-format` configuration with an older `clang-format` an error will be reported which in my case breaks my build system.
I can use the CLI option `--Wno-error=unknown` to turn the error to warnings but I need to also add code to ignore them:
> --Wno-error=<value> - If set don't error out on the specified warning type.
=unknown - If set, unknown format options are only warned about.
I propose a CLI option to completely ignore any unknown format options something like `--Wno-error=ignore-unknown`.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx1U0tzmzAQ_jVw2YHBwoA5cHDtpvFM7zkLWEC1kBhJ2ON_3xU4dZI6GhB6rPZ7rKh1e6veBlQwW6F64KDwigaCPGkkV33UaTNyR1NYR6AnJ7SyIBQF03r8Na7RqhP9bLiPg6twA3AFWrbP09IeGqMNRUoJNYLBSRuHLVwH0QweZ7xBwy1CbZCfrZ_Ws5At2Jt1OMZBcgyS_YlivAoENyAcfp_uTD1mFL0pHS0wQXqc1Vnpq_LgToObjVqOrCxo5cqNIi8soTg4kSHEhZa5tNS1LQls0S-IXmmzwI1BuoeVxr1PfwJ8Rg3Sw4XLGZetR4vg1IFFB61WASvcnYYmaL3yshM2ohPekJUYuNuEd9U-xUMSPGsRvStGwA7wHvmlmpyEaCVvCwZB8ZoYxB8lnWAyetLkL__oLvnQ6HGS6JBO3y3h6vYdkNUjusGrkOKM_xdnzRA9ahSHWG3yPC-TLNtmYVulbZmWPHTCSayC7MenC5UdYU8l8hfuH787qeeE4nA2shqcmywVMWAv9PR0Z-c6Jl00kfLy_onIgT_YkI8vwtoZLQ2yXZ5l4VDVyErelsmWd92OZxkmZZGmuxTbImmaXR5KXqO0nnDAGP1ksKSgMXEORcUSxjYJK9hmQ0rjbZYWBTbIWLZlJSuCbYIjFzL2PGJt-tBUC6V67i1tSmGdfWxya0k1Lv74_Hx2gzbVa_QrejUUqi_hAl8t9P8C8mVRgQ">