Skip to content

Commit 6f0cfa2

Browse files
committed
sorting operators last includes stream operators
#refactor
1 parent 059063f commit 6f0cfa2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib/Metadata/Finalizers/SortMembersFinalizer.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ struct SymbolIDCompareFn
119119
*lhsOp == OperatorKind::Greater ||
120120
*lhsOp == OperatorKind::LessEqual ||
121121
*lhsOp == OperatorKind::GreaterEqual ||
122-
*lhsOp == OperatorKind::Spaceship);
122+
*lhsOp == OperatorKind::Spaceship ||
123+
*lhsOp == OperatorKind::LessLess);
123124
bool const rhsIsRel = rhsOp && (
124125
*rhsOp == OperatorKind::Exclaim ||
125126
*rhsOp == OperatorKind::EqualEqual ||
@@ -128,7 +129,8 @@ struct SymbolIDCompareFn
128129
*rhsOp == OperatorKind::Greater ||
129130
*rhsOp == OperatorKind::LessEqual ||
130131
*rhsOp == OperatorKind::GreaterEqual ||
131-
*rhsOp == OperatorKind::Spaceship);
132+
*rhsOp == OperatorKind::Spaceship ||
133+
*rhsOp == OperatorKind::LessLess);
132134
if (lhsIsRel != rhsIsRel)
133135
{
134136
return !lhsIsRel;

0 commit comments

Comments
 (0)