Skip to content

lldb/source/Breakpoint/Breakpoint.cpp:888: Prefer const reference for range variables #91219

Closed
@dcb314

Description

@dcb314

Static analyser cppcheck says:

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

Source code is

   for (std::string name : m_name_list) {

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions