]> granicus.if.org Git - clang/commit
[libclang] Store unsaved file hashes when recording parsing invocations
authorAlex Lorenz <arphaman@gmail.com>
Tue, 5 Dec 2017 02:30:43 +0000 (02:30 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Tue, 5 Dec 2017 02:30:43 +0000 (02:30 +0000)
commit99ba11f395fafcc2fd32b623cdc556115b08a693
treeeaa6704413ce4145a33d2576fe1825eeecb7916b
parent25b45aa81854313486df891985cdd7ef1ec09780
[libclang] Store unsaved file hashes when recording parsing invocations

Storing the contents of unsaved files is too expensive.
Instead a hash is stored with a record invocation. When a reproducer is
generated, Clang will compare the stored hashes to the new hashes to determine
if the contents of a file has changed. This way we'll know when a reproducer was
generated for a different source to the one that triggered the original crash.

rdar://35322543

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319729 91177308-0d34-0410-b5e6-96231b3b80d8
test/Index/Inputs/record-parsing-invocation-remap.c [new file with mode: 0644]
test/Index/record-parsing-invocation.c
tools/libclang/CIndex.cpp
tools/libclang/CIndexer.cpp
tools/libclang/CIndexer.h