From 6a2f0cebd8386fc117bbdb91491b727e4c6e76ca Mon Sep 17 00:00:00 2001 From: Alexandra Latysheva Date: Wed, 23 Sep 2020 21:32:45 +0000 Subject: [PATCH] wrong clang-google-style parts --- oss-internship-2020/libtiff/test/defer_strile_writing.cc | 6 +++--- oss-internship-2020/libtiff/test/raw_decode.cc | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/oss-internship-2020/libtiff/test/defer_strile_writing.cc b/oss-internship-2020/libtiff/test/defer_strile_writing.cc index 2e84870..cbaab14 100644 --- a/oss-internship-2020/libtiff/test/defer_strile_writing.cc +++ b/oss-internship-2020/libtiff/test/defer_strile_writing.cc @@ -131,7 +131,7 @@ void TestWriting(const char* mode, int tiled, int height) { EXPECT_THAT(status_or_int.value(), IsTrue()) << "TIFFDeferStrileArrayWriting return unexpected value"; - /* Create other directory */ + // Create other directory ASSERT_THAT(api.TIFFFreeDirectory(&tif), IsOk()) << "TIFFFreeDirectory fatal error"; ASSERT_THAT(api.TIFFCreateDirectory(&tif), IsOk()) @@ -191,7 +191,7 @@ void TestWriting(const char* mode, int tiled, int height) { EXPECT_THAT(status_or_int.value(), IsTrue()) << "TIFFWriteDirectory return unexpected value"; - /* Force writing of strile arrays */ + // Force writing of strile arrays status_or_int = api.TIFFSetDirectory(&tif, 0); ASSERT_THAT(status_or_int, IsOk()) << "TIFFSetDirectory fatal error"; EXPECT_THAT(status_or_int.value(), IsTrue()) @@ -214,7 +214,7 @@ void TestWriting(const char* mode, int tiled, int height) { EXPECT_THAT(status_or_int.value(), IsTrue()) << "TIFFForceStrileArrayWriting return unexpected value"; - /* Now write data on frist directory */ + // Now write data on frist directory status_or_int = api.TIFFSetDirectory(&tif, 0); ASSERT_THAT(status_or_int, IsOk()) << "TIFFSetDirectory fatal error"; EXPECT_THAT(status_or_int.value(), IsTrue()) diff --git a/oss-internship-2020/libtiff/test/raw_decode.cc b/oss-internship-2020/libtiff/test/raw_decode.cc index 4168903..0a3f58e 100644 --- a/oss-internship-2020/libtiff/test/raw_decode.cc +++ b/oss-internship-2020/libtiff/test/raw_decode.cc @@ -35,7 +35,7 @@ static const std::vector cluster_128 = {44, 40, 63, 59, 230, 95}; static int CheckCluster(int cluster, const sapi::v::Array &buffer, const std::vector &expected_cluster) { - unsigned char *target = buffer.GetData() + cluster * 6; + unsigned char* target = buffer.GetData() + cluster * 6; bool comp = !(std::memcmp(target, expected_cluster.data(), 6) == 0); @@ -53,7 +53,7 @@ static int CheckCluster(int cluster, static int CheckRgbPixel(int pixel, int min_red, int max_red, int min_green, int max_green, int min_blue, int max_blue, const sapi::v::Array &buffer) { - unsigned char *rgb = buffer.GetData() + 3 * pixel; + unsigned char* rgb = buffer.GetData() + 3 * pixel; bool comp = !(rgb[0] >= min_red && rgb[0] <= max_red && rgb[1] >= min_green && @@ -72,7 +72,7 @@ static int CheckRgbaPixel(int pixel, int min_red, int max_red, int min_green, int max_green, int min_blue, int max_blue, int min_alpha, int max_alpha, const sapi::v::Array &buffer) { - /* RGBA images are upside down - adjust for normal ordering */ + // RGBA images are upside down - adjust for normal ordering int adjusted_pixel = pixel % 128 + (127 - (pixel / 128)) * 128; unsigned rgba = buffer[adjusted_pixel]; @@ -104,7 +104,7 @@ TEST(SandboxTest, RawDecode) { tsize_t sz; unsigned int pixel_status = 0; sapi::v::UShort h, v; - sapi::StatusOr status_or_tif; + sapi::StatusOr status_or_tif; sapi::StatusOr status_or_int; sapi::StatusOr status_or_long;