summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-16 18:08:11 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-16 18:08:11 +0000
commitb61c07aca03841b461bc8f9b44c93be9abc0c640 (patch)
tree6d22032ef78a7331f93e4832aa8cdcf1608a92dd /clang/lib/Frontend/CompilerInvocation.cpp
parent8be0196afeed5dd738fce4c7df950f205e462c13 (diff)
downloadbcm5719-llvm-b61c07aca03841b461bc8f9b44c93be9abc0c640.tar.gz
bcm5719-llvm-b61c07aca03841b461bc8f9b44c93be9abc0c640.zip
When caching code completions for global declarations, keep track of
the usage type of each declaration result, then compare those types to the preferred type of the completion. This provides parity in the priority calculation between the code-completion results produced directly from Sema and those cached by ASTUnit. For the standard Cocoa.h (+ others) example, there's a penalty of 3-4 hundredeths of a second when caching the global results (for ~31,000 results), because we need an ASTContext-agnostic representation of types for the comparison, and therefore we use... strings. Eventually, we'd like to implement a more efficient ASTContext-agnostic encoding of types. llvm-svn: 111165
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud