| Issue |
84359
|
| Summary |
clang-format: allow updating inherited lists
|
| Labels |
clang-format
|
| Assignees |
|
| Reporter |
alexolog
|
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',
]
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs