Skip to content

Commit bdf7ca8

Browse files
committed
Merge tag '1.9.6' into backup-old-master
2 parents e0790a9 + 89e2973 commit bdf7ca8

File tree

217 files changed

+6432
-5447
lines changed

Some content is hidden

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

217 files changed

+6432
-5447
lines changed

.clang-format

Lines changed: 3 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,4 @@
1-
---
2-
# BasedOnStyle: LLVM
3-
AccessModifierOffset: -2
4-
ConstructorInitializerIndentWidth: 4
5-
AlignEscapedNewlinesLeft: false
6-
AlignTrailingComments: true
7-
AllowAllParametersOfDeclarationOnNextLine: true
8-
AllowShortIfStatementsOnASingleLine: false
9-
AllowShortLoopsOnASingleLine: false
10-
AlwaysBreakTemplateDeclarations: false
11-
AlwaysBreakBeforeMultilineStrings: false
12-
BreakBeforeBinaryOperators: false
13-
BreakBeforeTernaryOperators: true
14-
BreakConstructorInitializersBeforeComma: false
15-
BinPackParameters: false
16-
ColumnLimit: 80
17-
ConstructorInitializerAllOnOneLineOrOnePerLine: false
18-
DerivePointerBinding: false
19-
ExperimentalAutoDetectBinPacking: false
20-
IndentCaseLabels: false
21-
MaxEmptyLinesToKeep: 1
22-
NamespaceIndentation: None
23-
ObjCSpaceBeforeProtocolList: true
24-
PenaltyBreakBeforeFirstCallParameter: 19
25-
PenaltyBreakComment: 60
26-
PenaltyBreakString: 1000
27-
PenaltyBreakFirstLessLess: 120
28-
PenaltyExcessCharacter: 1000000
29-
PenaltyReturnTypeOnItsOwnLine: 60
30-
PointerBindsToType: true
1+
BasedOnStyle: LLVM
2+
DerivePointerAlignment: false
3+
PointerAlignment: Left
314
SpacesBeforeTrailingComments: 1
32-
Cpp11BracedListStyle: false
33-
Standard: Cpp03
34-
IndentWidth: 2
35-
TabWidth: 8
36-
UseTab: Never
37-
BreakBeforeBraces: Attach
38-
IndentFunctionDeclarationAfterType: false
39-
SpacesInParentheses: false
40-
SpacesInAngles: false
41-
SpaceInEmptyParentheses: false
42-
SpacesInCStyleCastParentheses: false
43-
SpaceAfterControlStatementKeyword: true
44-
SpaceBeforeAssignmentOperators: true
45-
ContinuationIndentWidth: 4
46-
...
47-

.clang-tidy

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
Checks: 'google-readability-casting,modernize-deprecated-headers,modernize-loop-convert,modernize-use-auto,modernize-use-default-member-init,modernize-use-using,readability-else-after-return,readability-redundant-member-init,readability-redundant-string-cstr'
3+
WarningsAsErrors: ''
4+
HeaderFilterRegex: ''
5+
AnalyzeTemporaryDtors: false
6+
FormatStyle: none
7+
CheckOptions:
8+
- key: modernize-use-using.IgnoreMacros
9+
value: '0'
10+
...
11+

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1.
16+
17+
**Expected behavior**
18+
A clear and concise description of what you expected to happen.
19+
20+
**Desktop (please complete the following information):**
21+
- OS: [e.g. iOS]
22+
- Meson version
23+
- Ninja version
24+
25+
**Additional context**
26+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/clang-format.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: clang-format check
2+
on: [check_run, pull_request, push]
3+
4+
jobs:
5+
formatting-check:
6+
name: formatting check
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
path:
11+
- 'src'
12+
- 'examples'
13+
- 'include'
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: runs clang-format style check for C/C++/Protobuf programs.
17+
uses: jidicula/[email protected]
18+
with:
19+
clang-format-version: '18'
20+
check-path: ${{ matrix.path }}

.github/workflows/cmake.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: cmake
2+
on: [check_run, push, pull_request]
3+
jobs:
4+
cmake-publish:
5+
runs-on: ${{ matrix.os }}
6+
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ubuntu-latest, windows-latest, macos-latest]
11+
12+
steps:
13+
- name: checkout project
14+
uses: actions/checkout@v4
15+
16+
- name: build project
17+
uses: threeal/[email protected]
18+

