<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/87255>87255</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp:35: Pointless copy of vector ?
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dcb314
</td>
</tr>
</table>
<pre>
Static analyser cppcheck says:
clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp:35:44: performance: Function parameter 'Names' should be passed by const reference. [passedByValue]
Source code is
MangledSymbol(const std::string &ParentName, uint8_t Type, uint8_t Binding,
std::vector<std::string> Names)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysUr2O2zwQfJpVszhDIilbLlTYvk_AVyQ4wEHagD9rmQlFCvwxoLcPZPuSS-o0JBbLnZ0ZjkzJjp6oh_YI7WslS76G2ButeCMqFczSn7PMVqP00i2JIup51lfSPzDJJQE_QP0K9fPUTvoR2OCsAjYMMfhM3gAb_veZ4kVqOueihuJ1tsGnU_CpTBQ3ep6BH3gL_CAE8APOFC8hTtJrWsv3CZxllBNlighs91lOlIDtMF1DcQYV4SxTIoNqQR18yhjpQpG8pg1Ce3x0j8tX6QpB-_qR-jmUqAl1MIQ2fewgIn6SfnRkzsukggPWPdBTNqsB_JBytH5EYNs3GcnnlRmwExbrc_ct45dl_qM-Wm_s6tTpueIX0o10DhH46S9s4P_hU-_-MVOZnps938uK-mbXNPuua-ttde1NZwRXesvlVpGSOyOaS93ytjaqqS8Nq2zPaiZqUTfNljWi3XSsYx1vtpIbIXaiBlHTJK3bOHebNiGOlU2pUN_tWNtWTipy6Z4Yxp4_ztbwxH59_6LKmEDUzqacfiNkmx31_yAg-Basz45SQh3mBcMFH6Yh8KEq0fXXnOd7MtkAbBhtvha10WFa97rb-_Uyx_CddAY23NUlYMNd4M8AAAD__1_w_H4">