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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] qualified names breaks AfterFunctionDefinitionName
        </td>
    </tr>

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

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

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

<pre>
    It seems that using a qualified name to define a function causes problems with `AfterFunctionDefinitionName: true`:
```
/*
.clang-format contents:
BasedOnStyle: LLVM
SpaceBeforeParens: Custom
SpaceBeforeParensOptions:
  AfterFunctionDefinitionName: true
*/

// space before (, expected
void fn (int) {}      // void fn (int) {}
// no space before (, unexpected
void sue::fn (int) {} // void sue::fn(int) {}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMU11vnDAQ_DXmZZWT8fFxPPBwl9NJldKmUqS-27CAW2NTe502_74yXJukSqoiJBbtzswOjGUIerSILStPrDxnMtLkfBu9lTRJmynXP7UfCALiHIAmSRCDtiNI-B6l0YPGHqycEchBj4O2CBKGaDvSzkInY8AAi3fKJIIfmiZgFT8OhP5ynTonmE7VJzkj2x-BfERWcbY_Mn5m_Jjq7d5exYWJa2vXGWnHm8H5WRJ0zhJaCn-QJxmwv7cP9GRW5ru7Lx-3zsMiOzzh4Dx-lh5twsBtDOTmdwbul7TjMzfA_9i4brwuvdXPHi4QkgioVQWYODBxC_hzwY6w3wYfne5hsKmpLTHRAKtPrD7Del1p3ht6pWXdm3LRviEYYnLA9se3lF-Kvhh8R_z3v8v6dt83-0Zm2Oa14E29L_Mim1pVlQNWFTZ13dW1EornQy5Ur_KqOGDVZ7oVXBS8zou8yvOy2ClRdsMgZcOxrouCs4LjLLXZGfM475wfMx1CxLY5HATPjFRowppwIV7GhQmRMu_bBLtRcQys4EYHCs9EpMmsp-MVsDz_Ff8AyqP8Fv4ViSx6005Eyxqh9RuOmqaodp2bmbgkzevjZvHuK3bExGV1Epi4bGYeW_ErAAD__6BXJVc">