Sema: const-qualify ParsedAttr::iterator::operator*()

`const`-qualify ParsedAttr::iterator::operator*(), clearing up confusion
about the two meanings of const for pointers/iterators. Helps unblock
removal of (non-const) iterator_facade_base::operator->().
This commit is contained in:
Duncan P. N. Exon Smith 2021-11-11 18:51:31 -08:00
parent 8b3e1adf2b
commit 46a68c85bf
1 changed files with 1 additions and 1 deletions

View File

@ -894,7 +894,7 @@ public:
ParsedAttr> {
iterator() : iterator_adaptor_base(nullptr) {}
iterator(VecTy::iterator I) : iterator_adaptor_base(I) {}
reference operator*() { return **I; }
reference operator*() const { return **I; }
friend class ParsedAttributesView;
};
struct const_iterator