Issue |
91212
|
Summary |
lldb/tools/debugserver/source/JSON.cpp: 4 * Clumsy string output
|
Labels |
lldb,
code-quality
|
Assignees |
|
Reporter |
dcb314
|
Static analyser cppcheck says:
lldb/tools/debugserver/source/JSON.cpp:398:19: performance: Passing the result of c_str() to a stream is slow and redundant. [stlcstrStream]
Source code is
error << "error: got exponent character but no exponent digits at "
"offset in float value \""
<< value.c_str() << "\"";
Some duplicates:
lldb/tools/debugserver/source/JSON.cpp:408:64: performance: Passing the result of c_str() to a stream is slow and redundant. [stlcstrStream]
lldb/tools/debugserver/source/JSON.cpp:420:54: performance: Passing the result of c_str() to a stream is slow and redundant. [stlcstrStream]
lldb/tools/debugserver/source/JSON.cpp:46:13: performance: Passing the result of c_str() to a stream is slow and redundant. [stlcstrStream]
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs