<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/133320>133320</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy] Check request: boost-use-typeindex-pretty-name
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
denzor200
</td>
</tr>
</table>
<pre>
Needs a check that will find not a human-readable print of `typeid(T).name()` and will suggest to change it to `boost::typeindex::type_id<T>().pretty_name()`.
```
const std::map<int, int> values;
std::cout << typeid(values).name() << std::endl; // BAD - prints "St3mapIiiSt4lessIiESaISt4pairIKiiEEE"
std::cout << boost::typeindex::type_id<decltype(values)>().pretty_name() << std::endl; // OK - prints "std::map<int, int, std::less<int>, std::allocator<std::pair<int const, int> > >"
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMU0GPmzwQ_TXDxQIZmwA5cCAkkaKVvu-Qva8MnoBbY1Nstk1_fQWk2eSwbSUja_DMm3nvaYRzqjWIBWx2sNkHYvKdHQuJ5qcdGaVBbeW1AFr-hygdEaTpsPlKfCc8-a60JhdlJDHWE0G6qRcmHFFIUWskw6iMJ_ZCIKX-OqCSwPJXYNvIiB6B5cC2kFIijFyh3NS26DzxljSdMC0StQSQ0tpa54GXwMsFykj88RG-KQm8egV-WFGjYUTvr29PfSKg5XxSeju0bKxxnjgvV6heDMArZTywiswXP5B3oSd0wHdAy3tiYydPgFfAK3Jndst8ovc76V6JRmrgOwLsCOxIduWehKtQjgBjZ897MZyUOvtEo3MndTiL09kng1Dj6UWpw-EAjH02y7-oJLHRc_Q48R-E-xuD_1-eCHyuJXvAmKndXufODy9Ca9sIb0fg1f3nTH5NJ4tjD_bcvlWTR2sDWXC55VsRYBFnCY9jyrZJ0BVUJinSNE4uG5pLVjcZSiri9JLXuKWZCFTBKNtQzjIWx3mcRHUTx1mcJ3GdpTmvM0go9kLpSOv3PrJjGyjnJixizjmjgRY1arfsE2ONFqYNvZLXecTNPhiLuSqsp9ZBQrVy3n3geOX1sokPZZs9qZaVG_HbhIu9q8_h5DC82xyuzoWzc8E06qLzfnCzfotPrfLdVEeN7YEd5363KxxG-wUbD-y4kHDAjjce7wX7FQAA__88LUCU">