Add more files to the clang format CI. (#1833)
diff --git a/.github/workflows/clang-format-check.yml b/.github/workflows/clang-format-check.yml index 2a27fd2..2fe917a 100644 --- a/.github/workflows/clang-format-check.yml +++ b/.github/workflows/clang-format-check.yml
@@ -17,5 +17,5 @@ - uses: RafikFarhad/clang-format-github-action@4a04d8e72a661766278abf214ed995bf6bdf0b8f # v3.2.0 with: style: file - sources: "apps/*.c,apps/**/*.h,apps/**/*.c,examples/*.c,include/avif/*.h,src/*.c,tests/*.c,tests/**/*.h,tests/**/*.cc" + sources: "apps/*.c,apps/**/*.h,apps/**/*.c,apps/**/*.cc,examples/*.c,include/avif/*.h,src/*.c,tests/*.c,tests/**/*.h,tests/**/*.cc" excludes: "apps/shared/iccjpeg.h,apps/shared/iccjpeg.c"
diff --git a/apps/avifgainmaputil/tonemap_command.cc b/apps/avifgainmaputil/tonemap_command.cc index 7c6a630..147ba68 100644 --- a/apps/avifgainmaputil/tonemap_command.cc +++ b/apps/avifgainmaputil/tonemap_command.cc
@@ -129,9 +129,9 @@ } if (cicp.transfer_characteristics == AVIF_TRANSFER_CHARACTERISTICS_UNSPECIFIED) { - cicp.transfer_characteristics = - tone_mapping_to_hdr ? AVIF_TRANSFER_CHARACTERISTICS_PQ - : AVIF_TRANSFER_CHARACTERISTICS_SRGB; + cicp.transfer_characteristics = tone_mapping_to_hdr + ? AVIF_TRANSFER_CHARACTERISTICS_PQ + : AVIF_TRANSFER_CHARACTERISTICS_SRGB; } // Determine output depth.
diff --git a/tests/gtest/avif_fuzztest_helpers.cc b/tests/gtest/avif_fuzztest_helpers.cc index e55094b..8333346 100644 --- a/tests/gtest/avif_fuzztest_helpers.cc +++ b/tests/gtest/avif_fuzztest_helpers.cc
@@ -234,7 +234,7 @@ // Use an environment variable to get the test data directory because // fuzztest seeds are created before the main() function is called, so the // test has no chance to parse command line arguments. - const std ::vector<std::string> test_data_dirs = GetSeedDataDirs(); + const std::vector<std::string> test_data_dirs = GetSeedDataDirs(); if (test_data_dirs.empty()) { // Only a warning because this can happen when running the binary with // --list_fuzz_tests (such as with gtest_discover_tests() in cmake).