clang-format

This commit is contained in:
Christopher Dunn 2020-10-10 10:29:19 -05:00
parent c60ebf787a
commit 5d1cb30e40
3 changed files with 3 additions and 3 deletions

View File

@ -353,4 +353,4 @@ def main():
if __name__ == '__main__':
sys.exit(main())
sys.exit(main())

1
reformat.sh Normal file
View File

@ -0,0 +1 @@
find src -name '*.cpp' -or -name '*.h' | xargs clang-format -i

View File

@ -3920,8 +3920,7 @@ class VersionTest : public JsonTest::TestCase {};
JSONTEST_FIXTURE_LOCAL(VersionTest, VersionNumbersMatch) {
std::ostringstream vstr;
vstr << JSONCPP_VERSION_MAJOR << '.'
<< JSONCPP_VERSION_MINOR << '.'
vstr << JSONCPP_VERSION_MAJOR << '.' << JSONCPP_VERSION_MINOR << '.'
<< JSONCPP_VERSION_PATCH;
JSONTEST_ASSERT_EQUAL(vstr.str(), std::string(JSONCPP_VERSION_STRING));
}