Fully enable serialization on GameSettings class and inner classes
All checks were successful
buildbot/elemental-game-linux-builder Build done.
buildbot/elemental-game-macos-builder Build done.
buildbot/elemental-game-freebsd-builder Build done.

Clarify .clang-tidy capitalization rules for global functions.
This commit is contained in:
S David 2024-08-05 01:45:09 -04:00
parent 194383915c
commit d21c410650
2 changed files with 7 additions and 4 deletions

View File

@ -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 }

View File

@ -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