From ddd36f7a95bd6b79c0cb368bb4f16abad5336ad8 Mon Sep 17 00:00:00 2001 From: HappyTanuki Date: Sun, 30 Mar 2025 23:13:12 +0900 Subject: [PATCH] =?UTF-8?q?=EC=84=A4=EC=A0=95=20=EB=81=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .clang-format | 7 +++++++ .editorconfig | 14 ++++++++++++++ src/main.cpp | 22 +++++++++++----------- 3 files changed, 32 insertions(+), 11 deletions(-) create mode 100644 .clang-format create mode 100644 .editorconfig diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..eddcc98 --- /dev/null +++ b/.clang-format @@ -0,0 +1,7 @@ +# Google C/C++ Code Style Settings + +Language: Cpp +BasedOnStyle: Google +Standard: c++20 +UseTab: Never +ColumnLimit: 80 \ No newline at end of file diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..6a88fb6 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +root = true + +[*.{cpp,h,hpp,c}] +indent_style = space +indent_size = 2 +insert_final_newline = true +tab_width = 2 +charset = utf-8 +trim_trailing_whitespace = true + +[*.{vert,frag,glsl}] +indent_style = space +indent_size = 4 +tab_width = 4 \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index ba1103f..2aebc93 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,19 +1,19 @@ -#include +#include #include + +#include +#include #include #include -#include -#include -#include #include +#include -int main(std::int32_t argc, gsl::zstring* argv) -{ - gsl::span arguments(argv, argc); - std::sort(arguments.begin(), arguments.end()); +int main(std::int32_t argc, gsl::zstring* argv) { + gsl::span arguments(argv, argc); + std::sort(arguments.begin(), arguments.end()); - gsl::not_null arguments_pointer_validated = argv; + gsl::not_null arguments_pointer_validated = argv; - std::cout << "Hello, World!" << std::endl; - return 0; + std::cout << "Hello, World!" << std::endl; + return 0; } \ No newline at end of file