git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204279
91177308-0d34-0410-b5e6-
96231b3b80d8
//
//===----------------------------------------------------------------------===//
+#ifndef LLVM_SUPPORT_LINEITERATOR_H__
+#define LLVM_SUPPORT_LINEITERATOR_H__
+
#include "llvm/ADT/StringRef.h"
#include <iterator>
advance();
return *this;
}
+ line_iterator operator++(int) {
+ line_iterator tmp(*this);
+ advance();
+ return tmp;
+ }
/// \brief Get the current line as a \c StringRef.
StringRef operator*() const { return CurrentLine; }
void advance();
};
}
+
+#endif // LLVM_SUPPORT_LINEITERATOR_H__