Set the clang-format option SpaceBeforeCpp11BracedList to true.

This commit is contained in:
Leon Styhre 2022-01-16 12:09:55 +01:00
parent e64976d4bc
commit 8a6652552f
84 changed files with 1161 additions and 1160 deletions

View file

@ -119,7 +119,7 @@ SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false SpaceBeforeCpp11BracedList: true
SpaceBeforeCtorInitializerColon: true SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements SpaceBeforeParens: ControlStatements

View file

@ -26,8 +26,9 @@ std::vector<std::string> ThemeData::sSupportedViews{{"all"}, {"system"}, {"
std::vector<std::string> ThemeData::sSupportedFeatures { std::vector<std::string> ThemeData::sSupportedFeatures {
{"navigationsounds"}, {"video"}, {"carousel"}, {"z-index"}, {"visible"}}; {"navigationsounds"}, {"video"}, {"carousel"}, {"z-index"}, {"visible"}};
std::map<std::string, std::map<std::string, ThemeData::ElementPropertyType>> ThemeData::sElementMap{ std::map<std::string, std::map<std::string, ThemeData::ElementPropertyType>>
{"image", ThemeData::sElementMap // Line break.
{{"image",
{{"pos", NORMALIZED_PAIR}, {{"pos", NORMALIZED_PAIR},
{"size", NORMALIZED_PAIR}, {"size", NORMALIZED_PAIR},
{"maxSize", NORMALIZED_PAIR}, {"maxSize", NORMALIZED_PAIR},

View file

@ -278,8 +278,8 @@ void ImageGridComponent<T>::applyTheme(const std::shared_ptr<ThemeData>& theme,
mMargin = elem->get<glm::vec2>("margin") * screen; mMargin = elem->get<glm::vec2>("margin") * screen;
if (elem->has("padding")) if (elem->has("padding"))
mPadding = mPadding = elem->get<glm::vec4>("padding") *
elem->get<glm::vec4>("padding") * glm::vec4{screen.x, screen.y, screen.x, screen.y}; glm::vec4 {screen.x, screen.y, screen.x, screen.y};
if (elem->has("autoLayout")) if (elem->has("autoLayout"))
mAutoLayout = elem->get<glm::vec2>("autoLayout"); mAutoLayout = elem->get<glm::vec2>("autoLayout");