From 81cb86efa3555ef22780eb3e64310468a09e3bfe Mon Sep 17 00:00:00 2001 From: Christian Parpart Date: Mon, 11 Dec 2023 23:01:03 +0100 Subject: [PATCH] Fix .editorconfig Signed-off-by: Christian Parpart --- .editorconfig | 11 +++++++++++ README.md | 4 ++-- test-boxed-cpp.cpp | 19 +++++++------------ 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/.editorconfig b/.editorconfig index 409c923..791c869 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,3 +7,14 @@ insert_final_newline = true end_of_line = lf charset = utf-8 trim_trailing_whitespace = true + +[LICENSE.txt] +end_of_line = unset +indent_size = unset +insert_final_newline = unset + +[.clang-format] +indent_size = 2 + +[*.yml] +indent_size = 2 diff --git a/README.md b/README.md index 0369a6d..246fa93 100644 --- a/README.md +++ b/README.md @@ -91,8 +91,8 @@ struct Wrap auto x_coord = Wrap([](rho_type rho){ return unbox(rho); }, - [](theta_type theta){ return sin(unbox(theta)); }, - [](phi_type phi){ return cos(unbox(phi)); } + [](theta_type theta){ return sin(unbox(theta)); }, + [](phi_type phi){ return cos(unbox(phi)); } ); int main() diff --git a/test-boxed-cpp.cpp b/test-boxed-cpp.cpp index 1d1d58e..f103b2d 100644 --- a/test-boxed-cpp.cpp +++ b/test-boxed-cpp.cpp @@ -38,15 +38,10 @@ TEST_CASE("boxed_cast") static_assert(std::is_same_v); } -namespace tags -{ -struct N -{ -}; -struct Z -{ -}; -} // namespace tags +// clang-format off +namespace tags { struct N {}; struct Z {}; } +// clang-format on + using N = boxed::boxed; using Z = boxed::boxed; @@ -129,13 +124,13 @@ TEST_CASE("all options for unbox") // clang-format off template - struct not_same{}; + struct not_same{}; template - struct not_same : virtual std::false_type {}; + struct not_same : virtual std::false_type {}; template - struct not_same : virtual std::true_type {} ; + struct not_same : virtual std::true_type {} ; template struct all_different : std::false_type {};