зеркало из https://github.com/microsoft/clang.git
Revert r139222, operator->() in PreprocessingRecord::iterator. It is useful
to meet the requirements of the InputIterator concept. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139261 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
5520f23edb
Коммит
a3e9a969fd
|
@ -336,6 +336,13 @@ namespace clang {
|
|||
return Self->LoadedPreprocessedEntities.end()[Position];
|
||||
return Self->PreprocessedEntities[Position];
|
||||
}
|
||||
|
||||
pointer operator->() const {
|
||||
if (Position < 0)
|
||||
return &Self->LoadedPreprocessedEntities.end()[Position];
|
||||
|
||||
return &Self->PreprocessedEntities[Position];
|
||||
}
|
||||
|
||||
reference operator[](difference_type D) {
|
||||
return *(*this + D);
|
||||
|
|
Загрузка…
Ссылка в новой задаче