Skip to content

Commit

Permalink
Fix formatting in some headers
Browse files Browse the repository at this point in the history
  • Loading branch information
fknorr committed Dec 9, 2024
1 parent ddba223 commit b71bad5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions include/simsycl/sycl/device_selector.hh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace simsycl::sycl {

class device_selector {
public:
device_selector(){};
device_selector() {}

device_selector(const device_selector &rhs) { (void)rhs; };

Expand All @@ -15,7 +15,7 @@ class device_selector {
return *this;
};

virtual ~device_selector(){};
virtual ~device_selector() {}

device select_device() const { return {}; }

Expand Down
26 changes: 13 additions & 13 deletions include/simsycl/sycl/exception.hh
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ namespace simsycl::sycl {

class exception : public virtual std::exception {
public:
exception(std::error_code ec, const std::string &what_arg) : m_error(ec, what_arg){};
exception(std::error_code ec, const char *what_arg) : m_error(ec, what_arg){};
exception(std::error_code ec) : m_error(ec){};
exception(int ev, const std::error_category &ecat, const std::string &what_arg) : m_error(ev, ecat, what_arg){};
exception(int ev, const std::error_category &ecat, const char *what_arg) : m_error(ev, ecat, what_arg){};
exception(int ev, const std::error_category &ecat) : m_error(ev, ecat){};

exception(context ctx, std::error_code ec, const std::string &what_arg) : m_error(ec, what_arg), m_context(ctx){};
exception(context ctx, std::error_code ec, const char *what_arg) : m_error(ec, what_arg), m_context(ctx){};
exception(context ctx, std::error_code ec) : m_error(ec), m_context(ctx){};
exception(std::error_code ec, const std::string &what_arg) : m_error(ec, what_arg) {}
exception(std::error_code ec, const char *what_arg) : m_error(ec, what_arg) {}
exception(std::error_code ec) : m_error(ec) {}
exception(int ev, const std::error_category &ecat, const std::string &what_arg) : m_error(ev, ecat, what_arg) {}
exception(int ev, const std::error_category &ecat, const char *what_arg) : m_error(ev, ecat, what_arg) {}
exception(int ev, const std::error_category &ecat) : m_error(ev, ecat) {}

exception(context ctx, std::error_code ec, const std::string &what_arg) : m_error(ec, what_arg), m_context(ctx) {}
exception(context ctx, std::error_code ec, const char *what_arg) : m_error(ec, what_arg), m_context(ctx) {}
exception(context ctx, std::error_code ec) : m_error(ec), m_context(ctx) {}
exception(context ctx, int ev, const std::error_category &ecat, const std::string &what_arg)
: m_error(ev, ecat, what_arg), m_context(ctx){};
: m_error(ev, ecat, what_arg), m_context(ctx) {}
exception(context ctx, int ev, const std::error_category &ecat, const char *what_arg)
: m_error(ev, ecat, what_arg), m_context(ctx){};
exception(context ctx, int ev, const std::error_category &ecat) : m_error(ev, ecat), m_context(ctx){};
: m_error(ev, ecat, what_arg), m_context(ctx) {}
exception(context ctx, int ev, const std::error_category &ecat) : m_error(ev, ecat), m_context(ctx) {}

const std::error_code &code() const noexcept { return m_error.code(); }
const std::error_category &category() const noexcept { return m_error.code().category(); }
Expand Down

0 comments on commit b71bad5

Please sign in to comment.