[cfe-dev] getSourceRange of an Expr Stmt covering the closing "; "?

Stephan Bergmann via cfe-dev cfe-dev at lists.llvm.org
Tue Oct 29 02:48:15 PDT 2019


Because of how Expr is derived from Stmt, e.getSourceRange() for an Expr 
e that constitutes an expression-statement doesn't include the closing ";".

Is there perhaps some code already somewhere that provides the extended 
SourceRange?  (I'd imagined that SourceManager might provide something 
like that, but couldn't find anything.)




More information about the cfe-dev mailing list