<div dir="ltr">Does SourceManager::translateFileLineCol<span style="white-space:pre"> work for you?</span><div><br></div><div><a href="http://clang.llvm.org/doxygen/classclang_1_1SourceManager.html#a5573aab1578a194e43c7934e6902aeec">http://clang.llvm.org/doxygen/classclang_1_1SourceManager.html#a5573aab1578a194e43c7934e6902aeec</a><br></div><div><br></div><div>-- Sean Silva</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 7, 2015 at 1:16 PM, Welson Sun <span dir="ltr"><<a href="mailto:welson.sun@gmail.com" target="_blank">welson.sun@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">For a rewriting project, I need to replace one line text with another text. How do I create a SourceLocation or SourceRange for a given line number?<br clear="all"><div><div><div><div><div><div><div><div><div><div><div><div><br></div><div>Thanks,<br></div><div><div><div dir="ltr">- Welson<br><div><div><div><br></div></div></div></div></div>
</div></div></div></div></div></div></div></div></div></div></div></div></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>