From: Joel Rosdahl Date: Tue, 6 Sep 2022 07:12:45 +0000 (+0200) Subject: chore: Support clang-format 14 X-Git-Tag: v4.7~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e5761e75325a8b45eb61e55d73ee92823ed4da4;p=thirdparty%2Fccache.git chore: Support clang-format 14 clang-format 14 chokes on a construction in unittest/test_Stat.cpp. Work around this by moving ifdefs around. --- diff --git a/unittest/test_Stat.cpp b/unittest/test_Stat.cpp index 688656040..b7e6178aa 100644 --- a/unittest/test_Stat.cpp +++ b/unittest/test_Stat.cpp @@ -512,9 +512,9 @@ TEST_CASE("Special" * doctest::skip(running_under_wine())) #endif } -#ifdef _WIN32 SUBCASE("block device") { +#ifdef _WIN32 auto stat = Stat::stat("\\\\.\\C:"); CHECK(stat); CHECK(stat.error_number() == 0); @@ -524,8 +524,8 @@ TEST_CASE("Special" * doctest::skip(running_under_wine())) CHECK(S_ISBLK(stat.mode())); CHECK(stat.file_attributes() == 0); CHECK(stat.reparse_tag() == 0); - } #endif + } } #ifdef _WIN32