mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-01-14 01:47:54 +08:00
Run clang-format on the repository
We currently don't have any checks for clang formatting as part of our check-in process, this is an incremental patch to get things compliant.
This commit is contained in:
parent
879a5b80ce
commit
ddc9e0fcd7
@ -853,9 +853,9 @@ bool Value::asBool() const {
|
|||||||
case uintValue:
|
case uintValue:
|
||||||
return value_.uint_ ? true : false;
|
return value_.uint_ ? true : false;
|
||||||
case realValue: {
|
case realValue: {
|
||||||
// According to JavaScript language zero or NaN is regarded as false
|
// According to JavaScript language zero or NaN is regarded as false
|
||||||
const auto value_classification = std::fpclassify(value_.real_);
|
const auto value_classification = std::fpclassify(value_.real_);
|
||||||
return value_classification != FP_ZERO && value_classification != FP_NAN;
|
return value_classification != FP_ZERO && value_classification != FP_NAN;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sstream>
|
|
||||||
#include <json/config.h>
|
#include <json/config.h>
|
||||||
#include <json/json.h>
|
#include <json/json.h>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
@ -1649,7 +1648,7 @@ JSONTEST_FIXTURE(ValueTest, StaticString) {
|
|||||||
|
|
||||||
JSONTEST_FIXTURE(ValueTest, WideString) {
|
JSONTEST_FIXTURE(ValueTest, WideString) {
|
||||||
// https://github.com/open-source-parsers/jsoncpp/issues/756
|
// https://github.com/open-source-parsers/jsoncpp/issues/756
|
||||||
const std::string uni = u8"式,进"; // "\u5f0f\uff0c\u8fdb"
|
const std::string uni = u8"式,进"; // "\u5f0f\uff0c\u8fdb"
|
||||||
std::string styled;
|
std::string styled;
|
||||||
{
|
{
|
||||||
Json::Value v;
|
Json::Value v;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user