Skip to content

lldb/source/Breakpoint/BreakpointIDList.cpp:262: Prefer const reference for range variables #91220

Closed
@dcb314

Description

@dcb314

Static analyser cppcheck says:

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

Source code is

    for (std::string name : names_found) {

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