<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/93012>93012</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm/tools/sancov/sancov.cpp: 3 * Function parameter should be passed by const reference
</td>
</tr>
<tr>
<th>Labels</th>
<td>
llvm-tools,
code-quality
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dcb314
</td>
</tr>
</table>
<pre>
Static analyser cppcheck says:
trunk/llvm/tools/sancov/sancov.cpp:1054:60: performance: Function parameter 'FileNames' should be passed by const reference. [passedByValue]
trunk/llvm/tools/sancov/sancov.cpp:450:41: performance: Function parameter 'Path' should be passed by const reference. [passedByValue]
trunk/llvm/tools/sancov/sancov.cpp:870:54: performance: Function parameter 'ObjectFile' should be passed by const reference. [passedByValue]
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8kz-P3CwQhz_NuEG3ggHO54Ji9125fBMpUnoMs2ty2DiAT_K3j-ycck2KVSKlQfwZoWeeH9hSwn0mMqAvoK-NXeuYsvFukEI1Q_Kb-VJtDY7Z2catUGZuWdxI7pUVuxWQZ-BX4O9jzev8CtjH-DYB9jWlWAD7YmeX3n5NTm5ZQJ4F1wrk-ZmDPLOF8i3lyc6O9mW_zq6GNLPFZjtRpcwA2z5E-t9OVABbVsa0Rs8GYosthTwbNubSXCrLdKNMs6MTA335eXrZvtq4EujrH5AqvTMq8TDoZ1vHf8z40u6Mh9HHGD8N38jVXenfkzbeSN_JzjZkRCueZSu44M1opG_ViyCpnbpZf3OSe-U7zVvuBfduaIJBjoprRN4pKflJcNVJ3aHqUIiuHUBxmmyIp93CKeV7E0pZyXSSC2yiHSiW4_Ui7hVP75YQ8D9AdMnT0_fVxlC3fVNfm2yOumG9F1A8hlLLx9011EjmIeFMMsDfyn3AZbPmaMZal-MHYQ_Y30Md1-Hk0vQR-UG65LQnBdgfne9ER_M_AgAA__8ygTjC">