utils/check-style/fix-style #2387

This commit is contained in:
Alexey Milovidov 2018-05-18 21:30:02 +03:00
parent a4b04739c8
commit 74a6b0010f

View File

@ -5,7 +5,6 @@
namespace DB
{
/** Element of expression with ASC or DESC,
* and possibly with COLLATE.
*/
@ -20,18 +19,21 @@ public:
ASTPtr collation;
ASTOrderByElement(
const int direction_,
const int nulls_direction_,
const bool nulls_direction_was_explicitly_specified_,
ASTPtr & collation_)
:
direction(direction_), nulls_direction(nulls_direction_),
nulls_direction_was_explicitly_specified(nulls_direction_was_explicitly_specified_),
collation(collation_) {}
const int direction_, const int nulls_direction_, const bool nulls_direction_was_explicitly_specified_, ASTPtr & collation_)
: direction(direction_)
, nulls_direction(nulls_direction_)
, nulls_direction_was_explicitly_specified(nulls_direction_was_explicitly_specified_)
, collation(collation_)
{
}
String getID() const override { return "OrderByElement"; }
String getID() const override
{
return "OrderByElement";
}
ASTPtr clone() const override {
ASTPtr clone() const override
{
auto clone = std::make_shared<ASTOrderByElement>(*this);
clone->cloneChildren();
return std::move(clone);
@ -40,5 +42,4 @@ public:
protected:
void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
};
}