mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-06-07 09:04:57 +02:00
Ran clang-format over all .h and .cpp files.
clang-format -i $(find . -name '*.h' -or -name '*.cpp')
This commit is contained in:
parent
32009b17e4
commit
30b07c0275
@ -9,6 +9,8 @@
|
|||||||
#define JSONCPP_VERSION_MINOR 6
|
#define JSONCPP_VERSION_MINOR 6
|
||||||
#define JSONCPP_VERSION_PATCH 0
|
#define JSONCPP_VERSION_PATCH 0
|
||||||
#define JSONCPP_VERSION_QUALIFIER -dev
|
#define JSONCPP_VERSION_QUALIFIER -dev
|
||||||
# define JSONCPP_VERSION_HEXA ((JSONCPP_VERSION_MAJOR << 24) | (JSONCPP_VERSION_MINOR << 16) | (JSONCPP_VERSION_PATCH << 8))
|
#define JSONCPP_VERSION_HEXA \
|
||||||
|
((JSONCPP_VERSION_MAJOR << 24) | (JSONCPP_VERSION_MINOR << 16) | \
|
||||||
|
(JSONCPP_VERSION_PATCH << 8))
|
||||||
|
|
||||||
#endif // JSON_VERSION_H_INCLUDED
|
#endif // JSON_VERSION_H_INCLUDED
|
||||||
|
@ -104,9 +104,7 @@ static inline char *duplicateStringValue(const char *value,
|
|||||||
|
|
||||||
/** Free the string duplicated by duplicateStringValue().
|
/** Free the string duplicated by duplicateStringValue().
|
||||||
*/
|
*/
|
||||||
static inline void releaseStringValue(char *value) {
|
static inline void releaseStringValue(char *value) { free(value); }
|
||||||
free(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace Json
|
} // namespace Json
|
||||||
|
|
||||||
|
@ -172,7 +172,8 @@ Writer::~Writer() {}
|
|||||||
// //////////////////////////////////////////////////////////////////
|
// //////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
FastWriter::FastWriter()
|
FastWriter::FastWriter()
|
||||||
: yamlCompatiblityEnabled_(false), dropNullPlaceholders_(false), omitEndingLineFeed_(false) {}
|
: yamlCompatiblityEnabled_(false), dropNullPlaceholders_(false),
|
||||||
|
omitEndingLineFeed_(false) {}
|
||||||
|
|
||||||
void FastWriter::enableYAMLCompatibility() { yamlCompatiblityEnabled_ = true; }
|
void FastWriter::enableYAMLCompatibility() { yamlCompatiblityEnabled_ = true; }
|
||||||
|
|
||||||
|
@ -247,12 +247,13 @@ TestResult &checkStringEqual(TestResult &result,
|
|||||||
bool _threw = false; \
|
bool _threw = false; \
|
||||||
try { \
|
try { \
|
||||||
expr; \
|
expr; \
|
||||||
} catch (...) { \
|
} \
|
||||||
|
catch (...) { \
|
||||||
_threw = true; \
|
_threw = true; \
|
||||||
} \
|
} \
|
||||||
if (!_threw) \
|
if (!_threw) \
|
||||||
result_->addFailure(__FILE__, __LINE__, \
|
result_->addFailure( \
|
||||||
"expected exception thrown: " #expr); \
|
__FILE__, __LINE__, "expected exception thrown: " #expr); \
|
||||||
}
|
}
|
||||||
|
|
||||||
/// \brief Begin a fixture test case.
|
/// \brief Begin a fixture test case.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user