17 if (*P ==
'\r' && *(P + 1) ==
'\n')
27 if (*P ==
'\r' && *(P + 1) ==
'\n') {
36 : Buffer(Buffer.getBufferSize() ? &Buffer : nullptr),
37 CommentMarker(CommentMarker), SkipBlanks(SkipBlanks), LineNumber(1),
38 CurrentLine(Buffer.getBufferSize() ? Buffer.getBufferStart() : nullptr,
50 void line_iterator::advance() {
51 assert(Buffer &&
"Cannot advance past the end!");
53 const char *Pos = CurrentLine.
end();
60 }
else if (CommentMarker ==
'\0') {
69 if (*Pos == CommentMarker)
88 while (Pos[Length] !=
'\0' && !
isAtLineEnd(&Pos[Length])) {
line_iterator()=default
Default construct an "end" iterator.
This class represents lattice values for constants.
size_t getBufferSize() const
static bool isAtLineEnd(const char *P)
This interface provides simple read-only access to a block of memory, and provides simple methods for...
static bool skipIfAtLineEnd(const char *&P)
const char * getBufferEnd() const
const char * getBufferStart() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
StringRef - Represent a constant reference to a string, i.e.