aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/Lex/PreprocessingRecord.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Lex/PreprocessingRecord.h b/include/clang/Lex/PreprocessingRecord.h
index 22ac57152f..f454ca96ca 100644
--- a/include/clang/Lex/PreprocessingRecord.h
+++ b/include/clang/Lex/PreprocessingRecord.h
@@ -419,6 +419,11 @@ namespace clang {
friend difference_type operator-(const iterator &X, const iterator &Y) {
return X.Position - Y.Position;
}
+
+ friend iterator operator-(iterator X, difference_type D) {
+ X.Position -= D;
+ return X;
+ }
};
friend class iterator;