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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] 15.0 FixNamespaceComment does not add comment in case of single lambda
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    The error seems to occur when a namespace surrounds a single named lambda, regardless of the contents of the lambda.

````
namespace foo {
auto bar = [] {
int should;
int trigger;
int namespace;
int comment;
};
}

````

I would expect to see `} // namespace foo`, but the result with --style=LLVM is:
````
namespace foo {
auto bar = [] {
  int should;
  int trigger;
  int namespace;
  int comment;
};
}

````
It appears that this is being tagged as a short namespace.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysk09v2zgQxT8NdRnYkEjr30GHTQwDAbJ7WvROkWOJBUUanFGdfPtCUhLHbdFLCxi09Iai3vw0TxO5ISB2onwQ5THTM48xdUPkEANmfbSv3f8jAqYUExDiRMARojFzguuIATQEPSFdtEGgOaU4B0uggVwYPK5FC15PvdVCPkLCQSfrkQjiGXhEMDEwBv643_buRX4U-T9va5Xffqtye-c5RhD1wybrmSP0OoFQR9hauhVdYKAxzt4K9Uni5IYB0532cfydauI0YeAPTdTHu-vfOt7WJ7guBgBfLmh4QUmIsGyqjyDkScgT3PW2lOQj9DOvcBLS7BmujkfY7YhfPQp1fH7-8i84Euqv8gL4BbFN_JHZpv5MbdP_iNsTg75cUCcCHvVCwRE4gh5dGID1MKAFvU7cGNMnE_vMdsq2qtUZdkXVtAfV1kWZjZ0p6wKLwtZV0ZeVbFSTa9u20pyxUG1eZ66TuVR5XZRFdWhUuZeqVZVUbW103remEYccJ-383vtv0z6mIXNEM3aVahqZed2jpzVSUga8wloUUi4JS93yzK6fBxKH3Dtiup3Cjv2aReN1GHbnmCbNy0cpyn0OJ_fy33t3jxtTsBEJQmTQ1r6DBhfAaMIlUW8x3EKVzcl3I_NlHZV12gbH49zvTZyEPC0-3v52lxS_omEhT6t7EvK0dvc9AAD__5ivRKY">