<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/92763>92763</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm/tools/llvm-readtapi/DiffEngine.cpp: 12 * Function parameter should be passed by const reference
</td>
</tr>
<tr>
<th>Labels</th>
<td>
llvm-tools,
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/llvm/tools/llvm-readtapi/DiffEngine.cpp:101:52: performance: Function parameter 'Indent' should be passed by const reference. [passedByValue]
trunk/llvm/tools/llvm-readtapi/DiffEngine.cpp:147:42: performance: Function parameter 'Name' should be passed by const reference. [passedByValue]
trunk/llvm/tools/llvm-readtapi/DiffEngine.cpp:160:31: performance: Function parameter 'Name' should be passed by const reference. [passedByValue]
trunk/llvm/tools/llvm-readtapi/DiffEngine.cpp:171:42: performance: Function parameter 'Name' should be passed by const reference. [passedByValue]
trunk/llvm/tools/llvm-readtapi/DiffEngine.cpp:181:56: performance: Function parameter 'Attribute' should be passed by const reference. [passedByValue]
trunk/llvm/tools/llvm-readtapi/DiffEngine.cpp:189:32: performance: Function parameter 'Name' should be passed by const reference. [passedByValue]
trunk/llvm/tools/llvm-readtapi/DiffEngine.cpp:195:32: performance: Function parameter 'Name' should be passed by const reference. [passedByValue]
trunk/llvm/tools/llvm-readtapi/DiffEngine.cpp:286:56: performance: Function parameter 'Attr' should be passed by const reference. [passedByValue]
trunk/llvm/tools/llvm-readtapi/DiffEngine.cpp:298:69: performance: Function parameter 'Attr' should be passed by const reference. [passedByValue]
trunk/llvm/tools/llvm-readtapi/DiffEngine.cpp:308:42: performance: Function parameter 'Attr' should be passed by const reference. [passedByValue]
trunk/llvm/tools/llvm-readtapi/DiffEngine.cpp:36:69: performance: Function parameter 'Indent' should be passed by const reference. [passedByValue]
trunk/llvm/tools/llvm-readtapi/DiffEngine.cpp:444:33: performance: Function parameter 'Indent' should be passed by const reference. [passedByValue]
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUls-q3CAUh5_mZCN3iEfNn0UWuZ0Guumm0L0xJzP2OpqqKczbl6QX7qaLGQodZiMcFfn8-KFHp2RPnqgD9QrqWOg1n0PsJjMKLosxTNfuW9bZGqa9dtdEkZllMWcybyzpawLRQ3mE8n3McfVvgINzvy6AQw7BpffyJZKesl4s4HC08_zZn6yng1kWED0vOYheIYieLRTnEC_aG9rKYfUm2-DZoqO-UKbIAOsvfiKfAWuWzmF1ExuJLTolmth4ZSb4lFmkmSJ5QwcG6vXP6uv1u3YrgTr-I7CsQfTyduCv-kIPxK1KEL3gz4Jb86ey2-zprW7G7XOOdlzzQ5nbLRFPo7hVz4SLTXV_Ih6I2zYg-qp9ElxRNvc9Dw_Gre6T--i_TUq5UYv_DlxMnZha0eqCOl7zCnmNjSzOXTOPpSYap1YaQ2SUbGY9KtMqxVvTiMJ2WKIsFZZclRzlQbbaTHNFskUu5rEBWdJFW3fYbn8I8VTYlFbqWqwrUTg9kkt7D4S4-3mXhYCfANGEiV5-rtrZfN0m1bGI3b5vXE8JZOlsyunj7Gyzo-5e74wjA_yr5Bu8Fmt03TnnZe_JcAAcTjaf1_FgwuUjBTvFEsMPMhlw2C1sdLuI3wEAAP__aX1ciw">