From b48623c23ae16a424102cc47ad173099bb45a695 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Tue, 2 Jul 2024 16:34:07 +0300 Subject: [Clang][NFC] use const references for function parameters in operator== and operator!= overloads in Redeclarable.h (#92963) Fixes #92755 --- clang/include/clang/AST/Redeclarable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/include') diff --git a/clang/include/clang/AST/Redeclarable.h b/clang/include/clang/AST/Redeclarable.h index 091bb88..74ccd74 100644 --- a/clang/include/clang/AST/Redeclarable.h +++ b/clang/include/clang/AST/Redeclarable.h @@ -281,10 +281,10 @@ public: 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; } }; -- cgit v1.1