mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-05 19:03:30 -04:00
run clang format
This commit is contained in:
parent
7f7b02b95e
commit
2ff6cbcb97
@ -1831,7 +1831,8 @@ String OurReader::getFormattedErrorMessages() const {
|
||||
return formattedMessage;
|
||||
}
|
||||
|
||||
std::vector<CharReader::StructuredError> OurReader::getStructuredErrors() const {
|
||||
std::vector<CharReader::StructuredError>
|
||||
OurReader::getStructuredErrors() const {
|
||||
std::vector<CharReader::StructuredError> allErrors;
|
||||
for (const auto& error : errors_) {
|
||||
CharReader::StructuredError structured;
|
||||
@ -1847,7 +1848,8 @@ class OurCharReader : public CharReader {
|
||||
|
||||
public:
|
||||
OurCharReader(bool collectComments, OurFeatures const& features)
|
||||
: CharReader(std::unique_ptr<OurImpl>(new OurImpl(collectComments, features))) {}
|
||||
: CharReader(
|
||||
std::unique_ptr<OurImpl>(new OurImpl(collectComments, features))) {}
|
||||
|
||||
protected:
|
||||
class OurImpl : public Impl {
|
||||
@ -1864,7 +1866,8 @@ protected:
|
||||
return ok;
|
||||
}
|
||||
|
||||
std::vector<CharReader::StructuredError> getStructuredErrors() const override {
|
||||
std::vector<CharReader::StructuredError>
|
||||
getStructuredErrors() const override {
|
||||
return reader_.getStructuredErrors();
|
||||
}
|
||||
|
||||
@ -1961,7 +1964,8 @@ void CharReaderBuilder::setDefaults(Json::Value* settings) {
|
||||
//! [CharReaderBuilderDefaults]
|
||||
}
|
||||
|
||||
std::vector<CharReader::StructuredError> CharReader::getStructuredErrors() const {
|
||||
std::vector<CharReader::StructuredError>
|
||||
CharReader::getStructuredErrors() const {
|
||||
return _impl->getStructuredErrors();
|
||||
}
|
||||
|
||||
|
@ -3918,7 +3918,8 @@ JSONTEST_FIXTURE_LOCAL(FuzzTest, fuzzDoesntCrash) {
|
||||
}
|
||||
|
||||
struct ParseWithStructuredErrorsTest : JsonTest::TestCase {
|
||||
void testErrors(const std::string& doc, bool success,
|
||||
void testErrors(
|
||||
const std::string& doc, bool success,
|
||||
const std::vector<Json::CharReader::StructuredError>& expectedErrors) {
|
||||
Json::CharReaderBuilder b;
|
||||
CharReaderPtr reader(b.newCharReader());
|
||||
|
Loading…
x
Reference in New Issue
Block a user