]> granicus.if.org Git - clang/commit
Synchronize globally-cached code completion results with the results
authorDouglas Gregor <dgregor@apple.com>
Thu, 23 Sep 2010 23:01:17 +0000 (23:01 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 23 Sep 2010 23:01:17 +0000 (23:01 +0000)
commit52779fb71795534d0447f6f4d4a6f6a7b09c4639
treeebe30da1c1eb36ba1ff4e70e688ff2711efc11df
parentb17cc9e904c277b97cc4d57227122acd8d46ed36
Synchronize globally-cached code completion results with the results
provided when the optimization is disabled. In particular, split
the completion context CCC_Other into two contexts: CCC_Other, which
means that it's an undisclosed context for which any other results are
unwelcome, and CCC_Recovery, which is used in recovery cases.

Since we're now using the completion context within the completion
results builder, make sure that it's always set to something.

Fixes <rdar://problem/8470644>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114704 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/CodeCompleteConsumer.h
lib/Frontend/ASTUnit.cpp
lib/Sema/CodeCompleteConsumer.cpp
lib/Sema/SemaCodeComplete.cpp
test/Index/complete-declarators.cpp