<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/91220>91220</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            lldb/source/Breakpoint/BreakpointIDList.cpp:262: Prefer const reference for range variables
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            lldb,
            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:

lldb/source/Breakpoint/BreakpointIDList.cpp:262:26: performance: Range variable 'name' should be declared as const reference. [iterateByValue]

Source code is

        for (std::string name : names_found) {


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyckj-L3DAQxT_NuBFnrPG_3ULFbhZDIEXIQdogS2NbOa3laOSD_fZBzkHuUsbFWDOCp_f0k2Z280qkoL1Ceyv0npYQlTVjLZtiDPahnpNOzgi9av9gisJsm1nIvAjWD4b6AtUNqrfqvR0BBw57NAQ4XCPply24NX1oPt--OE6l2TaoL9jhUaG-iI3iFOJdr4Zy-02vM4lXHZ0ePQnAftV3AuwFL2H3VowkLBmvI1mhWZiwchKRJoq0GioFtFeXKOpE18d37XeC9vbe7_NhVJhgSTh-vyPevilEAXjiZHPU-sIpunUW2YfIFvOCf0xhXy3gWUB_fa9SWFXbc33WBSnZy7aqOillsaip6VvqTv2JrLWmHjvZyybPpDnJpu0Lp7DCpmqrTjZ1K6sSG2ubdjr309hNmnpoKrpr50vvX-9liHPhmHdSZ4lYFV6P5PmgiviHCgJ-AsSc9enXrr1Ljzxsb0VUWeNp3GeGpvKOE_9VTS55Uv8PVnw9ePzL5rjY-IEvF3v0aklpO54VDoDD7NKyj6UJd8Ahe3r7PW0x_CSTTz9iM-BwJP8dAAD__3-J480">