[cfe-dev] SourceLocation of FunctionDecl

Jan Bierbaum s3306700 at inf.tu-dresden.de
Fri Nov 5 05:59:03 PDT 2010


Nimrod Partush meinte am 02.11.2010 17:20:
> 2. When i try to receive the end location of the previous entity, i get
> a location which is 2 or 3 offsets prior to the actual location. I think
> this is a bug in GetLocEnd.

No bug I guess. 'getLocEnd()' uses 'SourceRange().getEnd()' and
'SourceRange' is a bit counterintuitive.

http://clang.llvm.org/docs/InternalsManual.html#SourceRange


Regards, Jan.



More information about the cfe-dev mailing list