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

    <tr>
        <th>Summary</th>
        <td>
            clang-format: Bad indention in struct without access modifiers
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    We use `IndentAccessModifiers: true` option, what work nice in classes. But it causes us problems in structs. If some struct doesn't contain any access modifier, clang-format still adds indentation for members.

Example:
```
struct X
{
    int a;
    int b;
};
```

will be formatted as
```
struct X
{
        int a;
        int b;
};
```

It's possible to don't add extra indention in structs without any access modifier?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJydk8GSmzAMhp8GLpplAANJDhySppnJIde2V9lWErcGZ5Bpdt--ImF3u51ctozH2JL4_VkSOtiX9jvByARJk-97S31cG0PMh2Dd0dHAiVpDHEYSP4RLdKFPyi9wPWOEaxh-Qe8MgevBeGQmzmAzRnARDIoqizRchqA9dTxFsUiZKFH7I3DoaDaADcQivJDvQh9RIrF_AbyhQDezTAfLMf3p6RiGTgA4Ou8BrZ20J3ac-EC80FGnhT5L8m2Sr-_z12fsLp7kRrO1yedx284oP2bnYnNfgDyuj4CJ-sei3yzJYvu-_qh6n68TqCa4g0eygPxZiMcg_wGzj5JpqUtgdlIZiEHyf8--5BLoOQ44J3RK53vZ4OriOUh9HxVH7VLbKrtSK0yji57av2s1tdEG7SPZd9WPipyOg2_PMV6mJkzKnYyThI46M6GTjfe_X19P0mQ_ycjFdo55JJZFXSml0nNbLG2ua9XYRhltNJZKITWrWptc2QIp9ajJc5vUm6Tepq4t87LMVVHky7KuqmxVLYpiqcumMarSxyqpcurQ-Ww6OAvDKR3aG4MeTyxO71g6_M0pv4U79USv-jjKbYf2GzIeDumNtr2h_gHmlBpr">