mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
refactor: apply clang-format's InsertBraces rule
Formats code before InsertBraces rule is enabled. Signed-off-by: Radoslaw Jablonski <radoslaw.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9d1da44e08
commit
54de14a9dc
@@ -70,16 +70,18 @@ void PrintFormatter::printString(const char *formatString, const std::function<v
|
||||
continue;
|
||||
}
|
||||
|
||||
while (isConversionSpecifier(formatString[end++]) == false && end < length)
|
||||
while (isConversionSpecifier(formatString[end++]) == false && end < length) {
|
||||
;
|
||||
}
|
||||
|
||||
memcpy_s(dataFormat.get(), length, formatString + i, end - i);
|
||||
dataFormat[end - i] = '\0';
|
||||
|
||||
if (formatString[end - 1] == 's')
|
||||
if (formatString[end - 1] == 's') {
|
||||
cursor += printStringToken(output.get() + cursor, maxSinglePrintStringLength - cursor, dataFormat.get());
|
||||
else
|
||||
} else {
|
||||
cursor += printToken(output.get() + cursor, maxSinglePrintStringLength - cursor, dataFormat.get());
|
||||
}
|
||||
|
||||
i = end - 1;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user