]> granicus.if.org Git - clang/commit
fix sometimes incorrect line numbers in -frewrite-includes mode (pr#14795)
authorLubos Lunak <l.lunak@suse.cz>
Sat, 20 Jul 2013 14:23:27 +0000 (14:23 +0000)
committerLubos Lunak <l.lunak@suse.cz>
Sat, 20 Jul 2013 14:23:27 +0000 (14:23 +0000)
commitce6af1189fb8f6d2a6fa083cff84a796c8377504
tree335bff05dffdf36109dc6912abf2f53af8392d4b
parent844a52783c73cff2535c8d9c9bfe8da29991c1ea
fix sometimes incorrect line numbers in -frewrite-includes mode (pr#14795)

Every #include is surrounded by #if 0 in order to comment it out, which adds
lines. That is fixed up right after, but that all can be inside #if part
that is not processed, so fix up also after every end of a conditional part.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186763 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Rewrite/Frontend/InclusionRewriter.cpp
test/Frontend/rewrite-includes.c