<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/75231>75231</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Ignore `$schema` key in Clang Format file
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
colin-grant-work
</td>
</tr>
</table>
<pre>
As there is now a [JSON schema file](https://json.schemastore.org/clang-format.json) for Clang Format configuration, it is convenient to be able to add `$schema: https://json.schemastore.org/clang-format.json` to a configuration file to trigger code intelligence integration, e.g. in VSCode. Doing so, however, results in an error print and exit from Clang Format:
```
error: unknown key '$schema'
```
1. Perhaps unknown keys should be a warning, rather than an error (or optionally so)
2. Since that particular key has a specific function, perhaps it should be exempted from the check for extraneous keys.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycU0Fv8ygQ_TX4MooF2E6cgw_9GkXaPeyuVGnvGI8xDQELxk3771eQVm2kPX2ShcEzfrz39EalZI1HHFj3i3WnSm20hDjo4Kzfmag87W4hXqoxTB_DUwJaMCLYBD7cQAHrfv358vdfkPSCVwWzdci6E5P9QrQm1jwxeWby_JqCr-89iULEOkTD5Fk75c1uDvGqqM49TB5hDhGecwHOpQA6-NmaLSqyueMZLGUCOvg39BY9AQUYEdToMG_VNAHbcybb-42seYLfpLPnBfCRQlGZv1O0xmAEHSYE6wmdswa9vh_MN2GsTQ3Ww78vz2HCGk7BegMp5NoSbviGMW8jps1Ryp3KA8YYIqzRegLlJ8B3SzDHcH1wJ2viJ8a_1j3_fMqxYGT9m7_4cPNwwQ9g8vDtjTz874_3VdTwD8ZFreknQIK0hM1NxXO4qeitN4W_yukAWtQPAUz2IUJYsxfKuY8i-3jHlzW82OwXLYpgVZGs3pyKheaiEihIK2o7Ww3z5vWXn-snKUs_qOA7XlfC6e4RLQh6QX0pecJ3ispj2FIRUFfT0EzH5qgqHMSBy5bvedtVyzD3qhftOItONfM4973QXOB8PBykGDkXlR0kl42QQoq-aXlXz33TdtNhP41CoNhr1nK8Kutq596uOViVTWnD4dDJRlROjehSGTYpS96YlHnu4pD7d-NmEmu5s4nSNwJZcjj8YXyI-BjtPS9eWf84Mjmh1Rbd8Jh7Y2nZxlqHK5PnjP752q0xvKImJs-FbGLyXPj-FwAA__8vIVr_">