Skip to content

Commit 4a4f140

Browse files
authored
Merge pull request #3 from TechSmith/update/upstream/1.9.5
Update code from the upstream repo to v1.9.5
2 parents dcd666f + 3d4ef42 commit 4a4f140

File tree

239 files changed

+11648
-6810
lines changed

Some content is hidden

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

239 files changed

+11648
-6810
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
31-
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-
...
1+
BasedOnStyle: LLVM
2+
DerivePointerAlignment: false
3+
PointerAlignment: Left
474

.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+

.gitattributes

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
* text=auto
2+
*.h text
3+
*.cpp text
4+
*.json text
5+
*.in text
6+
*.sh eol=lf
7+
*.bat eol=crlf
8+
*.vcproj eol=crlf
9+
*.vcxproj eol=crlf
10+
*.sln eol=crlf
11+
devtools/agent_vm* eol=crlf

.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.

.gitignore

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,59 @@
11
/build/
2+
/build-*/
23
*.pyc
34
*.swp
45
*.actual
56
*.actual-rewrite
67
*.process-output
78
*.rewrite
89
/bin/
9-
/buildscons/
1010
/libs/
1111
/doc/doxyfile
1212
/dist/
13-
#/include/json/version.h
13+
/.cache/
14+
/.vs/
15+
/out/
16+
17+
# MSVC project files:
18+
*.sln
19+
*.vcxproj
20+
*.filters
21+
*.user
22+
*.sdf
23+
*.opensdf
24+
*.suo
25+
26+
# MSVC build files:
27+
*.lib
28+
*.obj
29+
*.tlog/
30+
*.pdb
31+
32+
# CMake-generated files:
33+
CMakeFiles/
34+
/pkg-config/jsoncpp.pc
35+
jsoncpp_lib_static.dir/
36+
compile_commands.json
37+
38+
# In case someone runs cmake in the root-dir:
39+
/CMakeCache.txt
40+
/Makefile
41+
/include/Makefile
42+
/src/Makefile
43+
/src/jsontestrunner/Makefile
44+
/src/jsontestrunner/jsontestrunner_exe
45+
/src/lib_json/Makefile
46+
/src/test_lib_json/Makefile
47+
/src/test_lib_json/jsoncpp_test
48+
*.a
49+
50+
# eclipse project files
51+
.project
52+
.cproject
53+
/.settings/
54+
55+
# DS_Store
56+
.DS_Store
57+
58+
# temps
59+
/version

.travis.yml

Lines changed: 69 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,71 @@
1-
# Build matrix / environment variable are explained on:
2-
# http://about.travis-ci.org/docs/user/build-configuration/
3-
# This file can be validated on:
4-
# http://lint.travis-ci.org/
5-
before_install: sudo apt-get install cmake
1+
# Build matrix / environment variables are explained on:
2+
# http://about.travis-ci.com/docs/user/build-configuration/
3+
# This file can be validated on: http://www.yamllint.com/
4+
# Or using the Ruby based travel command line tool:
5+
# gem install travis --no-rdoc --no-ri
6+
# travis lint .travis.yml
67
language: cpp
7-
compiler:
8-
- gcc
9-
- clang
10-
script: cmake -DJSONCPP_LIB_BUILD_SHARED=$SHARED_LIBRARY -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_VERBOSE_MAKEFILE=$VERBOSE_MAKE . && make
11-
env:
12-
matrix:
13-
- SHARED_LIBRARY=ON BUILD_TYPE=release VERBOSE_MAKE=false
14-
- SHARED_LIBRARY=OFF BUILD_TYPE=release VERBOSE_MAKE=false
15-
- SHARED_LIBRARY=OFF BUILD_TYPE=debug VERBOSE VERBOSE_MAKE=true
8+
sudo: false
9+
addons:
10+
homebrew:
11+
packages:
12+
- clang-format
13+
- meson
14+
- ninja
15+
update: false # do not update homebrew by default
16+
apt:
17+
sources:
18+
- ubuntu-toolchain-r-test
19+
- llvm-toolchain-xenial-8
20+
packages:
21+
- clang-format-8
22+
- clang-8
23+
- valgrind
24+
matrix:
25+
include:
26+
- name: Mac clang meson static release testing
27+
os: osx
28+
osx_image: xcode11
29+
compiler: clang
30+
env:
31+
CXX="clang++"
32+
CC="clang"
33+
LIB_TYPE=static
34+
BUILD_TYPE=release
35+
script: ./.travis_scripts/meson_builder.sh
36+
- name: Linux xenial clang meson static release testing
37+
os: linux
38+
dist: xenial
39+
compiler: clang
40+
env:
41+
CXX="clang++"
42+
CC="clang"
43+
LIB_TYPE=static
44+
BUILD_TYPE=release
45+
PYTHONUSERBASE="$(pwd)/LOCAL"
46+
PATH="$PYTHONUSERBASE/bin:$PATH"
47+
# before_install and install steps only needed for linux meson builds
48+
before_install:
49+
- source ./.travis_scripts/travis.before_install.${TRAVIS_OS_NAME}.sh
50+
install:
51+
- source ./.travis_scripts/travis.install.${TRAVIS_OS_NAME}.sh
52+
script: ./.travis_scripts/meson_builder.sh
53+
- name: Linux xenial gcc cmake coverage
54+
os: linux
55+
dist: xenial
56+
compiler: gcc
57+
env:
58+
CXX=g++
59+
CC=gcc
60+
DO_Coverage=ON
61+
BUILD_TOOL="Unix Makefiles"
62+
BUILD_TYPE=Debug
63+
LIB_TYPE=shared
64+
DESTDIR=/tmp/cmake_json_cpp
65+
before_install:
66+
- pip install --user cpp-coveralls
67+
script: ./.travis_scripts/cmake_builder.sh
68+
after_success:
69+
- coveralls --include src/lib_json --include include
1670
notifications:
17-
email:
18-
71+
email: false

0 commit comments

Comments
 (0)