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

    <tr>
        <th>Summary</th>
        <td>
            clang/lib/Format/Format.cpp:3581: vector copy problem ?
        </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/Format/Format.cpp:3581:49: performance: Function parameter 'Ranges' should be passed by const reference. [passedByValue]

Source code is

 std::vector<tooling::Range> Ranges,

This might be worth using a constant reference on.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUksuS2yoQhp8GbbpGJS6ypAULe3z0AGdS2QNqSyQIKEBO6e1TsmcSb7Ph1nTz_fytcrazR5SkvZD2WqmtLCHJyWhORaXDtMuPooo1oLxye8YEJkazoPkJWe2Z8DNprqT5HI1TfiZsdFYTNo4hrar8WdQmRsLPvO0p4WcxEH6GiOl2BL3BYztu3hQbPESV1IoFExDW_a_8jJmwDvISNjeBRogqZ5xA72CCzwUS3jChN1gDaS_P6GX_rtyGpL2-Mn6ELRkEEyYEm18jkMt0COLnO5oSEuHvJQRn_fw8fXAQ_h98Ab2_Zn9bbIbVzks5-H6FVBbYsvUzqCej8i-YEHz9zKsmyaeBD6pCSTtKh75nw1Atcupu3dQZPnRG6Aa1plS0WohBKNPz9lRZyRomGtFQeqI97WrknRpQDc2tZQ0_nYhocFXW1c7d1zqkubI5byj7jrWickqjyw_nGft0jh1NkORx_01vcyaicTaX_LdCscWh_Aej4fmZYELcIaagHa5A-FhtycmllPhoIjYSNs62LJuuTViP0u7-Nb3FFH6gOV54CMiEjQ8NvwMAAP__Ktbdhg">