<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/114515>114515</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-tidy check bugprone-suspicious-include option to define header file suffixes
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ThomasHuetsch
</td>
</tr>
</table>
<pre>
We have some files that are automatically generated and contain parts of the implementation. Unfortunately, they have the extension that we don't want to add to the HeaderFileExtensions (example: widget_ui.cpp, classlib_i.c). However, it would be possible to recognize them by their suffix.
It would be nice if the check was extended to define suffixes and prefixes or even regular expressions for header file names.
e.g.
HeaderFileSuffixes: '_i;_ui'
HeaderFileRegex: '_i$;_ui$
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcUk2TnDgM_TXmomoKDPTHgcPMznbNXnc3lWOXsQUoMTZly_2RX5-C7klPckHl4klP7z2pGGlwiK1oXkXzlqnEow_t_6OfVHxPyFGPWefNrf2KMKozQvQTQk8WI_CoGFRAUIn9pJi0svYGAzoMitGAcga0d6zIwawCR_A98IhA02xxQseKybscvrjeB05OMdqbkH8toNudb4HjldFF8u5OeUEw3gm5Y7gox8AelDFLWcDvqAyGI1n8-6MtgpB7vKqFVVQvcCEzIJ8S5XqeFzptVYyWuhPlWshDDu_-gmcMyz9iuPhkDXQIs4-ROosLV0DtB0c_1hUn6G5LpQAx9T1dc1G8ieLl_v3n0whHGoHuNugR9Xe4qHhXaHAVYbAnh485GFcX54D3hw-AZ3QQcEhWBcDrHDDeRfY-wLiqXwMCpyaMvy2C-fB4P13678GzGCPk7kSiej0lEnL3J_JfHPD6hMn6A1lnpq3MoTqoDNtyVxV1LavikI3tDk1ZHXrdKyzr5lDsddOXe4NFsWuabVNl1MpC1mVZlMVWNsUh326LquuLPeK2MU2vRV3gpMjm1p6n3IchoxgTtmVZN2WTWdWhjev5SqmtcsOGydyElMs5h3bp2nRpiKIuLEWOzzlMbLF99jzi6NIwB-9wE1OcSZNPcUNO22QQ_MzrFf4K6bPdH4FlKdh2ZJ4XS4U8CnkciMfU5dpPQh6XBR5lMwf_DTULeVxVRSGPD2HnVv4MAAD__30OORA">