<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/91219>91219</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
lldb/source/Breakpoint/Breakpoint.cpp:888: Prefer const reference for range variables
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dcb314
</td>
</tr>
</table>
<pre>
Static analyser cppcheck says:
lldb/source/Breakpoint/Breakpoint.cpp:888:26: performance: Range variable 'name' should be declared as const reference. [iterateByValue]
Source code is
for (std::string name : m_name_list) {
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycks1u5CoQhZ-mvEGxMD_d9oJFtyKvr26k2UZlKNtMsLEAR-q3H9nJaJJZDgugBCW-cw6Ys59WIgP6Dvq5wr3MMRlnB9moaojuYV4KFm8ZrhgemRKz22Znsm8s4yODvAF_Bv45h-AGEH2Oe7IEor8nwrct-rV8K2q7bSBvbduCvIkLyBvbKI0xLbhaOsr_cZ2IvWPyOARiIK4rLgTiyvIc9-DYQMyRDZjIMczMxjUXlmikRKulmoG--0IJC90fPzDsBPr5K-nLichsdMR8_nrCPsYYEwPR5uIOjfKWS_LrxA4MdhAur8f2NfhcQHQMrveP9soZ6TrZYUWmuTaac901spqNpVFpKfWI3F7RdVaP6kLqIqXiTTuqyhvBheKaXxolGy1r7UgoLduL4JI7oUBxWtCHOoT3pY5pqnzOO5muEU1XBRwo5N9BJnNcehr2KYPiB2X-01Z8CWT-JSz23-nx336fbqVvmeVqT8HMpWznJxE9iH7yZd6H2sYFRH_QfC5PW4o_yR7vnooyiP4U9SsAAP__u5PUbw">