forked from qt-creator/qt-creator
CDB: Add breaks on switch-case
Detected by clang code model. Change-Id: I9b9d857d8b8310714d942427ace6f44078a5b046 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
de9f7a8978
commit
3bc0af9b60
@@ -223,15 +223,19 @@ std::string dumpMemory(const unsigned char *p, size_t size,
|
||||
switch (u) {
|
||||
case '\t':
|
||||
str << "\\t";
|
||||
break;
|
||||
case '\r':
|
||||
str << "\\r";
|
||||
break;
|
||||
case '\n':
|
||||
str << "\\n";
|
||||
break;
|
||||
default:
|
||||
if (u >= 32 && u < 128)
|
||||
str << (char(u));
|
||||
else
|
||||
str << '\\' << std::setw(3) << unsigned(u);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (wantQuotes)
|
||||
|
Reference in New Issue
Block a user