<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/122291>122291</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Clang-tidy: False positive readability-redundant-inline-specifier
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
joto
</td>
</tr>
</table>
<pre>
clang-tidy shows "readability-redundant-inline-specifier" messages for methods defined outside the class in a header file. But it should not do that, because it violates the one-definition-rule. Usually those definitions would be in a cpp file not a header file, but sometimes they are not, in a header-only library for instance.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMkkFu4zAMRU8jbwgHthw39cKLtoPcYA5AWXTMQpYCkUrh2w_sFsjMblZakPzvf3yhCN8i0Wj6d9P_qrDokvL4mTRVLvltnALGW63sN5AlfQkYazOhR8eBdasz-RI9Rq05Bo5Uy50mnpmysRZWEsEbCcwpw0q6JC_gaeZIHlJRYU-gC8EUUAQ4AsJC6CnDzIFO8F4UWHd0CR5iUvAJdEE19gMcTViE9oUHp4BKcoilSPUBYeUU61x2pd9SMIQNdElC8BwLfB3ajr7x0_1-sA_YP24OZFGQtJLy-g3bAPOxu0__8l-nGDYI7DLm7YjPURTjRKfKj50fugErGttL93Lu-q7pqmVsJnfprRvc_NpPl3ZuLy057FzfWsSX4VzxaBvbN20ztH3zarvT1Ext4-euxX5-Hdxszg2tyOEUwmM9pXyrWKTQ2Fprh7YK6CjI0bW1z2aNtXv3edyvalduYs5NYFF56ihroPHjedO9wRWDENyTsPKD4P--RVVyGBfVu5juzdirsdcb61LcaUqrsded-PPU95w-aVJjr0cMMfb6k-Qx2j8BAAD__7dM73A">