<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/93011>93011</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm/lib/Passes/StandardInstrumentations.cpp: 3 * Function parameter should be passed by const reference
</td>
</tr>
<tr>
<th>Labels</th>
<td>
code-quality,
llvm
</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/lib/Passes/StandardInstrumentations.cpp:1624:27: performance: Function parameter 'Content' should be passed by const reference. [passedByValue]
trunk/llvm/lib/Passes/StandardInstrumentations.cpp:1676:38: performance: Function parameter 'Name' should be passed by const reference. [passedByValue]
trunk/llvm/lib/Passes/StandardInstrumentations.cpp:1961:47: performance: Function parameter 'S' should be passed by const reference. [passedByValue]
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzEkz-L3DwQhz_NuBFnpJFsvy5c-O4wvE0ILKQfy7Nr52TZ0Z-Av33wXiApUixJII3EIDHz8DA_inG5eeYOqmeoXgvKad5CN9lRK1OM23R0l0RpsYI8uSNyEHbf7cz2TUQ6Iuge5CvI72cK2b8BDs59Xc9rGQGHjxQjR8DhkshPFKb_fUwhr-zPzpuPpd130L2q0YDusQHdi53DdQsrectnOWRvz79ip0ArJw4CsHnZfGKfABsR5y27SYws9nPcJMZD2M3HJAJfObC3XAqont9fn49P5DJD9fpXuJsadK__e5j7A638r6HbWoHuzeOyL39OXEydnlrdUsGdalStG1nrtpi7q0KamquRNbNpKt3oWktUcmwby8RcLB1KNLJClK1uVFsqw8qM1JratKR4BCN5pcWVp41yC7diiTFz12qpVOFoZBfvS45ot4mfvmRySzoAEfAFEN8l4pmB0J3F05hvEYx0S0zxR9e0JMfdbykXWgD-0u4DVoscXDentN8jhwPgcFvSnMfSbutPS3CS72H7zDYBDncHJ9pdw7cAAAD__5nETME">