diff options
-rw-r--r-- | include/clang/Lex/PreprocessingRecord.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Lex/PreprocessingRecord.h b/include/clang/Lex/PreprocessingRecord.h index 7b233a07a3..22a51665b4 100644 --- a/include/clang/Lex/PreprocessingRecord.h +++ b/include/clang/Lex/PreprocessingRecord.h @@ -376,6 +376,10 @@ namespace clang { return X.Position == Y.Position; } + friend bool operator<(const iterator &X, const iterator &Y) { + return X.Position < Y.Position; + } + friend bool operator!=(const iterator &X, const iterator &Y) { return X.Position != Y.Position; } |