aboutsummaryrefslogtreecommitdiff
path: root/clang/include
diff options
context:
space:
mode:
authorOleksandr T <oleksandr.tarasiuk@outlook.com>2024-07-02 16:34:07 +0300
committerGitHub <noreply@github.com>2024-07-02 21:34:07 +0800
commitb48623c23ae16a424102cc47ad173099bb45a695 (patch)
treecbb0ca6b5d00f6cb92f5ea33936df6d764661c3e /clang/include
parent1e26a251a36b0479c7aca21e2d65d9877c0691ce (diff)
downloadllvm-b48623c23ae16a424102cc47ad173099bb45a695.zip
llvm-b48623c23ae16a424102cc47ad173099bb45a695.tar.gz
llvm-b48623c23ae16a424102cc47ad173099bb45a695.tar.bz2
[Clang][NFC] use const references for function parameters in operator== and operator!= overloads in Redeclarable.h (#92963)
Fixes #92755
Diffstat (limited to 'clang/include')
-rw-r--r--clang/include/clang/AST/Redeclarable.h4
1 files changed, 2 insertions, 2 deletions
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;
}
};