<div dir="ltr">Ignore me, I wasn't reading this right.  This just initializes the lexer and gets the current location.  I thought it lexed to the first token or something, which it does not.</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Dec 3, 2013 at 2:26 PM, Lubos Lunak <span dir="ltr"><<a href="mailto:l.lunak@centrum.cz" target="_blank">l.lunak@centrum.cz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tuesday 03 of December 2013, Reid Kleckner wrote:<br>
> On Tue, Dec 3, 2013 at 12:01 PM, Lubos Lunak <<a href="mailto:l.lunak@centrum.cz">l.lunak@centrum.cz</a>> wrote:<br>
> > On Tuesday 03 of December 2013, Reid Kleckner wrote:<br>
> > > This seems like it has the side effect of trimming leading whitespace<br>
> ><br>
> > from<br>
> ><br>
> > > the rewritten file, but that's probably fine.<br>
> ><br>
> >  It's not. The main file does not start with any line markers, so it is<br>
> > possible that lines in warnings/errors will be wrong. Please fix this or<br>
> > revert the change to the previous one that works.<br>
><br>
> Alternatively, can we emit a #line directive if the line of the first token<br>
> isn't on line 1?<br>
<br>
</div> No, at least not without rewriting SourceManager::isFromMainFile() -<br>
<a href="http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20131125/094236.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20131125/094236.html</a> .<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
 Lubos Lunak<br>
</font></span></blockquote></div><br></div>