Skip to content

llvm/tools/llvm-readtapi/DiffEngine.cpp: 12 * Function parameter should be passed by const reference #92763

Open
@dcb314

Description

@dcb314

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-qualityllvm-toolsAll llvm tools that do not have corresponding tag

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions