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