Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
FollowAllReferences: Use Token::index() to get stable sorting order
  • Loading branch information
danmar committed May 6, 2026
commit f31764541a050e4ac25774989b95b9db563a4287
2 changes: 1 addition & 1 deletion lib/astutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,7 @@ static SmallVector<ReferenceToken> followAllReferencesInternal(const Token* tok,
{
struct ReferenceTokenLess {
bool operator()(const ReferenceToken& x, const ReferenceToken& y) const {
return x.token < y.token;
return x.token->index() < y.token->index();
}
};
if (!tok)
Expand Down
Loading