From db7735016989d45e1c0dc9eeb9a434d53f4627a8 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Fri, 24 Nov 2023 12:10:09 -0500 Subject: [PATCH] (clang-format) Add EmptyLineBeforeAccessModifier (#300) --- .clang-format | 1 + LEGO1/legoobjectfactory.h | 1 + LEGO1/legopalettepresenter.h | 1 + LEGO1/mxobjectfactory.h | 1 + 4 files changed, 4 insertions(+) diff --git a/.clang-format b/.clang-format index d305f434..19e35762 100644 --- a/.clang-format +++ b/.clang-format @@ -16,6 +16,7 @@ BraceWrapping: AfterStruct: false ConstructorInitializerIndentWidth: 4 ContinuationIndentWidth: 4 +EmptyLineBeforeAccessModifier: Always IncludeBlocks: Regroup IndentAccessModifiers: false IndentWidth: 4 diff --git a/LEGO1/legoobjectfactory.h b/LEGO1/legoobjectfactory.h index 45d1a747..ca0d8d60 100644 --- a/LEGO1/legoobjectfactory.h +++ b/LEGO1/legoobjectfactory.h @@ -11,6 +11,7 @@ public: LegoObjectFactory(); virtual MxCore* Create(const char* p_name) override; // vtable 0x14 virtual void Destroy(MxCore* p_object) override; // vtable 0x18 + private: #define X(V) MxAtomId m_id##V; FOR_LEGOOBJECTFACTORY_OBJECTS(X) diff --git a/LEGO1/legopalettepresenter.h b/LEGO1/legopalettepresenter.h index 9d500e08..1f68fac8 100644 --- a/LEGO1/legopalettepresenter.h +++ b/LEGO1/legopalettepresenter.h @@ -26,6 +26,7 @@ public: } virtual void Destroy() override; // vtable+0x38 + private: void Init(); void Destroy(MxBool p_fromDestructor); diff --git a/LEGO1/mxobjectfactory.h b/LEGO1/mxobjectfactory.h index 0c8d2ad7..e02956a7 100644 --- a/LEGO1/mxobjectfactory.h +++ b/LEGO1/mxobjectfactory.h @@ -38,6 +38,7 @@ public: virtual MxCore* Create(const char* p_name); // vtable 0x14 virtual void Destroy(MxCore* p_object); // vtable 0x18 + private: #define X(V) MxAtomId m_id##V; FOR_MXOBJECTFACTORY_OBJECTS(X)