🎨 use Clang-Format
This commit is contained in:
77 files changed
+4290
-4393
No files matched your search
@@ -27,7 +27,7 @@ TEST_CASE("custom namespace")
|
||||
std::string expected = "nlohmann::basic_json";
|
||||
|
||||
// fallback for Clang
|
||||
const std::string ns{STRINGIZE(NLOHMANN_JSON_NAMESPACE) "::basic_json"};
|
||||
const std::string ns{ STRINGIZE(NLOHMANN_JSON_NAMESPACE) "::basic_json" };
|
||||
|
||||
CHECK(namespace_name<nlohmann::json>(ns) == expected);
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ TEST_CASE("default namespace")
|
||||
expected += "_" STRINGIZE(NLOHMANN_JSON_VERSION_PATCH) "::basic_json";
|
||||
|
||||
// fallback for Clang
|
||||
const std::string ns{STRINGIZE(NLOHMANN_JSON_NAMESPACE) "::basic_json"};
|
||||
const std::string ns{ STRINGIZE(NLOHMANN_JSON_NAMESPACE) "::basic_json" };
|
||||
|
||||
CHECK(namespace_name<nlohmann::json>(ns) == expected);
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ TEST_CASE("default namespace without version component")
|
||||
expected += "::basic_json";
|
||||
|
||||
// fallback for Clang
|
||||
const std::string ns{STRINGIZE(NLOHMANN_JSON_NAMESPACE) "::basic_json"};
|
||||
const std::string ns{ STRINGIZE(NLOHMANN_JSON_NAMESPACE) "::basic_json" };
|
||||
|
||||
CHECK(namespace_name<nlohmann::json>(ns) == expected);
|
||||
}
|
||||
|
||||
@@ -25,6 +25,6 @@ std::size_t json_sizeof_diag_off_explicit()
|
||||
void json_at_diag_off()
|
||||
{
|
||||
using nlohmann::json;
|
||||
json j = json{{"foo", json::object()}};
|
||||
json j = json{ { "foo", json::object() } };
|
||||
j.at(json::json_pointer("/foo/bar"));
|
||||
}
|
||||
@@ -25,6 +25,6 @@ std::size_t json_sizeof_diag_on_explicit()
|
||||
void json_at_diag_on()
|
||||
{
|
||||
using nlohmann::json;
|
||||
json j = json{{"foo", json::object()}};
|
||||
json j = json{ { "foo", json::object() } };
|
||||
j.at(json::json_pointer("/foo/bar"));
|
||||
}
|
||||
Reference in new issue
Block a user