🎨 use Clang-Format
This commit is contained in:
77 files changed
+4290
-4393
No files matched your search
@@ -51,8 +51,8 @@ class exception : public std::exception
|
||||
JSON_HEDLEY_NON_NULL(3)
|
||||
exception(int id_, const char* what_arg)
|
||||
: id(id_)
|
||||
, m(what_arg)
|
||||
{} // NOLINT(bugprone-throw-keyword-missing)
|
||||
, m(what_arg) // NOLINT(bugprone-throw-keyword-missing)
|
||||
{}
|
||||
|
||||
static std::string name(const std::string& ename, int id_)
|
||||
{
|
||||
@@ -150,7 +150,7 @@ class parse_error : public exception
|
||||
static parse_error create(int id_, const position_t& pos, const std::string& what_arg, BasicJsonContext context)
|
||||
{
|
||||
const std::string w = concat(exception::name("parse_error", id_), "parse error", position_string(pos), ": ", exception::diagnostics(context), what_arg);
|
||||
return {id_, pos.chars_read_total, w.c_str()};
|
||||
return { id_, pos.chars_read_total, w.c_str() };
|
||||
}
|
||||
|
||||
template<typename BasicJsonContext, enable_if_t<is_basic_json_context<BasicJsonContext>::value, int> = 0>
|
||||
@@ -162,7 +162,7 @@ class parse_error : public exception
|
||||
": ",
|
||||
exception::diagnostics(context),
|
||||
what_arg);
|
||||
return {id_, byte_, w.c_str()};
|
||||
return { id_, byte_, w.c_str() };
|
||||
}
|
||||
|
||||
/*!
|
||||
@@ -197,7 +197,7 @@ class invalid_iterator : public exception
|
||||
static invalid_iterator create(int id_, const std::string& what_arg, BasicJsonContext context)
|
||||
{
|
||||
const std::string w = concat(exception::name("invalid_iterator", id_), exception::diagnostics(context), what_arg);
|
||||
return {id_, w.c_str()};
|
||||
return { id_, w.c_str() };
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -216,7 +216,7 @@ class type_error : public exception
|
||||
static type_error create(int id_, const std::string& what_arg, BasicJsonContext context)
|
||||
{
|
||||
const std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg);
|
||||
return {id_, w.c_str()};
|
||||
return { id_, w.c_str() };
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -235,7 +235,7 @@ class out_of_range : public exception
|
||||
static out_of_range create(int id_, const std::string& what_arg, BasicJsonContext context)
|
||||
{
|
||||
const std::string w = concat(exception::name("out_of_range", id_), exception::diagnostics(context), what_arg);
|
||||
return {id_, w.c_str()};
|
||||
return { id_, w.c_str() };
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -254,7 +254,7 @@ class other_error : public exception
|
||||
static other_error create(int id_, const std::string& what_arg, BasicJsonContext context)
|
||||
{
|
||||
const std::string w = concat(exception::name("other_error", id_), exception::diagnostics(context), what_arg);
|
||||
return {id_, w.c_str()};
|
||||
return { id_, w.c_str() };
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in new issue
Block a user