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:
Radoslaw Jablonski
2025-10-06 12:28:48 +00:00
committed by Compute-Runtime-Automation
parent 9d1da44e08
commit 54de14a9dc
184 changed files with 1286 additions and 690 deletions

View File

@@ -1071,8 +1071,9 @@ class Callback {
private:
void (*oldCallback)(void *);
static void thisCallback(void *p) {
if (watchList.find(p) != watchList.end())
if (watchList.find(p) != watchList.end()) {
watchList[p]++;
}
}
static std::map<const void *, uint32_t> watchList;
};
@@ -1326,8 +1327,9 @@ example_kernel() {
delete p;
std::vector<size_t> sizes;
for (auto ptr : lines)
for (auto ptr : lines) {
sizes.push_back(strlen(ptr));
}
sizes[sizes.size() / 2] = 0;
p = Program::create(pContext, (cl_uint)sizes.size(), &lines[0], &sizes[0], retVal);
@@ -1335,8 +1337,9 @@ example_kernel() {
EXPECT_NE(nullptr, p);
delete p;
for (auto ptr : lines)
for (auto ptr : lines) {
delete[] ptr;
}
}
TEST_F(ProgramFromSourceTest, GivenSpecificParamatersWhenLinkingProgramThenSuccessOrCorrectErrorCodeIsReturned) {