<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/95072>95072</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format incorretly interprets C++ file as Objective-C
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
uleysky
</td>
</tr>
</table>
<pre>
Minimal example test.h:
```c++
[this,a=a]() -> struct S { return {}; }
```
.clang-format:
```
---
Language: Cpp
```
Output of clang-format --style=file test.h:
Configuration file(s) do(es) not support Objective-C: /tmp/.clang-format
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsUsGOnDAM_RpziRgFB5aZQw47Qzm12kO_IICBtIGgxFl1_r5iWKk72iJLtlHs5_f0TIx2Wok0VFeomswknn3QydE9_r5nnR_u-odd7WKcoD9m2RwJpsinGdQryAbkK7zII3rA6x7H3-rKs42ANwOqMVA1gGfAi8hBfRORQ-pZ_BRQX0UgTmHdS6gbUFexp-fVR3vqnVmnfPRhMfwV_2jzPBdH9d2sUzITgXoVH99t2_479JZ4Syz8KD5DiDyPfHcEqhntV-I3v452SsGw9avYXwCe485x8IBnepSrZxHTtvnA4q37RT3bd8pv-02ALS8bYPvM67E7G7QaLupiMtJFXZxlXV6UzGZdGGnk0J1HVZZyKJQZS3mRdS0rWXRD32VWo8RSvhSFVBILeTI1EfZU1FVpqBsRSkmLse7k3Pty8mHKbIyJ9KWSNWbOdOTiww6IT3ch7gYJeh_LuzRFKKWzkeO_RWzZkX6S0K69D4HY3YVdmcIWiKO4HVZ5iCZM_KxMloLTM_MWd6GxBWwny3PqTr1fANsd7CPlW_D7HGD7oBAB24PFu8a_AQAA___wrNrK">