From ddc9e0fcd74fe478c575b12814bb9ce79b3db636 Mon Sep 17 00:00:00 2001 From: Jordan Bayles Date: Thu, 27 Jun 2019 12:01:43 -0700 Subject: [PATCH] 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. --- src/lib_json/json_value.cpp | 6 +++--- src/test_lib_json/main.cpp | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/lib_json/json_value.cpp b/src/lib_json/json_value.cpp index 508f18f..1cf4828 100644 --- a/src/lib_json/json_value.cpp +++ b/src/lib_json/json_value.cpp @@ -853,9 +853,9 @@ bool Value::asBool() const { case uintValue: return value_.uint_ ? true : false; case realValue: { - // According to JavaScript language zero or NaN is regarded as false - const auto value_classification = std::fpclassify(value_.real_); - return value_classification != FP_ZERO && value_classification != FP_NAN; + // According to JavaScript language zero or NaN is regarded as false + const auto value_classification = std::fpclassify(value_.real_); + return value_classification != FP_ZERO && value_classification != FP_NAN; } default: break; diff --git a/src/test_lib_json/main.cpp b/src/test_lib_json/main.cpp index 3fe7c01..fcda60e 100644 --- a/src/test_lib_json/main.cpp +++ b/src/test_lib_json/main.cpp @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -1649,7 +1648,7 @@ JSONTEST_FIXTURE(ValueTest, StaticString) { JSONTEST_FIXTURE(ValueTest, WideString) { // 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; { Json::Value v;