Skip to content

Commit 499422b

Browse files
committed
Merge branch 'release/3.11.0'
2 parents 4f8fba1 + ce0e13c commit 499422b

File tree

1,081 files changed

+49057
-12631
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,081 files changed

+49057
-12631
lines changed

.clang-tidy

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Checks: '*,
44
-altera-unroll-loops,
55
-android-cloexec-fopen,
66
-bugprone-easily-swappable-parameters,
7+
-cert-err58-cpp,
78
-concurrency-mt-unsafe,
89
-cppcoreguidelines-avoid-goto,
910
-cppcoreguidelines-avoid-magic-numbers,
@@ -42,6 +43,7 @@ Checks: '*,
4243
-readability-identifier-length,
4344
-readability-magic-numbers,
4445
-readability-redundant-access-specifiers,
46+
-readability-simplify-boolean-expr,
4547
-readability-uppercase-literal-suffix'
4648

4749
CheckOptions:
File renamed without changes.

.github/ISSUE_TEMPLATE/Bug_report.md

-57
This file was deleted.

.github/ISSUE_TEMPLATE/bug.yaml

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
name: Bug Report
2+
description: Create a bug report
3+
labels:
4+
- 'kind: bug'
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: >
9+
Thanks for taking the time to fill out this bug report!
10+
11+
Make sure you give it a short and specific **title** so that the report
12+
is searchable and uniquely identifiable.
13+
14+
Note that this form is for bug reports only. Please
15+
[open a discussion](https://github.com/nlohmann/json/discussions/new)
16+
for questions, feature requests, or support requests
17+
- type: textarea
18+
id: summary
19+
attributes:
20+
label: Description
21+
description: >
22+
Please provide an abstract description of the issue to the developers,
23+
and why you consider it to be a bug. Please include any specific links
24+
to the documentation, JSON specification, or code.
25+
validations:
26+
required: true
27+
- type: textarea
28+
id: reproduce
29+
attributes:
30+
label: Reproduction steps
31+
description: >
32+
How do you trigger the bug? Please walk us through step by step. Be as
33+
specific as possible.
34+
validations:
35+
required: true
36+
- type: textarea
37+
id: results
38+
attributes:
39+
label: Expected vs. actual results
40+
description: >
41+
Please describe what you expected to happen after the steps above and
42+
what actually happened.
43+
validations:
44+
required: true
45+
- type: textarea
46+
id: code
47+
attributes:
48+
label: Minimal code example
49+
description: >
50+
If possible, provide a small and self-contained example that triggers
51+
the bug. Please understand that we cannot analyze and debug large code
52+
bases. Please do not paste screenshots here.
53+
render: Shell
54+
- type: textarea
55+
id: output
56+
attributes:
57+
label: Error messages
58+
description: >
59+
Please provide any kind of error output (compilation errors, exception
60+
messages, stack traces, etc.) which can help to diagnose the error.
61+
render: Shell
62+
- type: input
63+
id: compiler
64+
attributes:
65+
label: Compiler and operating system
66+
description: >
67+
On which operating systems and compilers have you observed the issue?
68+
Include as many relevant details about the environment you experienced
69+
the bug in. Make sure you use a
70+
[supported compiler](https://github.com/nlohmann/json#supported-compilers).
71+
validations:
72+
required: true
73+
- type: input
74+
id: version
75+
attributes:
76+
label: Library version
77+
description: >
78+
Which version of the library did you use? If it is a released version,
79+
please enter the version number (e.g., 3.11.0). Otherwise, please enter
80+
the commit hash. If you got the library from another source as the
81+
GitHub repository (e.g., via a package manager), please also state
82+
this.
83+
validations:
84+
required: true
85+
- type: checkboxes
86+
id: validation
87+
attributes:
88+
label: Validation
89+
description: >
90+
Please check these additional steps:
91+
options:
92+
- label: The bug also occurs if the latest version from the [`develop`](https://github.com/nlohmann/json/tree/develop) branch is used.
93+
- label: I can successfully [compile and run the unit tests](https://github.com/nlohmann/json#execute-unit-tests).

.drone.yml .github/external_ci/.drone.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ steps:
1818
- cd build
1919
- ../cmake-3.20.2/bin/cmake .. -DJSON_FastTests=ON
2020
- make -j10
21-
- cd test
21+
- cd tests
2222
- ../../cmake-3.20.2/bin/ctest -j10

appveyor.yml .github/external_ci/appveyor.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ before_build:
6666
- cmake . -G "%GENERATOR%" -A "%GENERATOR_PLATFORM%" -DCMAKE_CXX_FLAGS="%CXX_FLAGS%" -DCMAKE_IGNORE_PATH="C:/Program Files/Git/usr/bin" -DJSON_BuildTests=On "%CMAKE_OPTIONS%"
6767

6868
build_script:
69-
- cmake --build . --config "%configuration%"
69+
- cmake --build . --config "%configuration%" --parallel 2
7070

7171
test_script:
72-
- if "%configuration%"=="Release" ctest -C "%configuration%" -V -j
72+
- if "%configuration%"=="Release" ctest -C "%configuration%" --parallel 2 --output-on-failure
7373
# On Debug builds, skip test-unicode_all
7474
# as it is extremely slow to run and cause
7575
# occasional timeouts on AppVeyor.
7676
# More info: https://github.com/nlohmann/json/pull/1570
77-
- if "%configuration%"=="Debug" ctest --exclude-regex "test-unicode" -C "%configuration%" -V -j
77+
- if "%configuration%"=="Debug" ctest --exclude-regex "test-unicode" -C "%configuration%" --parallel 2 --output-on-failure
7878

7979
# only build PRs and commits to develop branch
8080
# (see https://help.appveyor.com/discussions/questions/55079-two-builds-per-commit-to-pull-request)

.github/workflows/codeql-analysis.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ on:
99
pull_request:
1010
schedule:
1111
- cron: '0 19 * * 1'
12+
workflow_dispatch:
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
16+
cancel-in-progress: true
1217

1318
jobs:
1419
CodeQL-Build:
@@ -17,10 +22,10 @@ jobs:
1722

1823
steps:
1924
- name: Checkout repository
20-
uses: actions/checkout@v2
25+
uses: actions/checkout@v3
2126
with:
2227
# We must fetch at least the immediate parents so that if this is
23-
# a pull request then we can checkout the head.
28+
# a pull request then we can check out the head.
2429
fetch-depth: 2
2530

2631
# If this run was triggered by a pull request event, then checkout
@@ -30,15 +35,15 @@ jobs:
3035

3136
# Initializes the CodeQL tools for scanning.
3237
- name: Initialize CodeQL
33-
uses: github/codeql-action/init@v1
38+
uses: github/codeql-action/init@v2
3439
# Override language selection by uncommenting this and choosing your languages
3540
# with:
3641
# languages: go, javascript, csharp, python, cpp, java
3742

3843
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
3944
# If this step fails, then you should remove it and run the build manually (see below)
4045
- name: Autobuild
41-
uses: github/codeql-action/autobuild@v1
46+
uses: github/codeql-action/autobuild@v2
4247

4348
# ℹ️ Command-line programs to run using the OS shell.
4449
# 📚 https://git.io/JvXDl
@@ -52,4 +57,4 @@ jobs:
5257
# make release
5358

5459
- name: Perform CodeQL Analysis
55-
uses: github/codeql-action/analyze@v1
60+
uses: github/codeql-action/analyze@v2

.github/workflows/macos.yml

+27-5
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ on:
77
- master
88
- release/*
99
pull_request:
10+
workflow_dispatch:
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
14+
cancel-in-progress: true
1015

1116
jobs:
12-
xcode:
17+
xcode_1:
1318
runs-on: macos-10.15
1419
strategy:
1520
matrix:
@@ -18,7 +23,24 @@ jobs:
1823
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
1924

2025
steps:
21-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v3
27+
- name: cmake
28+
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DJSON_FastTests=ON
29+
- name: build
30+
run: cmake --build build --parallel 10
31+
- name: test
32+
run: cd build ; ctest -j 10 --output-on-failure
33+
34+
xcode_2:
35+
runs-on: macos-12
36+
strategy:
37+
matrix:
38+
xcode: [13.3.1, 13.3, 13.2.1, 13.2, 13.1]
39+
env:
40+
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
41+
42+
steps:
43+
- uses: actions/checkout@v3
2244
- name: cmake
2345
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DJSON_FastTests=ON
2446
- name: build
@@ -27,17 +49,17 @@ jobs:
2749
run: cd build ; ctest -j 10 --output-on-failure
2850

2951
xcode_standards:
30-
runs-on: macos-10.15
52+
runs-on: macos-latest
3153
strategy:
3254
matrix:
3355
standard: [11, 14, 17, 20]
3456
env:
3557
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
3658

3759
steps:
38-
- uses: actions/checkout@v2
60+
- uses: actions/checkout@v3
3961
- name: cmake
40-
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DCMAKE_CXX_STANDARD_REQUIRED=ON
62+
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DJSON_TestStandards=${{ matrix.standard }}
4163
- name: build
4264
run: cmake --build build --parallel 10
4365
- name: test

0 commit comments

Comments
 (0)