]> granicus.if.org Git - clang/commit
When performing code-completion in the presence of a preamble, make
authorDouglas Gregor <dgregor@apple.com>
Fri, 20 Aug 2010 00:59:43 +0000 (00:59 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 20 Aug 2010 00:59:43 +0000 (00:59 +0000)
commit2283d79155a3e82442fce124ce5fd704ca138801
tree2bcc8745f5052aad44acdacbd1b96a7f473bc89e
parent6dbce19fdae4cfae4eb5f826284978e723a04e61
When performing code-completion in the presence of a preamble, make
sure to (1) actually use the remapped files we were given rather
than old data, and (2) keep the remapped files alive until the
code-completion results are destroyed. Big thanks to Daniel for the
test case.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111597 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/ASTUnit.h
lib/Frontend/ASTUnit.cpp
test/Index/crash-recovery-code-complete.c
tools/libclang/CIndexCodeCompletion.cpp