keep track of indentation of extracted code
commit8504e4a8670955348dbf0131a93a71020f074cf1
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 27 Jan 2014 18:23:50 +0000 (27 19:23 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 31 Mar 2014 12:08:03 +0000 (31 14:08 +0200)
tree3100ddef0a954d93dcd1394a89f6c8b5cd8e8f92
parent5315c61818e3dbdcee3da9ae4318f6a0c7ba9e5d
keep track of indentation of extracted code

This allows us to print the transformed code with the same (initial)
indentation.

Note that we do not check the indentation when comparing two scops.
It is not clear if the way we extract the indentation would
produce the same results across different versions of clang.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
147 files changed:
emit.c
include/pet.h
loc.c
loc.h
parse.c
pet.cc
scan.cc
scop.c
tests/QR.scop
tests/arg.scop
tests/assume.scop
tests/assume2.scop
tests/autodetect/decl.scop
tests/autodetect/if1.scop
tests/autodetect/if2.scop
tests/autodetect/if3.scop
tests/autodetect/loop1.scop
tests/autodetect/loop2.scop
tests/autodetect/loop3.scop
tests/autodetect/loop4.scop
tests/autodetect/loop5.scop
tests/autodetect/scalar.scop
tests/autodetect/while.scop
tests/boolean.scop
tests/break.scop
tests/break2.scop
tests/break3.scop
tests/break4.scop
tests/break5.scop
tests/break6.scop
tests/cast.scop
tests/ceild.scop
tests/conditional_assignment.scop
tests/conditional_assignment2.scop
tests/continue.scop
tests/continue2.scop
tests/continue3.scop
tests/continue4.scop
tests/continue5.scop
tests/cuervo.scop
tests/data_dependent.scop
tests/data_dependent2.scop
tests/dec.scop
tests/dec2.scop
tests/dec3.scop
tests/dec4.scop
tests/decl.scop
tests/decl2.scop
tests/decl3.scop
tests/div_mod.scop
tests/dynamic_bound.scop
tests/dynamic_condition.scop
tests/empty_domain.scop
tests/enum.scop
tests/filter.scop
tests/filter2.scop
tests/filter3.scop
tests/float.scop
tests/float2.scop
tests/floord.scop
tests/floord2.scop
tests/for_while.scop
tests/for_while_dec.scop
tests/for_while_inc.scop
tests/for_while_inc2.scop
tests/for_while_inc3.scop
tests/for_while_inc4.scop
tests/for_while_init.scop
tests/for_while_init2.scop
tests/for_while_init3.scop
tests/for_while_overflow.scop
tests/for_while_unsigned.scop
tests/for_while_unsigned2.scop
tests/forward_substitution1.scop
tests/forward_substitution2.scop
tests/forward_substitution3.scop
tests/forward_substitution4.scop
tests/forward_substitution5.scop
tests/generic_condition.scop
tests/generic_condition2.scop
tests/if1.scop
tests/if2.scop
tests/implicit_condition.scop
tests/inc.scop
tests/inc2.scop
tests/inc3.scop
tests/inc4.scop
tests/inc5.scop
tests/inf.scop
tests/inf2.scop
tests/inf3.scop
tests/inf4.scop
tests/iterator_declaration.scop
tests/label.scop
tests/loop.scop
tests/loop2.scop
tests/loop3.scop
tests/loop4.scop
tests/loop5.scop
tests/loop6.scop
tests/loop7.scop
tests/loop8.scop
tests/loop_body.scop
tests/loop_body2.scop
tests/macro.scop
tests/matmul.scop
tests/max.scop
tests/min.scop
tests/min2.scop
tests/mod.scop
tests/mod2.scop
tests/omega.scop
tests/piecewise.scop
tests/piecewise2.scop
tests/propagate.scop
tests/quasi_affine.scop
tests/scalar.scop
tests/scalar_inc.scop
tests/shortcut1.scop
tests/shortcut2.scop
tests/static.scop
tests/struct1.scop
tests/struct10.scop
tests/struct11.scop
tests/struct2.scop
tests/struct3.scop
tests/struct4.scop
tests/struct5.scop
tests/struct6.scop
tests/struct7.scop
tests/struct8.scop
tests/struct9.scop
tests/ternary.scop
tests/tobi1.scop
tests/tobi2.scop
tests/unsigned1.scop
tests/unsigned2.scop
tests/unsigned3.scop
tests/unsigned_break1.scop
tests/unsigned_break2.scop
tests/wdp.scop
tests/while.scop
tests/while_affine.scop
tests/while_break.scop
tests/while_break2.scop
tests/while_inc.scop
tests/while_overflow.scop