<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/62847>62847</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clangd: C++ member var declaration is formatted poorly
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ns-osmolsky
</td>
</tr>
</table>
<pre>
Sublime Text shows a popup that is poorly formatted given the following C++ member variable declaration:
```
ns_event_t *m_eventMsg{nullptr};
```
The syntax above is C++11 and is (nearly) equivalent to `m_eventMsg = nullptr;`. Sublime shows that initialization but with extra line breaks… it thinks that it’s a block.
Here is a screenshot:
![sshot](https://github.com/llvm/llvm-project/assets/63256763/39445fe5-1257-45f8-ae52-74be4d7d5685)
As per the [LSP dev](https://github.com/sublimelsp/LSP-clangd/issues/15), this data comes from `clangd`.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUk8-K4zgQxp-mfCkS7JLlPwcfksmaPczCQM99kOOKrW1Z8kpyurNPv9hJtnthYBkwMpIo1Ve_qk-FoAfL3IA8gjwlaomj840NOxcmZ8LrLelcf2tels7oifE7v0cMo3sLqHB28zJjHFVEHXB2zpsbXpyfVIzc46CvbDGOjBdnjHvTdsAvQEegI048dezxqrxWnWHs-WyUV1E7C-IA6QnS51qkj2_b2vCDr2zjj4hAh-m--SMMUB7tYswcPZQnEMefBt_X7yNjuNmo3lF17sqr-IeuLENl-_UAqLKsvLkB1ch_LfqqDNuI0SEU6UdeBHHCZ2ZxhCLd4xPWndOdj9VRK6P_3krEbon4puOI_B69QqMtY-dZvQb4jaBK4VCgjhhHbV-fL8THVV2v7Dvjzq_7z2X9zn4rRWE4e2YbRhc_WFIG8hi2M3kCqsYY57BeUwvUDjqOS7c_uwmoNeb6_O1m7_7kcwRqVQgcA1BbCJJFWQigVtR5Li8sdxnJcpfLS7VTLGlX5h3nfdnLopJA9WeVh4Az-20qQB6_vnzDnq__KynciZowA7VfX77tzkbZoQdqdQgLr7KyLRN9WaEF7FVUeHYTB7x4N609e4QU6X-oJX0j-lrUKuEmK6q8zEQuRTI2VUaSVVGXVFeqr_NcVKpMpUwpk9STSHRDKYlUUkZClkLsRZeS7KpCXFTdSxKQpzwpbfYryb3zQ7KJbQqq8jIxqmMTnr7zzYa7W4YAeWp0iOEjLOpouHnoF4efmOizf9YZ-DDh3ZXJ4k3zyy3_l-2m-J8AAAD__-qCTOY">