mirror of
https://github.com/nlohmann/json.git
synced 2026-02-25 12:56:26 +00:00
🚨 add new CI and fix warnings (#2561)
* ⚗️ move CI targets to CMake * ♻️ add target for cpplint * ♻️ add target for self-contained binaries * ♻️ add targets for iwyu and infer * 🔊 add version output * ♻️ add target for oclint * 🚨 fix warnings * ♻️ rename targets * ♻️ use iwyu properly * 🚨 fix warnings * ♻️ use iwyu properly * ♻️ add target for benchmarks * ♻️ add target for CMake flags * 👷 use GitHub Actions * ⚗️ try to install Clang 11 * ⚗️ try to install GCC 11 * ⚗️ try to install Clang 11 * ⚗️ try to install GCC 11 * ⚗️ add clang analyze target * 🔥 remove Google Benchmark * ⬆️ Google Benchmark 1.5.2 * 🔥 use fetchcontent * 🐧 add target to download a Linux version of CMake * 🔨 fix dependency * 🚨 fix includes * 🚨 fix comment * 🔧 adjust flags for GCC 11.0.0 20210110 (experimental) * 🐳 user Docker image to run CI * 🔧 add target for Valgrind * 👷 add target for Valgrind tests * ⚗️ add Dart * ⏪ remove Dart * ⚗️ do not call ctest in test subdirectory * ⚗️ download test data explicitly * ⚗️ only execute Valgrind tests * ⚗️ fix labels * 🔥 remove unneeded jobs * 🔨 cleanup * 🐛 fix OCLint call * ✅ add targets for offline and git-independent tests * ✅ add targets for C++ language versions and reproducible tests * 🔨 clean up * 👷 add CI steps for cppcheck and cpplint * 🚨 fix warnings from Clang-Tidy * 👷 add CI steps for Clang-Tidy * 🚨 fix warnings * 🔧 select proper binary * 🚨 fix warnings * 🚨 suppress some unhelpful warnings * 🚨 fix warnings * 🎨 fix format * 🚨 fix warnings * 👷 add CI steps for Sanitizers * 🚨 fix warnings * ⚡ add optimization to sanitizer build * 🚨 fix warnings * 🚨 add missing header * 🚨 fix warnings * 👷 add CI step for coverage * 👷 add CI steps for disabled exceptions and implicit conversions * 🚨 fix warnings * 👷 add CI steps for checking indentation * 🐛 fix variable use * 💚 fix build * ➖ remove CircleCI * 👷 add CI step for diagnostics * 🚨 fix warning * 🔥 clean Travis
This commit is contained in:
@@ -48,7 +48,7 @@ TEST_CASE("iterator_wrapper")
|
||||
json j = { {"A", 1}, {"B", 2} };
|
||||
int counter = 1;
|
||||
|
||||
for (auto i : json::iterator_wrapper(j))
|
||||
for (auto i : json::iterator_wrapper(j)) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
switch (counter++)
|
||||
{
|
||||
@@ -125,7 +125,7 @@ TEST_CASE("iterator_wrapper")
|
||||
json j = { {"A", 1}, {"B", 2} };
|
||||
int counter = 1;
|
||||
|
||||
for (const auto i : json::iterator_wrapper(j))
|
||||
for (const auto i : json::iterator_wrapper(j)) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
switch (counter++)
|
||||
{
|
||||
@@ -194,7 +194,7 @@ TEST_CASE("iterator_wrapper")
|
||||
const json j = { {"A", 1}, {"B", 2} };
|
||||
int counter = 1;
|
||||
|
||||
for (auto i : json::iterator_wrapper(j))
|
||||
for (auto i : json::iterator_wrapper(j)) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
switch (counter++)
|
||||
{
|
||||
@@ -260,7 +260,7 @@ TEST_CASE("iterator_wrapper")
|
||||
const json j = { {"A", 1}, {"B", 2} };
|
||||
int counter = 1;
|
||||
|
||||
for (const auto i : json::iterator_wrapper(j))
|
||||
for (const auto i : json::iterator_wrapper(j)) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
switch (counter++)
|
||||
{
|
||||
@@ -329,7 +329,7 @@ TEST_CASE("iterator_wrapper")
|
||||
json j = { "A", "B" };
|
||||
int counter = 1;
|
||||
|
||||
for (auto i : json::iterator_wrapper(j))
|
||||
for (auto i : json::iterator_wrapper(j)) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
switch (counter++)
|
||||
{
|
||||
@@ -406,7 +406,7 @@ TEST_CASE("iterator_wrapper")
|
||||
json j = { "A", "B" };
|
||||
int counter = 1;
|
||||
|
||||
for (const auto i : json::iterator_wrapper(j))
|
||||
for (const auto i : json::iterator_wrapper(j)) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
switch (counter++)
|
||||
{
|
||||
@@ -475,7 +475,7 @@ TEST_CASE("iterator_wrapper")
|
||||
const json j = { "A", "B" };
|
||||
int counter = 1;
|
||||
|
||||
for (auto i : json::iterator_wrapper(j))
|
||||
for (auto i : json::iterator_wrapper(j)) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
switch (counter++)
|
||||
{
|
||||
@@ -541,7 +541,7 @@ TEST_CASE("iterator_wrapper")
|
||||
const json j = { "A", "B" };
|
||||
int counter = 1;
|
||||
|
||||
for (const auto i : json::iterator_wrapper(j))
|
||||
for (const auto i : json::iterator_wrapper(j)) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
switch (counter++)
|
||||
{
|
||||
@@ -610,7 +610,7 @@ TEST_CASE("iterator_wrapper")
|
||||
json j = 1;
|
||||
int counter = 1;
|
||||
|
||||
for (auto i : json::iterator_wrapper(j))
|
||||
for (auto i : json::iterator_wrapper(j)) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
++counter;
|
||||
CHECK(i.key() == "");
|
||||
@@ -646,7 +646,7 @@ TEST_CASE("iterator_wrapper")
|
||||
json j = 1;
|
||||
int counter = 1;
|
||||
|
||||
for (const auto i : json::iterator_wrapper(j))
|
||||
for (const auto i : json::iterator_wrapper(j)) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
++counter;
|
||||
CHECK(i.key() == "");
|
||||
@@ -679,7 +679,7 @@ TEST_CASE("iterator_wrapper")
|
||||
const json j = 1;
|
||||
int counter = 1;
|
||||
|
||||
for (auto i : json::iterator_wrapper(j))
|
||||
for (auto i : json::iterator_wrapper(j)) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
++counter;
|
||||
CHECK(i.key() == "");
|
||||
@@ -709,7 +709,7 @@ TEST_CASE("iterator_wrapper")
|
||||
const json j = 1;
|
||||
int counter = 1;
|
||||
|
||||
for (const auto i : json::iterator_wrapper(j))
|
||||
for (const auto i : json::iterator_wrapper(j)) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
++counter;
|
||||
CHECK(i.key() == "");
|
||||
@@ -745,7 +745,7 @@ TEST_CASE("items()")
|
||||
json j = { {"A", 1}, {"B", 2} };
|
||||
int counter = 1;
|
||||
|
||||
for (auto i : j.items())
|
||||
for (auto i : j.items()) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
switch (counter++)
|
||||
{
|
||||
@@ -822,7 +822,7 @@ TEST_CASE("items()")
|
||||
json j = { {"A", 1}, {"B", 2} };
|
||||
int counter = 1;
|
||||
|
||||
for (const auto i : j.items())
|
||||
for (const auto i : j.items()) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
switch (counter++)
|
||||
{
|
||||
@@ -907,7 +907,7 @@ TEST_CASE("items()")
|
||||
const json j = { {"A", 1}, {"B", 2} };
|
||||
int counter = 1;
|
||||
|
||||
for (auto i : j.items())
|
||||
for (auto i : j.items()) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
switch (counter++)
|
||||
{
|
||||
@@ -973,7 +973,7 @@ TEST_CASE("items()")
|
||||
const json j = { {"A", 1}, {"B", 2} };
|
||||
int counter = 1;
|
||||
|
||||
for (const auto i : j.items())
|
||||
for (const auto i : j.items()) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
switch (counter++)
|
||||
{
|
||||
@@ -1042,7 +1042,7 @@ TEST_CASE("items()")
|
||||
json j = { "A", "B" };
|
||||
int counter = 1;
|
||||
|
||||
for (auto i : j.items())
|
||||
for (auto i : j.items()) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
switch (counter++)
|
||||
{
|
||||
@@ -1119,7 +1119,7 @@ TEST_CASE("items()")
|
||||
json j = { "A", "B" };
|
||||
int counter = 1;
|
||||
|
||||
for (const auto i : j.items())
|
||||
for (const auto i : j.items()) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
switch (counter++)
|
||||
{
|
||||
@@ -1188,7 +1188,7 @@ TEST_CASE("items()")
|
||||
const json j = { "A", "B" };
|
||||
int counter = 1;
|
||||
|
||||
for (auto i : j.items())
|
||||
for (auto i : j.items()) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
switch (counter++)
|
||||
{
|
||||
@@ -1254,7 +1254,7 @@ TEST_CASE("items()")
|
||||
const json j = { "A", "B" };
|
||||
int counter = 1;
|
||||
|
||||
for (const auto i : j.items())
|
||||
for (const auto i : j.items()) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
switch (counter++)
|
||||
{
|
||||
@@ -1323,7 +1323,7 @@ TEST_CASE("items()")
|
||||
json j = 1;
|
||||
int counter = 1;
|
||||
|
||||
for (auto i : j.items())
|
||||
for (auto i : j.items()) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
++counter;
|
||||
CHECK(i.key() == "");
|
||||
@@ -1359,7 +1359,7 @@ TEST_CASE("items()")
|
||||
json j = 1;
|
||||
int counter = 1;
|
||||
|
||||
for (const auto i : j.items())
|
||||
for (const auto i : j.items()) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
++counter;
|
||||
CHECK(i.key() == "");
|
||||
@@ -1392,7 +1392,7 @@ TEST_CASE("items()")
|
||||
const json j = 1;
|
||||
int counter = 1;
|
||||
|
||||
for (auto i : j.items())
|
||||
for (auto i : j.items()) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
++counter;
|
||||
CHECK(i.key() == "");
|
||||
@@ -1422,7 +1422,7 @@ TEST_CASE("items()")
|
||||
const json j = 1;
|
||||
int counter = 1;
|
||||
|
||||
for (const auto i : j.items())
|
||||
for (const auto i : j.items()) // NOLINT(performance-for-range-copy)
|
||||
{
|
||||
++counter;
|
||||
CHECK(i.key() == "");
|
||||
|
||||
Reference in New Issue
Block a user