forked from OSchip/llvm-project
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:
parent
8b3e1adf2b
commit
46a68c85bf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue