Issue |
91209
|
Summary |
lldb/source/Core/Debugger.cpp:2069: Clumsy string resize ?
|
Labels |
lldb,
code-quality
|
Assignees |
|
Reporter |
dcb314
|
Static analyser cppcheck says:
lldb/source/Core/Debugger.cpp:2069:15: 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
message = message.substr(0, term_width - ellipsis);
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs