[cfe-dev] SourceRange and its end
Thomas Sanchez
thomas.sanchz at gmail.com
Thu Oct 6 01:13:49 PDT 2011
Hi,
I would like to get the end of an expression, for example during a
visit for a binary operator:
Expr const *lhs = node->getLHS();
SourceLocation loc = lhs->getSourceRange().getEnd();
clang::PresumedLoc ploc = sm.getPresumedLoc(loc);
size_t column = sm.getSpellingColumnNumber(loc)
I got only the beginning of the expression (i.e. the beginning == the
end), how can I get the end or the size of the expression ?
Thank you !
--
Thomas Sanchez
Epitech Paris, Promo 2012
UNIX/C/C++ Teacher Assistant
Laboratory System {Epita,Epitech}.
More information about the cfe-dev
mailing list