<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 26 June 2018 at 15:54, Stephen Kelly via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Some AST classes have non-pure methods called getStartLoc, which return the <br>
same thing as getLocStart (DeclStmt and CXXNewExpr).<br>
<br>
This is confusing to a newcomer to the clang AST trying to write an AST <br>
matcher for example.<br>
<br>
Is there some reason for that?<br>
<br>
If not, is there any objection to me <br>
<br>
* Removing and porting away from getStartLoc() methods<br>
* Renaming DeclStmt::setStartLoc to getStartLoc</blockquote><div><br></div><div>There is no reason for this other than a change in preference at some point in the distant past that we never cleaned up after. Please feel free to do the cleanup you're suggesting! </div></div></div></div>