diff options
-rw-r--r-- | include/clang/Lex/PreprocessingRecord.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/clang/Lex/PreprocessingRecord.h b/include/clang/Lex/PreprocessingRecord.h index e12e201e67..7bcc962739 100644 --- a/include/clang/Lex/PreprocessingRecord.h +++ b/include/clang/Lex/PreprocessingRecord.h @@ -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); |