Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI targets #2561

Merged
merged 126 commits into from
Mar 24, 2021
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
8d8c9b9
:alembic: move CI targets to CMake
nlohmann Dec 26, 2020
b1afe8d
Merge branch 'develop' of https://github.com/nlohmann/json into ci
nlohmann Dec 26, 2020
5276ab9
:recycle: add target for cpplint
nlohmann Dec 26, 2020
d9941bd
:recycle: add target for self-contained binaries
nlohmann Dec 26, 2020
3676053
Merge branch 'develop' of https://github.com/nlohmann/json into ci
nlohmann Dec 26, 2020
6f7ffa5
:recycle: add targets for iwyu and infer
nlohmann Dec 26, 2020
4c6cda3
:loud_sound: add version output
nlohmann Dec 27, 2020
9427318
:recycle: add target for oclint
nlohmann Dec 27, 2020
35b5de2
Merge branch 'develop' of https://github.com/nlohmann/json into ci
nlohmann Dec 30, 2020
77f2450
:rotating_light: fix warnings
nlohmann Dec 30, 2020
0bee420
:recycle: rename targets
nlohmann Dec 30, 2020
45ec48b
:recycle: use iwyu properly
nlohmann Dec 30, 2020
f5856be
Merge branch 'develop' of https://github.com/nlohmann/json into ci
nlohmann Dec 31, 2020
7cb49fa
:rotating_light: fix warnings
nlohmann Jan 1, 2021
6085bee
:rotating_light: fix warnings
nlohmann Jan 1, 2021
6bfcea3
:rotating_light: fix warnings
nlohmann Jan 1, 2021
8dc3ed1
:rotating_light: fix warnings
nlohmann Jan 1, 2021
a6b82cd
:recycle: use iwyu properly
nlohmann Jan 1, 2021
1a7d208
Merge branch 'develop' of https://github.com/nlohmann/json into ci
nlohmann Jan 3, 2021
93fad23
:recycle: add target for benchmarks
nlohmann Jan 3, 2021
dc0a921
:recycle: add target for CMake flags
nlohmann Jan 3, 2021
b36f40b
Merge branch 'develop' of https://github.com/nlohmann/json into ci
nlohmann Jan 3, 2021
7d5881a
Merge branch 'develop' of https://github.com/nlohmann/json into ci
nlohmann Jan 16, 2021
4a56f12
:construction_worker: use GitHub Actions
nlohmann Jan 17, 2021
bd85996
:construction_worker: use GitHub Actions
nlohmann Jan 17, 2021
755f694
:alembic: try to install Clang 11
nlohmann Jan 17, 2021
ce9f6a1
:alembic: try to install GCC 11
nlohmann Jan 17, 2021
bac9844
:alembic: try to install Clang 11
nlohmann Jan 17, 2021
a749b1c
:alembic: try to install GCC 11
nlohmann Jan 17, 2021
b7befb2
:alembic: add clang analyze target
nlohmann Jan 17, 2021
06bffd2
:alembic: add clang analyze target
nlohmann Jan 17, 2021
08d51c0
:alembic: add clang analyze target
nlohmann Jan 17, 2021
d2ef9a4
:fire: remove Google Benchmark
nlohmann Jan 23, 2021
c092de1
:arrow_up: Google Benchmark 1.5.2
nlohmann Jan 23, 2021
d7d34df
:fire: use fetchcontent
nlohmann Jan 23, 2021
05e2cd4
:penguin: add target to download a Linux version of CMake
nlohmann Jan 23, 2021
395788c
:hammer: fix dependency
nlohmann Jan 23, 2021
96a1334
:rotating_light: fix includes
nlohmann Jan 23, 2021
9dd1d50
:rotating_light: fix comment
nlohmann Jan 23, 2021
2efc295
:wrench: adjust flags for GCC 11.0.0 20210110 (experimental)
nlohmann Jan 23, 2021
5791901
:whale: user Docker image to run CI
nlohmann Jan 24, 2021
40a6532
:wrench: add target for Valgrind
nlohmann Jan 25, 2021
f3a68ae
:construction_worker: add target for Valgrind tests
nlohmann Jan 25, 2021
f4ea5bc
:alembic: add Dart
nlohmann Jan 25, 2021
46a243b
:rewind: remove Dart
nlohmann Jan 26, 2021
eadcce9
:alembic: do not call ctest in test subdirectory
nlohmann Jan 26, 2021
8651ad4
:alembic: download test data explicitly
nlohmann Jan 26, 2021
468dc58
:alembic: only execute Valgrind tests
nlohmann Jan 26, 2021
b2bc283
:alembic: fix labels
nlohmann Jan 26, 2021
5397603
:fire: remove unneeded jobs
nlohmann Jan 26, 2021
d9bde8e
:hammer: cleanup
nlohmann Jan 26, 2021
702d223
:bug: fix OCLint call
nlohmann Jan 26, 2021
309829d
:white_check_mark: add targets for offline and git-independent tests
nlohmann Jan 27, 2021
24cab96
:white_check_mark: add targets for C++ language versions and reproduc…
nlohmann Jan 27, 2021
e71daa1
Merge branch 'develop' of https://github.com/nlohmann/json into ci
nlohmann Jan 27, 2021
2e044e2
:hammer: clean up
nlohmann Jan 27, 2021
0a27d1c
:construction_worker: add CI steps for cppcheck and cpplint
nlohmann Jan 27, 2021
cb28e76
:rotating_light: fix warnings from Clang-Tidy
nlohmann Jan 27, 2021
87d1dc7
:construction_worker: add CI steps for Clang-Tidy
nlohmann Jan 27, 2021
81c8ded
:construction_worker: add CI steps for Clang-Tidy
nlohmann Jan 27, 2021
10fc352
:rotating_light: fix warnings
nlohmann Jan 27, 2021
c243cd7
:rotating_light: fix warnings
nlohmann Jan 28, 2021
ea69fe0
:wrench: select proper binary
nlohmann Jan 28, 2021
eba434a
:rotating_light: fix warnings
nlohmann Jan 28, 2021
2d175d9
:rotating_light: fix warnings
nlohmann Jan 28, 2021
866a4c5
:rotating_light: suppress some unhelpful warnings
nlohmann Jan 28, 2021
675f07f
:rotating_light: fix warnings
nlohmann Jan 28, 2021
28d5f86
:rotating_light: fix warnings
nlohmann Jan 28, 2021
ae78c96
:art: fix format
nlohmann Jan 28, 2021
4ade721
Merge branch 'develop' of https://github.com/nlohmann/json into ci
nlohmann Jan 28, 2021
cdd6412
:rotating_light: fix warnings
nlohmann Jan 28, 2021
09bf771
:rotating_light: fix warnings
nlohmann Jan 28, 2021
bfcbb43
:rotating_light: fix warnings
nlohmann Jan 28, 2021
bdcabc0
:rotating_light: fix warnings
nlohmann Jan 28, 2021
0dcb01b
:rotating_light: fix warnings
nlohmann Jan 28, 2021
bfd4c7c
:rotating_light: fix warnings
nlohmann Jan 28, 2021
95f50a3
:rotating_light: fix warnings
nlohmann Jan 28, 2021
e2868ee
:rotating_light: fix warnings
nlohmann Jan 28, 2021
b5c5eaa
:rotating_light: fix warnings
nlohmann Jan 28, 2021
de9ae4e
:rotating_light: fix warnings
nlohmann Jan 28, 2021
c3edf49
:rotating_light: fix warnings
nlohmann Jan 28, 2021
8b362b5
:construction_worker: add CI steps for Sanitizers
nlohmann Jan 28, 2021
3393ce0
:rotating_light: fix warnings
nlohmann Jan 28, 2021
8073441
:rotating_light: fix warnings
nlohmann Jan 28, 2021
eacf4f4
:zap: add optimization to sanitizer build
nlohmann Jan 28, 2021
1101f0e
:rotating_light: fix warnings
nlohmann Jan 29, 2021
baaa706
:rotating_light: add missing header
nlohmann Jan 29, 2021
52aa607
:rotating_light: fix warnings
nlohmann Jan 29, 2021
37b8071
:rotating_light: fix warnings
nlohmann Jan 29, 2021
0b7af87
:rotating_light: fix warnings
nlohmann Jan 29, 2021
2465302
:rotating_light: fix warnings
nlohmann Jan 29, 2021
7b3ba24
:rotating_light: fix warnings
nlohmann Jan 29, 2021
b66ebcc
:rotating_light: fix warnings
nlohmann Jan 30, 2021
4ba6070
:rotating_light: fix warnings
nlohmann Jan 30, 2021
9b1d469
:construction_worker: add CI step for coverage
nlohmann Jan 30, 2021
6413f31
:construction_worker: add CI step for coverage
nlohmann Jan 31, 2021
143cc06
:construction_worker: add CI step for coverage
nlohmann Jan 31, 2021
0f43ba9
:construction_worker: add CI step for coverage
nlohmann Jan 31, 2021
6738fbd
:construction_worker: add CI step for coverage
nlohmann Jan 31, 2021
9ced2bf
:construction_worker: add CI step for coverage
nlohmann Jan 31, 2021
21a193c
:construction_worker: add CI step for coverage
nlohmann Jan 31, 2021
053ed6c
:construction_worker: add CI step for coverage
nlohmann Jan 31, 2021
829f119
:construction_worker: add CI step for coverage
nlohmann Jan 31, 2021
91475ee
:construction_worker: add CI step for coverage
nlohmann Jan 31, 2021
d6f54a0
:construction_worker: add CI step for coverage
nlohmann Jan 31, 2021
5573533
:construction_worker: add CI step for coverage
nlohmann Jan 31, 2021
799472a
:construction_worker: add CI step for coverage
nlohmann Jan 31, 2021
8d99352
Merge branch 'develop' of https://github.com/nlohmann/json into ci
nlohmann Feb 7, 2021
c9e66df
:construction_worker: add CI steps for disabled exceptions and implic…
nlohmann Feb 8, 2021
fd37fc5
Merge branch 'develop' of https://github.com/nlohmann/json into ci
nlohmann Feb 8, 2021
29b27e3
:rotating_light: fix warnings
nlohmann Feb 8, 2021
d68b7f7
:construction_worker: add CI steps for checking indentation
nlohmann Feb 9, 2021
efc1116
:bug: fix variable use
nlohmann Feb 9, 2021
2b0d696
:twisted_rightwards_arrows: merge develop
nlohmann Feb 10, 2021
bea760c
:green_heart: fix build
nlohmann Feb 10, 2021
378622c
:heavy_minus_sign: remove CircleCI
nlohmann Feb 10, 2021
9882e4a
:construction_worker: add CI step for diagnostics
nlohmann Feb 10, 2021
3d1048e
Merge branch 'develop' of https://github.com/nlohmann/json into ci
nlohmann Mar 23, 2021
1e08af8
:rotating_light: fix warning
nlohmann Mar 23, 2021
fc38454
:rotating_light: fix warning
nlohmann Mar 23, 2021
5306eef
:rotating_light: fix warning
nlohmann Mar 23, 2021
4428121
:rotating_light: fix warning
nlohmann Mar 23, 2021
bc23505
:rotating_light: fix warning
nlohmann Mar 23, 2021
63c52b1
:rotating_light: fix warning
nlohmann Mar 23, 2021
f7ada0a
:rotating_light: fix warning
nlohmann Mar 23, 2021
3d0812a
:fire: clean Travis
nlohmann Mar 23, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ option(JSON_BuildTests "Build the unit tests when BUILD_TESTING is enabled." ${M
option(JSON_Install "Install CMake targets during install step." ${MAIN_PROJECT})
option(JSON_MultipleHeaders "Use non-amalgamated version of the library." OFF)
option(JSON_ImplicitConversions "Enable implicit conversions." ON)
option(JSON_CI "Enable CI build targets." OFF)

if (JSON_CI)
include(cmake/ci.cmake)
endif ()

##
## CONFIGURATION
Expand Down
466 changes: 466 additions & 0 deletions cmake/ci.cmake

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions include/nlohmann/ordered_map.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#pragma once

#include <functional> // less
#include <initializer_list> // initializer_list
#include <iterator> // input_iterator_tag, iterator_traits
#include <memory> // allocator
#include <stdexcept> // for out_of_range
#include <type_traits> // enable_if, is_convertible
#include <utility> // pair
#include <vector> // vector

Expand Down
4 changes: 4 additions & 0 deletions single_include/nlohmann/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16511,7 +16511,11 @@ class serializer


#include <functional> // less
#include <initializer_list> // initializer_list
#include <iterator> // input_iterator_tag, iterator_traits
#include <memory> // allocator
#include <stdexcept> // for out_of_range
#include <type_traits> // enable_if, is_convertible
#include <utility> // pair
#include <vector> // vector

Expand Down
2 changes: 2 additions & 0 deletions test/src/unit-regression2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,14 @@ struct Data
std::string b {};
};

void from_json(const json& j, Data& data);
nlohmann marked this conversation as resolved.
Show resolved Hide resolved
void from_json(const json& j, Data& data)
{
j["a"].get_to(data.a);
j["b"].get_to(data.b);
}

bool operator==(Data const& lhs, Data const& rhs);
bool operator==(Data const& lhs, Data const& rhs)
{
return lhs.a == rhs.a && lhs.b == rhs.b;
Expand Down
2 changes: 1 addition & 1 deletion test/src/unit-udt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ template <typename BasicJsonType>
static void from_json(const BasicJsonType& j, country& c)
{
const auto str = j.template get<std::string>();
static const std::map<std::string, country> m =
const std::map<std::string, country> m =
{
{"中华人民共和国", country::china},
{"France", country::france},
Expand Down
7 changes: 7 additions & 0 deletions test/src/unit-user_defined_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ TEST_CASE("Custom iterator")
const char* ptr;
};

// avoid -Wunused-local-typedefs
CHECK(std::is_same<MyIterator::difference_type, std::size_t>::value);
CHECK(std::is_same<MyIterator::value_type, char>::value);
CHECK(std::is_same<MyIterator::pointer, const char*>::value);
CHECK(std::is_same<MyIterator::reference, const char&>::value);
CHECK(std::is_same<MyIterator::iterator_category, std::input_iterator_tag>::value);

MyIterator begin{raw_data};
MyIterator end{raw_data + strlen(raw_data)};

Expand Down