Skip to content

lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp:290: clumsy string resize ? #91211

@dcb314

Description

@dcb314

Static analyser cppcheck says:

lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp:290:19: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr]

Source code is

source_file = source_file.substr(0, pos);

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