[cfe-dev] getLocStart versus getStartLoc

Stephen Kelly via cfe-dev cfe-dev at lists.llvm.org
Tue Jun 26 15:54:06 PDT 2018


Hello,

Some AST classes have non-pure methods called getStartLoc, which return the 
same thing as getLocStart (DeclStmt and CXXNewExpr).

This is confusing to a newcomer to the clang AST trying to write an AST 
matcher for example.

Is there some reason for that?

If not, is there any objection to me 

* Removing and porting away from getStartLoc() methods
* Renaming DeclStmt::setStartLoc to getStartLoc

Thanks,

Stephen.





More information about the cfe-dev mailing list