Skip to content

lldb/source/API/SBBreakpoint.cpp:717: Prefer const reference for range variables. #91213

Closed
@dcb314

Description

@dcb314

Static analyser cppcheck says:

lldb/source/API/SBBreakpoint.cpp:717:22: performance: Range variable 'name' should be declared as const reference. [iterateByValue]

Source code is

for (std::string name : names_vec) {

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