Fix style

This commit is contained in:
Raúl Marín
2025-01-30 16:34:43 +01:00
parent 36ea28ab28
commit 9ae054547a
2 changed files with 9 additions and 3 deletions
+1
View File
@@ -83,6 +83,7 @@ NamespaceIndentation: None
ObjCBlockIndentWidth: 4
ObjCSpaceAfterProperty: true
ObjCSpaceBeforeProtocolList: true
PackConstructorInitializers: Never
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
+8 -3
View File
@@ -9,17 +9,22 @@ namespace DB
{
/// Create Identifier from parts
Identifier::Identifier(const std::vector<std::string> & parts_) : parts(parts_), full_name(boost::algorithm::join(parts, "."))
Identifier::Identifier(const std::vector<std::string> & parts_)
: parts(parts_)
, full_name(boost::algorithm::join(parts, "."))
{
}
/// Create Identifier from parts
Identifier::Identifier(std::vector<std::string> && parts_) : parts(std::move(parts_)), full_name(boost::algorithm::join(parts, "."))
Identifier::Identifier(std::vector<std::string> && parts_)
: parts(std::move(parts_))
, full_name(boost::algorithm::join(parts, "."))
{
}
/// Create Identifier from full name, full name is split with '.' as separator.
Identifier::Identifier(const std::string & full_name_) : full_name(full_name_)
Identifier::Identifier(const std::string & full_name_)
: full_name(full_name_)
{
boost::split(parts, full_name, [](char c) { return c == '.'; });
}