We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dea8217 commit 402baeaCopy full SHA for 402baea
clang-tools-extra/modularize/Modularize.cpp
@@ -459,7 +459,7 @@ struct HeaderEntry {
459
return !(X == Y);
460
}
461
friend bool operator<(const HeaderEntry &X, const HeaderEntry &Y) {
462
- return X.Loc < Y.Loc || (X.Loc == Y.Loc && X.Name < Y.Name);
+ return std::tie(X.Loc, X.Name) < std::tie(Y.Loc, Y.Name);
463
464
friend bool operator>(const HeaderEntry &X, const HeaderEntry &Y) {
465
return Y < X;
0 commit comments