PetScan::scan: use expansion offset to determine if statement is inside scop
commite16664251637df4650736c9d897e39f5f192aa11
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 1 Oct 2012 14:21:46 +0000 (1 16:21 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 1 Oct 2012 14:29:22 +0000 (1 16:29 +0200)
tree1921920c0646e7d6d609033ce2f08add2c98e9c2
parentdba1c4c48456f8cd387aca080409b1fbc44dd1f1
PetScan::scan: use expansion offset to determine if statement is inside scop

By default, clang will report the spelling location, but in order
to determine whether a statement is inside the range of the scop,
we should look at where the macro is called rather than where the
macro is defined.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
scan.cc
tests/macro.c [new file with mode: 0644]
tests/macro.scop [new file with mode: 0644]