<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/113585>113585</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Replace CountAttributedType::getAttributeName() with something that returns the actually spelling in the source code
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang:bounds-safety
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
delcypher
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
delcypher
</td>
</tr>
</table>
<pre>
In https://github.com/llvm/llvm-project/pull/106321 `CountAttributedType::getAttributeName()` will be introduced that gets the name of an attribute (with or without a macro prefix).
This method is not really ideal. The method doesn't actually return the spelling of the attribute used in the source code (e.g. they could be using their own macro).
This issue tracks replacing CountAttributedType::getAttributeName() with something better. Unfortunately I don't think we can fix this until #113582 is fixed because we would need a way to find the TypeLoc for an attribute in order to determine how it is spelt in the user's code.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVE1vqzoQ_TVmMyoCGxKyYJH3qkiVnt7iqvcHGHsA3zo2ssel_Psrk6bV_dh0kVgMM8M5Z85Yxmgmh9iz9h_GuUartmXGwDhn7WMhE80-9B_hYvB6658czERLZOLM-IXxy2RoTkOp_JXxi7Wv9-NhCf4HKmL8siRrGb_U1UHwGtih-tcnR2eiYIZEqJ-3BXM_cZ7wM_y_vCLjHeMndqhgNdbCgGAcBa-TQg00S4IJKQLNCE5eEfwI0oG8twDGu9XQDD5APn0ikHCVKnhYAo7mjfFTyapHVp1v_8-ziXBFmr0GE8F5goDS2g2MRmlLeJ7x_l57jI7xI4FUlPakgJSC2_HEBa01bsqY8vMnqBRRg3nP8ikoBOX1DhbLqczxDZRPVmfCKeYmNKMJ4Fd3Q_9X2CbGhEBBqpcIARcrVS79otiwKwXRZ5a5fkAiDCV8d6MPlJwktBs8gfY38jnrBVYEJR2M5i0HIiRHxgLjoq5F2_Es5mjeMFNSMkXMBevO0SFqkLDKDcjDaJzelck4__MKRh9-nalx4IPGkLM1EoarcQizX8FQ_kwWnu76ppj9fIy7wmWhe6FP4iQL7OsjPx27hlenYu4r0eiad4eh4V0t20oMApuR163Qou0OdWF6XvGmzr9WHJpTWaGWx7HhoxraUbcdayq8SmPL7P3Sh6nYx9Hv9NvCygFtfN80ZaWbmDgPPjkdH6Ickbb3rQv9vjxDmiJrKmsixc-WZMhi_20fLX55sL_NdV-fm2FvG_Th4g_r_mnSIgXbf_kC2KWI-Qq4qfHa858BAAD__3C7hZQ">