]> granicus.if.org Git - clang/commit
[Tooling] Clear the PreambleSrcLocCache when preamble is discarded during reparsing
authorAlex Lorenz <arphaman@gmail.com>
Mon, 12 Mar 2018 19:36:29 +0000 (19:36 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 12 Mar 2018 19:36:29 +0000 (19:36 +0000)
commit07fe671aaad3e93b9f7178ae1309304a73a3b3bf
tree7acc2006dd73d86cebf93e856358067f19bd61fe
parented0ca152fbe69b6230715a32f29415a526b46331
[Tooling] Clear the PreambleSrcLocCache when preamble is discarded during reparsing

This ensures that diagnostics are not remapped to incorrect preamble locations after
the second reparse with a remapped header file occurs.

rdar://37502480

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@327322 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/ASTUnit.cpp
test/Index/Inputs/reparse-issue.h [new file with mode: 0644]
test/Index/Inputs/reparse-issue.h-0 [new file with mode: 0644]
test/Index/Inputs/reparse-issue.h-1 [new file with mode: 0644]
test/Index/reparsed-live-issue.cpp [new file with mode: 0644]