Skip to content

Commit b48623c

Browse files
authored
[Clang][NFC] use const references for function parameters in operator== and operator!= overloads in Redeclarable.h (#92963)
Fixes #92755
1 parent 1e26a25 commit b48623c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/include/clang/AST/Redeclarable.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,10 @@ class Redeclarable {
281281
return tmp;
282282
}
283283

284-
friend bool operator==(redecl_iterator x, redecl_iterator y) {
284+
friend bool operator==(const redecl_iterator &x, const redecl_iterator &y) {
285285
return x.Current == y.Current;
286286
}
287-
friend bool operator!=(redecl_iterator x, redecl_iterator y) {
287+
friend bool operator!=(const redecl_iterator &x, const redecl_iterator &y) {
288288
return x.Current != y.Current;
289289
}
290290
};

0 commit comments

Comments
 (0)