Author: dgregor
Date: Thu Jul 21 11:37:44 2011
New Revision: 135680

URL: http://llvm.org/viewvc/llvm-project?rev=135680&view=rev
Log:
One last RandomAccessIterator operator for PreprocessingRecord::iterator

Modified:
    cfe/trunk/include/clang/Lex/PreprocessingRecord.h

Modified: cfe/trunk/include/clang/Lex/PreprocessingRecord.h
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/PreprocessingRecord.h?rev=135680&r1=135679&r2=135680&view=diff
==============================================================================
--- cfe/trunk/include/clang/Lex/PreprocessingRecord.h (original)
+++ cfe/trunk/include/clang/Lex/PreprocessingRecord.h Thu Jul 21 11:37:44 2011
@@ -419,6 +419,11 @@
       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;
     


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to