<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/139535>139535</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
libclang: Get protocol name of `CXCursor_ObjCCategoryImplDecl`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
piegamesde
</td>
</tr>
</table>
<pre>
Given the following code
```ObjC
@implementation NSDateFormatter (MyInterface)
…
@end
```
and a `CXCursor` pointing to it of kind `CXCursor_ObjCCategoryImplDecl`: How can I get the name of the protocol being implemented here? `clang_getCursorDisplayName` only gives me the interface name, but I also need the protocol name.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMUj1v2zwQ_jXUcoghHfVhDxr82q9SD02HLt0CSjzLTClSIE82_O8LymmbbAUOkAjePV88FaMZHVErqv9EdczUwhcf2tnQqCaKmrLe63v7bK7kgC8EZ2-tvxk3wuA1iXyfqs4f9a1_O6RzmZtptjSRY8XGO3j5flRMnQ-TYqYAArdf7yfHFM5qIIG7NPU_im0u9vUDgZz-CP1gUk6DAlHnhx-HJUQfRJ3D7I3jpIg9GAZ_hp_G6Y9dr0nYQTGNPtxP02yPNNgEKvfwxd9gUA5OMBKvFp2aKKGk_zl49oO30FNi-GOLNFwokJBd4hmscuPrSPygO5o4W3V_URMlfd7ZO4zmShEmWlHNb-crl8AD9AvDCZSNHhyR_sydmjaZbqXeyZ3KqC2assmrHFFml7beyXNRlUWDQy2roiCpcDhv9VDqba2xyEyLOVZ5VWBRlLKUm6HZITZn3G6VbpqySWlPytiNtddp48OYmRgXagu5q2SVWdWTjeuGIDq6wXorENPChDYNPfXLGEWZWxM5_oVhw5Zaa_o1oJT2M_FnXynof3ipbAm2vTDPUci9wE5gNxq-LP1m8JPALlG-f57m4N9oYIHdKjQK7N6dXFv8FQAA___BwPL5">