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

    <tr>
        <th>Summary</th>
        <td>
            [Request] Clang Format config files can import another config
        </td>
    </tr>

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

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

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

<pre>
    We have a common repository containing our clang format style config which we pull into git via a submodule.

At the moment each developer needs to make a symlink of the '.clang-format' file on UNIX, or copy on Windows.

it would be very handy to be able to specify another file so that we can add a tiny '.clang-format' file to each repo that uses the common style.

My thoughts would be to enable the definition of a file path in the `BasedOnStyle` option:
`BasedOnStyle: external/lint/.clang-format`
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0k02PnDwQhH-NubR2BOZjZg4c9kMjvYc3kRJFm6vBDfaucRO7mQn_PjJsstpIuQCCtqvqcaFitKNHbEX9IOqnTC1sKLQv6D0y3wyiw5B1pNf2GcGoK4KCnqaJPAScKVqmsEJPnpX11o9AS4DeKT_CQGFSDJFXh2lisCPcjO0N3BDmxTmwnglGy3C1ChTEpZtILw4PIn8S-f1-vWdggzDRhJ4BVW9A4xUdzRjAI-oITDCp12QtrpOz_hVo2BYJeTxsZu52M0IeYbAOgTx8-_TfdyEfgQL0NK_p1bP1mm7xg7xluNHiNHQIVwwrGOX1miQ7BNU5TI9xxt4OKyhPbDDsGpGAjeKUtlcelNaggK1f_22LaQ-Y0O6Ll4hxi_IGfaP5weD_K7ChZTQc352mjfzuziBoHKy3bMknMGrXmhUbsH7n1OQPKqL-7L-m_UWTA81pXpRvKn9PlPeAPxmDV07Ii7Oehbx8DNXkmW5LfS7PKsO2OBa5rE7HY5OZ9lQMp-I01GXedLJpUJWnbqi6oSrq5nyq68y2MpdVXhayKPOmaA7noZJnXcu-73BouqOocpyUdQfnrtOBwpjZGBdsT9U5P2ZOdejiVmopN1NCytTv0Kb5u24Zo6hyZyPH9x3Ystv-hC_4Y8HIon6Cx63Kl73KbyVO-OJ2pnaaKfCfY9-_Z0twrWGeY6InL0JeRstm6Q49TQmWu_6-3c2BXrBP7Db7UcjLluBXAAAA__9CeTRG">