<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/107381>107381</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy] Print instantiation stack
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
carlosgalvezp
</td>
</tr>
</table>
<pre>
Often times we have core, templated library functions that are used across the project. Sometimes these functions are used incorrectly by the clients, leading to clang-tidy warnings in the library code. It is however not possible to quickly pinpoint where in the client code the mistakes were made.
This could be solved by printing the instantiation stack of where the error comes from, similar to how it's done for Clang compiler errors.
I opened a discussion here, with no comments so far:
https://discourse.llvm.org/t/print-template-instantiation-stack-on-warnings/81046
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsk92Ou0YMxZ8GbiwiGGCTXHDR7irSXrVS-wLD4IC7w5iOTaL06ashyX5I_xvQIM7Px8djK0JjQOyy9vesfcvtqhPHztnoWUbrL_jfkvc83Lo_zooBlGYUuCJM9oLgOGJmXkFxXrxVHMBTH228wXkNTomDgE5WwUaEVXAA6yJL-oiwRP4Hne7gL57xztUJBb9pP2UUHMeITv0N-tsmd54wqKTyHu1AYQRlcN6GsVAabnC1MVAYBShsgqc1xwPu4F2BBCa-4gUjBFZYWIR6jwnz70ruw99gobAwBYXrhBGfpHvpDbSdZxK1H1suEWG2A-6y8i0rf7s__55IwPHqB-gRhP0Fh9TFEino5ntKaFEblGzqHESt-wA-P-qmHzBGjuA45XSOPKfGhWbyNibHE1-BNDN7gYEDwpkjvKYwkmQhj_FOkB_W3oEXDGkuMJC4VSRVTzUT_ko6QeBEmFPWIAxnG7P6oZ5UF0knc8rMKQF4jYI77y_zjuOYmZNm5rT1WTzvSPGj02LrtOBQPMeVmdOhKpuXfOjq4VgfbY5dtTdtW7eHpsqn7qWp-mrf2Opg-_Z4qCpX99bWx9Yeq5dD7XLqTGma8li2VVWXTbXDqraIh71rm_PQtHXWlDhb8p9GcxJZsavKfX2ocm979LJthDFfFyozJm1I7JKq6NdRsqb0JCpfHCX12y59k7Vv8GdK4Fcjztfou58xjqTT2u9cmvApgR-v4rEvmTltblNQD8OXzvwfAAD__4laTK4">