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

    <tr>
        <th>Summary</th>
        <td>
            lang/lib/Frontend/Rewrite/RewriteObjC.cpp: 8 * Function parameter should be passed by const reference
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang:frontend,
            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/clang/lib/Frontend/Rewrite/RewriteObjC.cpp:1767:63: performance: Function parameter 'syncExitBuf' should be passed by const reference. [passedByValue]
trunk/clang/lib/Frontend/Rewrite/RewriteObjC.cpp:3254:64: performance: Function parameter 'Tag' should be passed by const reference. [passedByValue]
trunk/clang/lib/Frontend/Rewrite/RewriteObjC.cpp:3346:64: performance: Function parameter 'Tag' should be passed by const reference. [passedByValue]
trunk/clang/lib/Frontend/Rewrite/RewriteObjC.cpp:3388:73: performance: Function parameter 'Tag' should be passed by const reference. [passedByValue]
trunk/clang/lib/Frontend/Rewrite/RewriteObjC.cpp:3389:58: performance: Function parameter 'Desc' should be passed by const reference. [passedByValue]
trunk/clang/lib/Frontend/Rewrite/RewriteObjC.cpp:3503:64: performance: Function parameter 'DescTag' should be passed by const reference. [passedByValue]
trunk/clang/lib/Frontend/Rewrite/RewriteObjC.cpp:3504:64: performance: Function parameter 'ImplTag' should be passed by const reference. [passedByValue]
trunk/clang/lib/Frontend/Rewrite/RewriteObjC.cpp:510:39: performance: Function parameter 'inFile' should be passed by const reference. [passedByValue]

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzU1U1vnDwQB_BPM1ysrPyCgT1wYLMP0nOq1Fa922YAJ8ZQ26Tl21ds2ubSw6attOmFt5HwT3-PNSpGO3jEGuQJ5DlTaxrnUHdGC5Zneu62-kNSyRqivHJbxEDMspgRzSOJaosgGqBnoN-vKaz-EXhrnPID8NZZDbxtw-wT-g54-x6_BJvw5emdfrg_mGUB0bCyKEE0hQDRkAVDP4dJeYP7a7t6k-zsyaKCmjBhIMDLuHnz31ebTmsPvCRxnFfXEY1kUTFiR_RGzOxjIgF7DOgNHgjI03P1tH1SbkWQ579gF1zmuz2_2v5RDbc2i7z498xVBaIpr--RN2E-gmhkdbX5jNHcGi2peF1z7Og3ELakrzyI_0-Lu71bMrrrj1ezrW-twz9XZ10tuqM4qgxrVrKCs6I4ymysK0SquoopZL1S2BWSlVpzzvLSIKVVZmtOeU4lpyyXTMiDEqIvpCi1yPNCyg5yipOy7uDc03SYw5DZGFesj7wsaOaURhcvg4fz58xE0_9MiwO_3wtzh3efV-Vs2vaP8pyFev_fnV6HCDl1Nqb4skKyyWH9OztAKgL8l2lfEXC2BlePKS2Xichb4O1g07jqg5mnXeKeftzuljA_oEnA20scEXh7SeRbAAAA__81nH6k">