From cf0d87a0bf8902b15b8fd6015ced48107e71774f Mon Sep 17 00:00:00 2001 From: Bartek Kryza Date: Wed, 1 Mar 2023 20:22:00 +0100 Subject: [PATCH] Updated clang-format to version 15 --- Makefile | 4 +- tests/catch.h | 440 +++++++++++++++++++---------------------- tests/t00004/t00004.cc | 9 +- tests/t00005/t00005.cc | 33 ++-- tests/t00006/t00006.cc | 48 ++--- tests/t00007/t00007.cc | 9 +- tests/t00011/t00011.cc | 3 +- tests/t00015/t00015.cc | 15 +- tests/t00017/t00017.cc | 33 ++-- tests/t00028/t00028.cc | 15 +- tests/t00029/t00029.cc | 18 +- tests/t00030/t00030.cc | 15 +- tests/t00031/t00031.cc | 6 +- tests/t00032/t00032.cc | 6 +- tests/t00034/t00034.cc | 3 +- tests/t00035/t00035.cc | 15 +- tests/t00036/t00036.cc | 3 +- tests/t00038/t00038.cc | 30 +-- tests/t00039/t00039.cc | 36 ++-- tests/t00040/t00040.cc | 3 +- tests/t00041/t00041.cc | 33 ++-- tests/t00043/t00043.cc | 12 +- tests/t00044/t00044.cc | 3 +- tests/t00045/t00045.cc | 30 +-- tests/t00046/t00046.cc | 24 +-- tests/t00050/t00050.cc | 21 +- tests/t00053/t00053.cc | 42 ++-- tests/t00054/t00054.cc | 42 ++-- tests/t00055/t00055.cc | 30 +-- tests/t00056/t00056.cc | 61 +++--- tests/t00058/t00058.cc | 4 +- tests/t00059/t00059.cc | 19 +- tests/t30002/t30002.cc | 51 ++--- tests/t30003/t30003.cc | 15 +- tests/t30005/t30005.cc | 3 +- tests/t30006/t30006.cc | 6 +- tests/t30007/t30007.cc | 6 +- tests/t30008/t30008.cc | 6 +- tests/test_cases.h | 21 +- 39 files changed, 454 insertions(+), 719 deletions(-) diff --git a/Makefile b/Makefile index f429b8a7..8135a982 100644 --- a/Makefile +++ b/Makefile @@ -114,11 +114,11 @@ init_compile_commands: debug .PHONY: clang-format clang-format: - docker run --rm -v $(CURDIR):/root/sources bkryza/clang-format-check:1.3 + docker run --rm -v $(CURDIR):/root/sources bkryza/clang-format-check:1.4 .PHONY: format format: - docker run --rm -v $(CURDIR):/root/sources bkryza/clang-format-check:1.3 + docker run --rm -v $(CURDIR):/root/sources bkryza/clang-format-check:1.4 .PHONY: debug_tidy tidy: debug_tidy diff --git a/tests/catch.h b/tests/catch.h index 90d8fe9a..c3237aad 100644 --- a/tests/catch.h +++ b/tests/catch.h @@ -532,8 +532,7 @@ unsigned int rngSeed(); // We need a dummy global operator<< so we can bring it into Catch namespace // later -struct Catch_global_namespace_dummy { -}; +struct Catch_global_namespace_dummy { }; std::ostream &operator<<(std::ostream &, Catch_global_namespace_dummy); namespace Catch { @@ -914,17 +913,15 @@ constexpr auto operator"" _catch_sr( N #define INTERNAL_CATCH_TYPE_GEN \ - template struct TypeList { \ - }; \ + template struct TypeList { }; \ template \ - constexpr auto get_wrapper() noexcept->TypeList \ + constexpr auto get_wrapper() noexcept -> TypeList \ { \ return {}; \ } \ - template