<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/84510>84510</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy] Support for custom .clang-tidy files when using InheritParentConfig
</td>
</tr>
<tr>
<th>Labels</th>
<td>
enhancement,
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
PiotrZSL
</td>
</tr>
</table>
<pre>
As a user I want to have following configuration:
```
project/.clang-tidy-tests:
Checks: "-*,bugprone-*"
project/folder-1/.clang-tidy-tests:
Checks: "performance-*"
InheritParentConfig: ../.clang-tidy-tests
```
Basically i should be able to have multiple .clang-tidy configs (for different CI jobs).
```
InheritParentConfig: true // search for .clang-tidy in every parent directory
InheritParentConfig: false // no search for .clang-tidy
InheritParentConfig: ../.clang-tidy-tests // load ../.clang-tidy-tests file, and then follow InheritParentConfig rule in that file
InheritParentConfig: .clang-tidy-tests // search for .clang-tidy-tests in every parent directory
```
Basically if path contain separator, load if exists, if does not contain separator, assume that is different file name
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMVMFu4yAQ_Rp8GcWyiePGBx_aVJEq7aFSb3vDZrDpYrBgaDd_v8JJ21RK0o0irJGYx7zH44kQ9GARW7Z5YJvHTEQanW-ftSP_--VX1jl5aO8DCIgBPTzBu7AE5GAUbwjKGePetR2gd1bpIXpB2lm2vmfFIys-1ro4_Zdy9u4Ve2J8n_dG2GFFWh5WhIHCZ-NuxP5PKoFxvmL8nvFdF4fZO4vHkp-f8AWpnJHoV-X_o8_olfOTsP135Cc7otf0LDxa2i30UkeeX4S-RPS4Poige2HMATSE0UUjoUMQncFPGadoSM8G4Qz3pGgAxrfKeZBaKUyjwO4JXl0XGG_yGypfGZ98RGB8z_geAgrfj5DQzw_WFvAN_QHmpRek9tiT84ebwEqY8Ils3RXwmxBXtP0ANU7Ia1uUNsj4DoSVQCPakzPhwkngo8FEkkZBx8ab931tnMsET3t-0PAnoyiYBY3JAiS0hYCz8IKcTxQXGbQC_KuT8fguFdJhAOvocosIIU54JKzDmZUSe7BiOkkAx18m27Vs1o3IsC3viqYpq7qus7Fdb6qNWqNSvG7KpulkKdR2s617Vauy5jLTLS94VayLbVmXd1WV1zWXpeC8rsW2bqqSVQVOQpvcmLcpd37IdAgR2221KYvMiA5NWKKIc7RjepMTWkpvku8Y52dG4jzFlW8T0KqLQ2BVYZIiX9CkySzBdta2eYSXOM_O03JzfQzkpm_2T5oEeE8miiFF2wVjZNGbdiSal0xZ_DBoGmOX925ifJ9GOH1WX9m0UA2M7xe2_wIAAP__u57ElQ">