derive offset information from location of scop and endscop pragmas
commite00885c64ae16587ef60eb4154b5d2515c0a633c
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 5 Feb 2013 16:37:13 +0000 (5 17:37 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sat, 9 Feb 2013 12:25:54 +0000 (9 13:25 +0100)
treec727fb0a2e8ce8a943354f76281531f90c91bd7e
parent6c48ded31e4332dc252b44e117baadddc978ed78
derive offset information from location of scop and endscop pragmas

The file offsets derived from the AST currently do not take into account
leading spaces on the first statement and (in some cases) trailing
spaces and newline on the last statement.
In the presence of scop and endscop pragmas, we can simply make the offsets
refer to the piece of text delimited by the two pragmas.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
configure.ac
include/pet.h
pet.cc
scan.cc