From a2c83a1b697fa82d814d6c99a35ad7847e86a265 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Tue, 7 Nov 2023 08:00:00 -0500 Subject: [PATCH] (clang-format) Add QualifierOrder (#272) --- .clang-format | 8 ++++++++ LEGO1/mxomnicreateflags.h | 20 ++++++++++---------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/.clang-format b/.clang-format index 4ff99b84..d305f434 100644 --- a/.clang-format +++ b/.clang-format @@ -21,6 +21,14 @@ IndentAccessModifiers: false IndentWidth: 4 InsertNewlineAtEOF: true PointerAlignment: Left +QualifierAlignment: Custom +QualifierOrder: + - inline + - static + - friend + - const + - volatile + - type SpaceAfterCStyleCast: true TabWidth: 4 UseTab: ForContinuationAndIndentation diff --git a/LEGO1/mxomnicreateflags.h b/LEGO1/mxomnicreateflags.h index 7cb8f4ba..f3490a70 100644 --- a/LEGO1/mxomnicreateflags.h +++ b/LEGO1/mxomnicreateflags.h @@ -23,17 +23,17 @@ class MxOmniCreateFlags { __declspec(dllexport) MxOmniCreateFlags(); - const inline MxBool CreateObjectFactory() const { return this->m_flags1 & Flag_CreateObjectFactory; } - const inline MxBool CreateVariableTable() const { return this->m_flags1 & Flag_CreateVariableTable; } - const inline MxBool CreateTickleManager() const { return this->m_flags1 & Flag_CreateTickleManager; } - const inline MxBool CreateNotificationManager() const { return this->m_flags1 & Flag_CreateNotificationManager; } - const inline MxBool CreateVideoManager() const { return this->m_flags1 & Flag_CreateVideoManager; } - const inline MxBool CreateSoundManager() const { return this->m_flags1 & Flag_CreateSoundManager; } - const inline MxBool CreateMusicManager() const { return this->m_flags1 & Flag_CreateMusicManager; } - const inline MxBool CreateEventManager() const { return this->m_flags1 & Flag_CreateEventManager; } + inline const MxBool CreateObjectFactory() const { return this->m_flags1 & Flag_CreateObjectFactory; } + inline const MxBool CreateVariableTable() const { return this->m_flags1 & Flag_CreateVariableTable; } + inline const MxBool CreateTickleManager() const { return this->m_flags1 & Flag_CreateTickleManager; } + inline const MxBool CreateNotificationManager() const { return this->m_flags1 & Flag_CreateNotificationManager; } + inline const MxBool CreateVideoManager() const { return this->m_flags1 & Flag_CreateVideoManager; } + inline const MxBool CreateSoundManager() const { return this->m_flags1 & Flag_CreateSoundManager; } + inline const MxBool CreateMusicManager() const { return this->m_flags1 & Flag_CreateMusicManager; } + inline const MxBool CreateEventManager() const { return this->m_flags1 & Flag_CreateEventManager; } - const inline MxBool CreateTimer() const { return this->m_flags2 & Flag_CreateTimer; } - const inline MxBool CreateStreamer() const { return this->m_flags2 & Flag_CreateStreamer; } + inline const MxBool CreateTimer() const { return this->m_flags2 & Flag_CreateTimer; } + inline const MxBool CreateStreamer() const { return this->m_flags2 & Flag_CreateStreamer; } inline void CreateObjectFactory(MxBool b) {