From 81215349811da882c00762e6657d8fca8d00f83a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD?= Date: Sat, 23 Aug 2025 17:01:53 +0300 Subject: [PATCH] CodeStyle --- .clang-format | 4 +- CMakeLists.txt | 2 + Nihilus.xml | 112 ++++++++++++++++++++++ src/endpoints_handlers/AuthController.cpp | 7 ++ src/endpoints_handlers/AuthController.h | 9 ++ 5 files changed, 133 insertions(+), 1 deletion(-) create mode 100644 Nihilus.xml create mode 100644 src/endpoints_handlers/AuthController.cpp create mode 100644 src/endpoints_handlers/AuthController.h diff --git a/.clang-format b/.clang-format index 8a2753a..9d0feb9 100644 --- a/.clang-format +++ b/.clang-format @@ -16,7 +16,7 @@ BraceWrapping: AfterNamespace: true AfterStruct: true AfterUnion: true - AfterExternBlock: false + AfterExternBlock: true BeforeCatch: true BeforeElse: true BeforeLambdaBody: true @@ -38,6 +38,7 @@ IncludeCategories: - Regex: '.*' Priority: 3 IncludeIsMainRegex: '([-_](test|unittest))?$' +IndentAccessModifiers: True IndentCaseBlocks: true InsertNewlineAtEOF: true MacroBlockBegin: '' @@ -50,4 +51,5 @@ SpacesInConditionalStatement: false SpacesInCStyleCastParentheses: false SpacesInParentheses: false TabWidth: 2 +AccessModifierOffset: 1 ... diff --git a/CMakeLists.txt b/CMakeLists.txt index 4c31e3c..509755c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,8 @@ add_executable(App ./src/main.cpp ./src/helpers/helpers.h ./src/helpers/helpers.cpp ./src/endpoints_handlers/HandleRequest.h + ./src/endpoints_handlers/AuthController.h + ./src/endpoints_handlers/AuthController.cpp ./src/session/HttpSession.h ./src/session/HttpSession.cpp ./src/session/WebsocketSession.h diff --git a/Nihilus.xml b/Nihilus.xml new file mode 100644 index 0000000..13e08d1 --- /dev/null +++ b/Nihilus.xml @@ -0,0 +1,112 @@ + + \ No newline at end of file diff --git a/src/endpoints_handlers/AuthController.cpp b/src/endpoints_handlers/AuthController.cpp new file mode 100644 index 0000000..49b92e5 --- /dev/null +++ b/src/endpoints_handlers/AuthController.cpp @@ -0,0 +1,7 @@ + + +#include "AuthController.h" + +namespace uad +{ +} diff --git a/src/endpoints_handlers/AuthController.h b/src/endpoints_handlers/AuthController.h new file mode 100644 index 0000000..897e717 --- /dev/null +++ b/src/endpoints_handlers/AuthController.h @@ -0,0 +1,9 @@ +namespace uad +{ +template +class AuthController +{ + public: + virtual ~AuthController() = default; +}; +}