Skip to content

Commit

Permalink
[Clang][NFC] use const references for function parameters in operator…
Browse files Browse the repository at this point in the history
…== and operator!= overloads in Redeclarable.h (llvm#92963)

Fixes llvm#92755
  • Loading branch information
a-tarasyuk authored and kbluck committed Jul 6, 2024
1 parent afd46bb commit 968343a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/include/clang/AST/Redeclarable.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,10 @@ class Redeclarable {
return tmp;
}

friend bool operator==(redecl_iterator x, redecl_iterator y) {
friend bool operator==(const redecl_iterator &x, const redecl_iterator &y) {
return x.Current == y.Current;
}
friend bool operator!=(redecl_iterator x, redecl_iterator y) {
friend bool operator!=(const redecl_iterator &x, const redecl_iterator &y) {
return x.Current != y.Current;
}
};
Expand Down

0 comments on commit 968343a

Please sign in to comment.