Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
json
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
json
Commits
b715a706
Commit
b715a706
authored
May 28, 2020
by
Francois Chabot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed macro order to satisfy clang
parent
76462539
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
22 deletions
+22
-22
json.hpp
include/nlohmann/json.hpp
+11
-11
json.hpp
single_include/nlohmann/json.hpp
+11
-11
No files found.
include/nlohmann/json.hpp
View file @
b715a706
...
@@ -6639,8 +6639,8 @@ class basic_json
...
@@ -6639,8 +6639,8 @@ class basic_json
return
result
;
return
result
;
}
}
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
parse
(
ptr
,
ptr
+
len
))
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
parse
(
ptr
,
ptr
+
len
))
static
basic_json
parse
(
detail
::
span_input_adapter
&&
i
,
static
basic_json
parse
(
detail
::
span_input_adapter
&&
i
,
const
parser_callback_t
cb
=
nullptr
,
const
parser_callback_t
cb
=
nullptr
,
const
bool
allow_exceptions
=
true
)
const
bool
allow_exceptions
=
true
)
...
@@ -6662,8 +6662,8 @@ class basic_json
...
@@ -6662,8 +6662,8 @@ class basic_json
return
parser
(
detail
::
input_adapter
(
std
::
move
(
first
),
std
::
move
(
last
))).
accept
(
true
);
return
parser
(
detail
::
input_adapter
(
std
::
move
(
first
),
std
::
move
(
last
))).
accept
(
true
);
}
}
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
accept
(
ptr
,
ptr
+
len
))
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
accept
(
ptr
,
ptr
+
len
))
static
bool
accept
(
detail
::
span_input_adapter
&&
i
)
static
bool
accept
(
detail
::
span_input_adapter
&&
i
)
{
{
return
parser
(
i
.
get
()).
accept
(
true
);
return
parser
(
i
.
get
()).
accept
(
true
);
...
@@ -6731,8 +6731,8 @@ class basic_json
...
@@ -6731,8 +6731,8 @@ class basic_json
}
}
template
<
typename
SAX
>
template
<
typename
SAX
>
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
sax_parse
(
ptr
,
ptr
+
len
,
...))
JSON_HEDLEY_NON_NULL
(
2
)
JSON_HEDLEY_NON_NULL
(
2
)
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
sax_parse
(
ptr
,
ptr
+
len
,
...))
static
bool
sax_parse
(
detail
::
span_input_adapter
&&
i
,
SAX
*
sax
,
static
bool
sax_parse
(
detail
::
span_input_adapter
&&
i
,
SAX
*
sax
,
input_format_t
format
=
input_format_t
::
json
,
input_format_t
format
=
input_format_t
::
json
,
const
bool
strict
=
true
)
const
bool
strict
=
true
)
...
@@ -7408,8 +7408,8 @@ class basic_json
...
@@ -7408,8 +7408,8 @@ class basic_json
}
}
template
<
typename
T
>
template
<
typename
T
>
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_cbor
(
ptr
,
ptr
+
len
))
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_cbor
(
ptr
,
ptr
+
len
))
static
basic_json
from_cbor
(
const
T
*
ptr
,
std
::
size_t
len
,
static
basic_json
from_cbor
(
const
T
*
ptr
,
std
::
size_t
len
,
const
bool
strict
=
true
,
const
bool
strict
=
true
,
const
bool
allow_exceptions
=
true
)
const
bool
allow_exceptions
=
true
)
...
@@ -7418,8 +7418,8 @@ class basic_json
...
@@ -7418,8 +7418,8 @@ class basic_json
}
}
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_cbor
(
ptr
,
ptr
+
len
))
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_cbor
(
ptr
,
ptr
+
len
))
static
basic_json
from_cbor
(
detail
::
span_input_adapter
&&
i
,
static
basic_json
from_cbor
(
detail
::
span_input_adapter
&&
i
,
const
bool
strict
=
true
,
const
bool
strict
=
true
,
const
bool
allow_exceptions
=
true
)
const
bool
allow_exceptions
=
true
)
...
@@ -7548,8 +7548,8 @@ class basic_json
...
@@ -7548,8 +7548,8 @@ class basic_json
template
<
typename
T
>
template
<
typename
T
>
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_msgpack
(
ptr
,
ptr
+
len
))
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_msgpack
(
ptr
,
ptr
+
len
))
static
basic_json
from_msgpack
(
const
T
*
ptr
,
std
::
size_t
len
,
static
basic_json
from_msgpack
(
const
T
*
ptr
,
std
::
size_t
len
,
const
bool
strict
=
true
,
const
bool
strict
=
true
,
const
bool
allow_exceptions
=
true
)
const
bool
allow_exceptions
=
true
)
...
@@ -7557,8 +7557,8 @@ class basic_json
...
@@ -7557,8 +7557,8 @@ class basic_json
return
from_msgpack
(
ptr
,
ptr
+
len
,
strict
,
allow_exceptions
);
return
from_msgpack
(
ptr
,
ptr
+
len
,
strict
,
allow_exceptions
);
}
}
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_msgpack
(
ptr
,
ptr
+
len
))
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_msgpack
(
ptr
,
ptr
+
len
))
static
basic_json
from_msgpack
(
detail
::
span_input_adapter
&&
i
,
static
basic_json
from_msgpack
(
detail
::
span_input_adapter
&&
i
,
const
bool
strict
=
true
,
const
bool
strict
=
true
,
const
bool
allow_exceptions
=
true
)
const
bool
allow_exceptions
=
true
)
...
@@ -7662,8 +7662,8 @@ class basic_json
...
@@ -7662,8 +7662,8 @@ class basic_json
}
}
template
<
typename
T
>
template
<
typename
T
>
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_ubjson
(
ptr
,
ptr
+
len
))
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_ubjson
(
ptr
,
ptr
+
len
))
static
basic_json
from_ubjson
(
const
T
*
ptr
,
std
::
size_t
len
,
static
basic_json
from_ubjson
(
const
T
*
ptr
,
std
::
size_t
len
,
const
bool
strict
=
true
,
const
bool
strict
=
true
,
const
bool
allow_exceptions
=
true
)
const
bool
allow_exceptions
=
true
)
...
@@ -7671,8 +7671,8 @@ class basic_json
...
@@ -7671,8 +7671,8 @@ class basic_json
return
from_ubjson
(
ptr
,
ptr
+
len
,
strict
,
allow_exceptions
);
return
from_ubjson
(
ptr
,
ptr
+
len
,
strict
,
allow_exceptions
);
}
}
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_ubjson
(
ptr
,
ptr
+
len
))
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_ubjson
(
ptr
,
ptr
+
len
))
static
basic_json
from_ubjson
(
detail
::
span_input_adapter
&&
i
,
static
basic_json
from_ubjson
(
detail
::
span_input_adapter
&&
i
,
const
bool
strict
=
true
,
const
bool
strict
=
true
,
const
bool
allow_exceptions
=
true
)
const
bool
allow_exceptions
=
true
)
...
@@ -7775,8 +7775,8 @@ class basic_json
...
@@ -7775,8 +7775,8 @@ class basic_json
}
}
template
<
typename
T
>
template
<
typename
T
>
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_bson
(
ptr
,
ptr
+
len
))
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_bson
(
ptr
,
ptr
+
len
))
static
basic_json
from_bson
(
const
T
*
ptr
,
std
::
size_t
len
,
static
basic_json
from_bson
(
const
T
*
ptr
,
std
::
size_t
len
,
const
bool
strict
=
true
,
const
bool
strict
=
true
,
const
bool
allow_exceptions
=
true
)
const
bool
allow_exceptions
=
true
)
...
@@ -7784,8 +7784,8 @@ class basic_json
...
@@ -7784,8 +7784,8 @@ class basic_json
return
from_bson
(
ptr
,
ptr
+
len
,
strict
,
allow_exceptions
);
return
from_bson
(
ptr
,
ptr
+
len
,
strict
,
allow_exceptions
);
}
}
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_bson
(
ptr
,
ptr
+
len
))
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_bson
(
ptr
,
ptr
+
len
))
static
basic_json
from_bson
(
detail
::
span_input_adapter
&&
i
,
static
basic_json
from_bson
(
detail
::
span_input_adapter
&&
i
,
const
bool
strict
=
true
,
const
bool
strict
=
true
,
const
bool
allow_exceptions
=
true
)
const
bool
allow_exceptions
=
true
)
...
...
single_include/nlohmann/json.hpp
View file @
b715a706
...
@@ -22402,8 +22402,8 @@ class basic_json
...
@@ -22402,8 +22402,8 @@ class basic_json
return
result
;
return
result
;
}
}
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
parse
(
ptr
,
ptr
+
len
))
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
parse
(
ptr
,
ptr
+
len
))
static
basic_json
parse
(
detail
::
span_input_adapter
&&
i
,
static
basic_json
parse
(
detail
::
span_input_adapter
&&
i
,
const
parser_callback_t
cb
=
nullptr
,
const
parser_callback_t
cb
=
nullptr
,
const
bool
allow_exceptions
=
true
)
const
bool
allow_exceptions
=
true
)
...
@@ -22425,8 +22425,8 @@ class basic_json
...
@@ -22425,8 +22425,8 @@ class basic_json
return
parser
(
detail
::
input_adapter
(
std
::
move
(
first
),
std
::
move
(
last
))).
accept
(
true
);
return
parser
(
detail
::
input_adapter
(
std
::
move
(
first
),
std
::
move
(
last
))).
accept
(
true
);
}
}
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
accept
(
ptr
,
ptr
+
len
))
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
accept
(
ptr
,
ptr
+
len
))
static
bool
accept
(
detail
::
span_input_adapter
&&
i
)
static
bool
accept
(
detail
::
span_input_adapter
&&
i
)
{
{
return
parser
(
i
.
get
()).
accept
(
true
);
return
parser
(
i
.
get
()).
accept
(
true
);
...
@@ -22494,8 +22494,8 @@ class basic_json
...
@@ -22494,8 +22494,8 @@ class basic_json
}
}
template
<
typename
SAX
>
template
<
typename
SAX
>
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
sax_parse
(
ptr
,
ptr
+
len
,
...))
JSON_HEDLEY_NON_NULL
(
2
)
JSON_HEDLEY_NON_NULL
(
2
)
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
sax_parse
(
ptr
,
ptr
+
len
,
...))
static
bool
sax_parse
(
detail
::
span_input_adapter
&&
i
,
SAX
*
sax
,
static
bool
sax_parse
(
detail
::
span_input_adapter
&&
i
,
SAX
*
sax
,
input_format_t
format
=
input_format_t
::
json
,
input_format_t
format
=
input_format_t
::
json
,
const
bool
strict
=
true
)
const
bool
strict
=
true
)
...
@@ -23171,8 +23171,8 @@ class basic_json
...
@@ -23171,8 +23171,8 @@ class basic_json
}
}
template
<
typename
T
>
template
<
typename
T
>
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_cbor
(
ptr
,
ptr
+
len
))
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_cbor
(
ptr
,
ptr
+
len
))
static
basic_json
from_cbor
(
const
T
*
ptr
,
std
::
size_t
len
,
static
basic_json
from_cbor
(
const
T
*
ptr
,
std
::
size_t
len
,
const
bool
strict
=
true
,
const
bool
strict
=
true
,
const
bool
allow_exceptions
=
true
)
const
bool
allow_exceptions
=
true
)
...
@@ -23181,8 +23181,8 @@ class basic_json
...
@@ -23181,8 +23181,8 @@ class basic_json
}
}
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_cbor
(
ptr
,
ptr
+
len
))
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_cbor
(
ptr
,
ptr
+
len
))
static
basic_json
from_cbor
(
detail
::
span_input_adapter
&&
i
,
static
basic_json
from_cbor
(
detail
::
span_input_adapter
&&
i
,
const
bool
strict
=
true
,
const
bool
strict
=
true
,
const
bool
allow_exceptions
=
true
)
const
bool
allow_exceptions
=
true
)
...
@@ -23311,8 +23311,8 @@ class basic_json
...
@@ -23311,8 +23311,8 @@ class basic_json
template
<
typename
T
>
template
<
typename
T
>
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_msgpack
(
ptr
,
ptr
+
len
))
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_msgpack
(
ptr
,
ptr
+
len
))
static
basic_json
from_msgpack
(
const
T
*
ptr
,
std
::
size_t
len
,
static
basic_json
from_msgpack
(
const
T
*
ptr
,
std
::
size_t
len
,
const
bool
strict
=
true
,
const
bool
strict
=
true
,
const
bool
allow_exceptions
=
true
)
const
bool
allow_exceptions
=
true
)
...
@@ -23320,8 +23320,8 @@ class basic_json
...
@@ -23320,8 +23320,8 @@ class basic_json
return
from_msgpack
(
ptr
,
ptr
+
len
,
strict
,
allow_exceptions
);
return
from_msgpack
(
ptr
,
ptr
+
len
,
strict
,
allow_exceptions
);
}
}
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_msgpack
(
ptr
,
ptr
+
len
))
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_msgpack
(
ptr
,
ptr
+
len
))
static
basic_json
from_msgpack
(
detail
::
span_input_adapter
&&
i
,
static
basic_json
from_msgpack
(
detail
::
span_input_adapter
&&
i
,
const
bool
strict
=
true
,
const
bool
strict
=
true
,
const
bool
allow_exceptions
=
true
)
const
bool
allow_exceptions
=
true
)
...
@@ -23425,8 +23425,8 @@ class basic_json
...
@@ -23425,8 +23425,8 @@ class basic_json
}
}
template
<
typename
T
>
template
<
typename
T
>
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_ubjson
(
ptr
,
ptr
+
len
))
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_ubjson
(
ptr
,
ptr
+
len
))
static
basic_json
from_ubjson
(
const
T
*
ptr
,
std
::
size_t
len
,
static
basic_json
from_ubjson
(
const
T
*
ptr
,
std
::
size_t
len
,
const
bool
strict
=
true
,
const
bool
strict
=
true
,
const
bool
allow_exceptions
=
true
)
const
bool
allow_exceptions
=
true
)
...
@@ -23434,8 +23434,8 @@ class basic_json
...
@@ -23434,8 +23434,8 @@ class basic_json
return
from_ubjson
(
ptr
,
ptr
+
len
,
strict
,
allow_exceptions
);
return
from_ubjson
(
ptr
,
ptr
+
len
,
strict
,
allow_exceptions
);
}
}
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_ubjson
(
ptr
,
ptr
+
len
))
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_ubjson
(
ptr
,
ptr
+
len
))
static
basic_json
from_ubjson
(
detail
::
span_input_adapter
&&
i
,
static
basic_json
from_ubjson
(
detail
::
span_input_adapter
&&
i
,
const
bool
strict
=
true
,
const
bool
strict
=
true
,
const
bool
allow_exceptions
=
true
)
const
bool
allow_exceptions
=
true
)
...
@@ -23538,8 +23538,8 @@ class basic_json
...
@@ -23538,8 +23538,8 @@ class basic_json
}
}
template
<
typename
T
>
template
<
typename
T
>
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_bson
(
ptr
,
ptr
+
len
))
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_bson
(
ptr
,
ptr
+
len
))
static
basic_json
from_bson
(
const
T
*
ptr
,
std
::
size_t
len
,
static
basic_json
from_bson
(
const
T
*
ptr
,
std
::
size_t
len
,
const
bool
strict
=
true
,
const
bool
strict
=
true
,
const
bool
allow_exceptions
=
true
)
const
bool
allow_exceptions
=
true
)
...
@@ -23547,8 +23547,8 @@ class basic_json
...
@@ -23547,8 +23547,8 @@ class basic_json
return
from_bson
(
ptr
,
ptr
+
len
,
strict
,
allow_exceptions
);
return
from_bson
(
ptr
,
ptr
+
len
,
strict
,
allow_exceptions
);
}
}
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_bson
(
ptr
,
ptr
+
len
))
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_WARN_UNUSED_RESULT
JSON_HEDLEY_DEPRECATED_FOR
(
3.8.0
,
from_bson
(
ptr
,
ptr
+
len
))
static
basic_json
from_bson
(
detail
::
span_input_adapter
&&
i
,
static
basic_json
from_bson
(
detail
::
span_input_adapter
&&
i
,
const
bool
strict
=
true
,
const
bool
strict
=
true
,
const
bool
allow_exceptions
=
true
)
const
bool
allow_exceptions
=
true
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment