diff --git a/.clang-tidy b/.clang-tidy index 61dac7c..921047e 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -54,7 +54,7 @@ CheckOptions: value: '.*_t|string|.*_string' } # Function Names - - { key: readability-identifier-naming.FunctionCase, value: camelBack } + - { key: readability-identifier-naming.GlobalFunctionCase, value: camelBack } - { key: readability-identifier-naming.PublicMethodCase, value: camelBack } - { key: readability-identifier-naming.PrivateMethodCase, value: lower_case } diff --git a/Modules/elemental/types/rendering.hpp b/Modules/elemental/types/rendering.hpp index 7f52d50..f290d9f 100644 --- a/Modules/elemental/types/rendering.hpp +++ b/Modules/elemental/types/rendering.hpp @@ -41,7 +41,7 @@ struct Rectangle { uint32_t& height = size.height; JSON_SERIALIZABLE(Rectangle, position, size); - // TOML_SERIALIZABLE(Rectangle, position); + TOML_SERIALIZABLE(Rectangle, position, size); }; enum class WindowMode { @@ -66,14 +66,17 @@ struct WindowParameters { JSON_SERIALIZABLE( WindowParameters, title, mode, placement, position, size ); + TOML_SERIALIZABLE( + WindowParameters, title, mode, placement, position, size + ); }; struct RendererSettings { WindowParameters window; Resolution resolution; - int field1; - JSON_SERIALIZABLE(RendererSettings, window, resolution, field1); + JSON_SERIALIZABLE(RendererSettings, window, resolution); + TOML_SERIALIZABLE(RendererSettings, window, resolution); }; } // namespace elemental