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) {
|
switch (u) {
|
||||||
case '\t':
|
case '\t':
|
||||||
str << "\\t";
|
str << "\\t";
|
||||||
|
break;
|
||||||
case '\r':
|
case '\r':
|
||||||
str << "\\r";
|
str << "\\r";
|
||||||
|
break;
|
||||||
case '\n':
|
case '\n':
|
||||||
str << "\\n";
|
str << "\\n";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
if (u >= 32 && u < 128)
|
if (u >= 32 && u < 128)
|
||||||
str << (char(u));
|
str << (char(u));
|
||||||
else
|
else
|
||||||
str << '\\' << std::setw(3) << unsigned(u);
|
str << '\\' << std::setw(3) << unsigned(u);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (wantQuotes)
|
if (wantQuotes)
|
||||||
|
Reference in New Issue
Block a user