Commit c93bb3cb authored by Dominik Charousset's avatar Dominik Charousset

Adapt to new coding style

parent d3c43642
...@@ -134,7 +134,7 @@ inline bool operator==(const square_matrix<Size>& lhs, ...@@ -134,7 +134,7 @@ inline bool operator==(const square_matrix<Size>& lhs,
template<size_t Size> template<size_t Size>
inline bool operator!=(const square_matrix<Size>& lhs, inline bool operator!=(const square_matrix<Size>& lhs,
const square_matrix<Size>& rhs) { const square_matrix<Size>& rhs) {
return ! (lhs == rhs); return !(lhs == rhs);
} }
using matrix_type = square_matrix<matrix_size>; using matrix_type = square_matrix<matrix_size>;
......
...@@ -84,7 +84,7 @@ actor_system::module* manager::make(actor_system& sys, ...@@ -84,7 +84,7 @@ actor_system::module* manager::make(actor_system& sys,
program manager::create_program(const char* kernel_source, const char* options, program manager::create_program(const char* kernel_source, const char* options,
uint32_t device_id) { uint32_t device_id) {
auto dev = get_device(device_id); auto dev = get_device(device_id);
if (! dev) { if (!dev) {
ostringstream oss; ostringstream oss;
oss << "No device with id '" << device_id << "' found."; oss << "No device with id '" << device_id << "' found.";
CAF_LOG_ERROR(CAF_ARG(oss.str())); CAF_LOG_ERROR(CAF_ARG(oss.str()));
......
...@@ -191,7 +191,7 @@ bool operator==(const square_matrix<Size>& lhs, ...@@ -191,7 +191,7 @@ bool operator==(const square_matrix<Size>& lhs,
template<size_t Size> template<size_t Size>
bool operator!=(const square_matrix<Size>& lhs, bool operator!=(const square_matrix<Size>& lhs,
const square_matrix<Size>& rhs) { const square_matrix<Size>& rhs) {
return ! (lhs == rhs); return !(lhs == rhs);
} }
using matrix_type = square_matrix<matrix_size>; using matrix_type = square_matrix<matrix_size>;
...@@ -202,7 +202,7 @@ void check_vector_results(const string& description, ...@@ -202,7 +202,7 @@ void check_vector_results(const string& description,
const vector<T>& result) { const vector<T>& result) {
auto cond = (expected == result); auto cond = (expected == result);
CAF_CHECK(cond); CAF_CHECK(cond);
if (! cond) { if (!cond) {
CAF_ERROR(description << " failed."); CAF_ERROR(description << " failed.");
cout << "Expected: " << endl; cout << "Expected: " << endl;
for (size_t i = 0; i < expected.size(); ++i) { for (size_t i = 0; i < expected.size(); ++i) {
...@@ -220,7 +220,7 @@ void test_opencl(actor_system& sys) { ...@@ -220,7 +220,7 @@ void test_opencl(actor_system& sys) {
static_cast<void>(sys); static_cast<void>(sys);
auto& mngr = sys.opencl_manager(); auto& mngr = sys.opencl_manager();
auto opt = mngr.get_device_if([](const device&){ return true; }); auto opt = mngr.get_device_if([](const device&){ return true; });
if (! opt) if (!opt)
CAF_ERROR("No OpenCL device found."); CAF_ERROR("No OpenCL device found.");
auto dev = *opt; auto dev = *opt;
scoped_actor self{sys}; scoped_actor self{sys};
...@@ -292,7 +292,7 @@ void test_opencl(actor_system& sys) { ...@@ -292,7 +292,7 @@ void test_opencl(actor_system& sys) {
auto cond = (strcmp("clBuildProgram: CL_BUILD_PROGRAM_FAILURE", auto cond = (strcmp("clBuildProgram: CL_BUILD_PROGRAM_FAILURE",
exc.what()) == 0); exc.what()) == 0);
CAF_CHECK(cond); CAF_CHECK(cond);
if (! cond) { if (!cond) {
CAF_ERROR("Wrong exception cought for program build failure."); CAF_ERROR("Wrong exception cought for program build failure.");
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment