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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Access specifier not formatted correctly when using Macros
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          thomas-bc
      </td>
    </tr>
</table>

<pre>
    I am using clang-format on a project which, for testing reasons, define the following macros:

```
#define PROTECTED protected
#define PRIVATE private 
```

I am trying to get clang-format to format correctly those macros but it doesn't seem to be working correctly.
Using configuration such as 
```
Macros:
- PRIVATE=private
```
but also `WhitespaceSensitiveMacros` or `TypenameMacros` did not work. The output formatting is not correct, whitespaces and indentations are not correctly represented. If I change my sources to using the default access specifier (instead of the MACROs), it works correctly.

Am I using the configuration wrong here? Or is there something to be done so that these macros are correctly processed?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxslM-PqzYQx_8acxklApOEzYFDutlIOTxt9Zq2Z2MP2C3YyDNslP--MmG72bcrRQ428-sz88WKyHUesRbb38T2mKmJbYg12zAoWjU6a4K51WdQA0zkfAe6V75btSEOiiF4UDDG8A9qhqt12gr5DG2IwEiczCMqCp7SscHWeQS2CG3o-3BN7welYyBRHkR-FPn7usuX330ry8X395-vl5fny8sxJWXUjOaryfmvw-UFxujeFCN8H3FeZyqOt1QHB-iQP9NxgOVJhxhRc38DtoFwqRqaicExmIDkhawYCHFIbg3CNcR_5369u67vSf-8dzH41nVTVOyCB5q0BUXf1_rjc4dW74SiPC6M37ql2lRPAcQu_9s6RhqVxj_Qk2P3hkvUXQ4hJpPLbUSvhodz4wz4wDPIGi4WIUw8Trz0ZJ6uo9lkYUxDvv6fikB5A84b9DxjEqiIj_b9DSKOEQk9o1nDuYUzaKt8hzDcgMIUUxgOi_SScgy2auoZlNZIBDSidq3DCEI-OU-MykBoZ9Mfh-efryTkPtXl7iD0ZR739TDA-SHL5_FcY_AdWIwoyhO8xoTNaQsUBmS76KdBMMGnQ2Cb5GPxQyoJ_QN7jCGVj0aUp8zUpdmXe5VhXVR5Vez25abMbP2Uq6diUxpdmCrPi31VmFzrtqi2SlW7ps1cLXO5yWW-lcVGynJdFOW-3O0a0xTFRutCbHIclOvXff82rEPsMkc0Yf2UV5td1qsGe5o_fCkfhS-kTFdBrJPbqpk6Epu8d8T0EYgd9_Ol8clxe4TDr4NJA18kg-ahB1eLfmn5XXTZFPvaMo-z2OVJyFPn2E7NWodByFPKvfytljtHyNNMREKeZqj_AgAA___Nf5hA">