Improve the invalidation logic for the cache of global code
commit2074c09dcc6437b8d1f676f668a0964b73f08f8a
authorDouglas Gregor <doug.gregor@gmail.com>
Wed, 16 Feb 2011 18:16:54 +0000 (16 18:16 +0000)
committerDouglas Gregor <doug.gregor@gmail.com>
Wed, 16 Feb 2011 18:16:54 +0000 (16 18:16 +0000)
tree4212b6b4da533d76ee556afd83fa128bdf1f42cc
parentee46ad297ea58947701f2056fec410332f0b1886
Improve the invalidation logic for the cache of global code
completions. We now compute a hash of the names of all top-level
declarations and macro definitions, and invalidate the cache when the
hash value changes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125670 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/ASTUnit.h
lib/Frontend/ASTUnit.cpp