Skip to content

performance-unnecessary-value-param not detected for STL container when accessed via index operator #69577

Open
@firewave

Description

@firewave
#include <string>

void f(std::string type)
{
    const char Type = type[0];
}

https://godbolt.org/z/ae3efnTvs

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