[cfe-commits] r135680 - /cfe/trunk/include/clang/Lex/PreprocessingRecord.h

Douglas Gregor dgregor at apple.com
Thu Jul 21 09:37:44 PDT 2011


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;
     





More information about the cfe-commits mailing list