The MRI scripts have to work with CRLF, and in general it is probably a good idea to support this in a core utility like LineIterator.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
So, I'm OK with this... but I wonder what it does to the performance of the line iterator. Hopefully we never care.
I've made a minor suggestion below that should at least make one of the cases quite a bit simpler.
lib/Support/LineIterator.cpp | ||
---|---|---|
63–65 | This suggests that skipLineEnd should return whether it did indeed skip a line end? |
This suggests that skipLineEnd should return whether it did indeed skip a line end?