Skip to content

bolt/include/bolt/Passes/StokeInfo.h: 2 * clumsy declaration of Range variable #91195

@dcb314

Description

@dcb314

Static analyser cppcheck says:

bolt/include/bolt/Passes/StokeInfo.h:90:24: performance: Range variable 'S' should be declared as const reference. [iterateByValue]

Source code is

  for (std::string S : DefIn)
    Outfile << "%" << S << " ";

bolt/include/bolt/Passes/StokeInfo.h:93:24: performance: Range variable 'S' should be declared as const reference. [iterateByValue]

Duplicate.

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