.github/workflows/meson.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: meson build and test
2+
run-name: update pushed to ${{ github.ref }}
3+
on: [check_run, push, pull_request]
4+
5+
jobs:
6+
meson-publish:
7+
runs-on: ${{ matrix.os }}
8+
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [ubuntu-latest, windows-latest, macos-latest]
13+
14+
steps:
15+
- name: checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: setup python
19+
uses: actions/setup-python@v5
20+
21+
- name: meson build
22+
uses: BSFishy/[email protected]
23+
with:
24+
meson-version: 1.5.1
25+
ninja-version: 1.11.1.1
26+
action: build
27+
28+
- name: meson test
29+
uses: BSFishy/[email protected]
30+
with:
31+
meson-version: 1.5.1
32+
ninja-version: 1.11.1.1
33+
action: test
34+
35+
meson-coverage:
36+
runs-on: ubuntu-latest
37+
38+
steps:
39+
- name: checkout repository
40+
uses: actions/checkout@v4
41+
42+
- name: setup python
43+
uses: actions/setup-python@v5
44+
45+
- name: meson build
46+
uses: BSFishy/[email protected]
47+
with:
48+
meson-version: 1.5.1
49+
ninja-version: 1.11.1.1
50+
setup-options: -Db_coverage=true
51+
action: build
52+
53+
- name: meson test
54+
uses: BSFishy/[email protected]
55+
with:
56+
meson-version: 1.5.1
57+
ninja-version: 1.11.1.1
58+
setup-options: -Db_coverage=true
59+
action: test
60+
61+
- name: generate code coverage report
62+
uses: threeal/[email protected]
63+
with:
64+
coveralls-send: true
65+
github-token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
/libs/
1111
/doc/doxyfile
1212
/dist/
13-
#/version
14-
#/include/json/version.h
13+
/.cache/
1514

1615
# MSVC project files:
1716
*.sln
@@ -30,9 +29,9 @@
3029

3130
# CMake-generated files:
3231
CMakeFiles/
33-
*.cmake
3432
/pkg-config/jsoncpp.pc
3533
jsoncpp_lib_static.dir/
34+
compile_commands.json
3635

3736
# In case someone runs cmake in the root-dir:
3837
/CMakeCache.txt
@@ -53,3 +52,6 @@ jsoncpp_lib_static.dir/
5352

5453
# DS_Store
5554
.DS_Store
55+
56+
# temps
57+
/version

.travis.yml

Lines changed: 0 additions & 56 deletions
This file was deleted.

AUTHORS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Braden McDorman <[email protected]>
2121
Brandon Myers <[email protected]>
2222
Brendan Drew <[email protected]>
2323
24+
chenguoping <[email protected]>
2425
Chris Gilling <[email protected]>
2526
Christopher Dawes <[email protected]>
2627
Christopher Dunn <[email protected]>
@@ -37,6 +38,7 @@ datadiode <[email protected]>
3738
David Seifert <[email protected]>
3839
David West <[email protected]>
3940
41+
Devin Jeanpierre <[email protected]>
4042
Dmitry Marakasov <[email protected]>
4143
dominicpezzuto <[email protected]>
4244
Don Milham <[email protected]>
@@ -57,6 +59,7 @@ Iñaki Baz Castillo <[email protected]>
5759
5860
Jean-Christophe Fillion-Robin <[email protected]>
5961
Jonas Platte <[email protected]>
62+
Jordan Bayles <[email protected]>
6063
Jörg Krause <[email protected]>
6164
Keith Lea <[email protected]>
6265
Kevin Grant <[email protected]>
@@ -95,6 +98,7 @@ selaselah <[email protected]>
9598
9699
97100
Stefan Schweter <[email protected]>
101+
Stefano Fiorentino <[email protected]>
98102
Steffen Kieß <[email protected]>
99103
Steven Hahn <[email protected]>
100104
Stuart Eichert <[email protected]>

BUILD.bazel

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
licenses(["unencumbered"]) # Public Domain or MIT
2+
3+
exports_files(["LICENSE"])
4+
5+
cc_library(
6+
name = "jsoncpp",
7+
srcs = [
8+
"src/lib_json/json_reader.cpp",
9+
"src/lib_json/json_tool.h",
10+
"src/lib_json/json_value.cpp",
11+
"src/lib_json/json_writer.cpp",
12+
],
13+
hdrs = [
14+
"include/json/allocator.h",
15+
"include/json/assertions.h",
16+
"include/json/config.h",
17+
"include/json/json_features.h",
18+
"include/json/forwards.h",
19+
"include/json/json.h",
20+
"include/json/reader.h",
21+
"include/json/value.h",
22+
"include/json/version.h",
23+
"include/json/writer.h",
24+
],
25+
copts = [
26+
"-DJSON_USE_EXCEPTION=0",
27+
"-DJSON_HAS_INT64",
28+
],
29+
includes = ["include"],
30+
visibility = ["//visibility:public"],
31+
deps = [":private"],
32+
)
33+
34+
cc_library(
35+
name = "private",
36+
textual_hdrs = ["src/lib_json/json_valueiterator.inl"],
37+
)

0 commit comments

Comments
 (0)