[cfe-dev] API Removal Notice (4 weeks): getStartLoc, getLocStart, getLocEnd

Chris Lattner via cfe-dev cfe-dev at lists.llvm.org
Fri Aug 10 09:49:37 PDT 2018



> On Aug 9, 2018, at 4:13 PM, Stephen Kelly via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> 
> 
> Hello,
> 
> In order to increase consistency and learnability of AST APIs, I have committed the following transformations on AST Node APIs:
> 
> getLocStart -> getBeginLoc
> getStartLoc -> getBeginLoc
> getLocEnd -> getEndLoc
> 
> This is consistent with other SourceLocation accessors, which follow a pattern of get.*Loc.

Thank you!  This has been maddening for years.

-Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180810/8223f55e/attachment.html>


More information about the cfe-dev mailing list