<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/84359>84359</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format: allow updating inherited lists
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
alexolog
</td>
</tr>
</table>
<pre>
If I have this in my root `.clang-tidy`:
```
WhitespaceSensitiveMacros: [
'MACRO1',
'MACRO2',
'MACRO3',
]
```
and I want to add a couple more macros to the list in a subdirectory, I need to write:
```
BasedOnStyle: InheritParentConfig
# The list entries from the inherited style need to be repeated here
WhitespaceSensitiveMacros: [
'MACRO1',
'MACRO2',
'MACRO3',
'MACRO4',
'MACRO5',
]
```
which is a maintenance pain in the posterior.
I would like the list entries to be inherited and only add additional ones, like this:
```
BasedOnStyle: InheritParentConfig
# in addition to the inherited
WhitespaceSensitiveMacros: [
'MACRO4',
'MACRO5',
]
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0lEFv8zYMhn-NfCEaKLJdxwcf0hQBcig6rAN2pi3G5iZLhiQ3y78f5KRNN2RAMXwfEMQ2RVKv3kcghsC9JWpE-STK5wznODjfoKG_nHF91jp9bg5HOMCA7wRx4ABsYTyDdy6CeJSrzqDtHyLrs3iUIt8K-SzkNr1ffsvn7wNHChN29EY2cOR3esHOuyDyLaS9lywAoaqX7e7X17VQlVC7f4fV_XD-NSzK57sS0Go4wAlthOgAtQaEzs2TIRidJxgXPWktDgSGQ0wnRQhzq9lTF50_C7WDA1ginfJOniP914mfMJB-tW_xbFIOHOxAnuMv6MnGnbNH7q91l3-Vw28f-5KNninA0btxUcOXYtIQUr9PBS2Bp4kwrQzk6SeafdfrW3JxP1x-h8xp4G4ADoAwIttIFm1HMCHbhCAZMLkQybPzq6-mHeDkZqPB8J90o_bh3sWfm3XpAjhrzhf2WnNkZ9GAsxQS2GsXDj8QabpB150-btanoP8Hq7hL5Vs-Z7rJdZ3XmFGzrmS9yatc1tnQFJtH3eUFruW6pYqkLutClqXs6rVUsioybpRUhcxltd4UG1Wv1kWF6tgd27qT5QaVKCSNyGZlzPu4cr7POISZmk2Rl3VmsCUTlhmj1GVeHJ0fMQql0tTxTSp7aOc-iEImiOHWKHI01PyjKt8CGuNOME8aI9v-C-WlOpu9aYYYp4Wl2gu17zkOc7vq3CjUPjW_Ph4m7_6gLgq1XyQHofaL6r8DAAD__0s5hGo">