]> granicus.if.org Git - clang/commit
Improve the invalidation logic for the cache of global code
authorDouglas Gregor <dgregor@apple.com>
Wed, 16 Feb 2011 18:16:54 +0000 (18:16 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 16 Feb 2011 18:16:54 +0000 (18:16 +0000)
commit9b7db6200d366e4964d63ae1f33c7b9d7b9831cb
tree4212b6b4da533d76ee556afd83fa128bdf1f42cc
parent9c97ca091200311229ce3cb070f0ed8846687eda
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