<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/108556>108556</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-format -n xyz.json -> warning: code should be clang-formatted [-Wclang-format-violations]
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          skelutten
      </td>
    </tr>
</table>

<pre>
    clang-format -i xyz.json ->  silent and no changes done
clang-format -n xyz.json -> warning: code should be clang-formatted [-Wclang-format-violations]

xyz.json:1.1 warning: code should be clang-formatted [-Wclang-format-violations]
{

Tested Clang 12.0.0 to Clang 18.1.8
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8kc-O2yAQxp9mfEFGMJiNOXBImuYJKvUMZtZmS2BlcNrt01feP2rac9ULCKTf_ObT52qNcyayoE-gz53b2lJWW79R2lqj3PkSXuyUXJ77x7JeXWN9ZD9efvKnWjLrQX1mrMZEuTGXA8uFTYvLM1UWSiYQZxDHP_H8F_7drTnmGdSRTSUQq0vZUmCe2D3XKDDQp_7r_Wd_iyW5FkuuoM9vsrfzQwHqKLn8547D6V72heqOftopJpELLlgrH--RSz52wapglHEdWXnAB1Q4DKJbLGrv9WDM8CiN1sK7iUbhg5nEODlvTBctChyEkUoqIZTm8jA4VCQVInqNIwyCri4mntLtyss6d7HWjawUo9YPXXKeUn3tF_E-GCDuja9253q_zRUGkWJt9fekFlsi-5_667Y12aW15wrqCHgBvMyxLZvnU7kCXvat3q_-eS1PNDXAy2vYCnh5z3uz-CsAAP__cfHp7A">