]> granicus.if.org Git - clang/commit
In code-completion contexts where both types and other values are
authorDouglas Gregor <dgregor@apple.com>
Tue, 24 Aug 2010 23:40:45 +0000 (23:40 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 24 Aug 2010 23:40:45 +0000 (23:40 +0000)
commitd43dd83a973c585c39a9a5e5e904282bc2371986
treedda4e5c10c2706529aa347c92efba1e2dc8334cb
parentc988fab9860e83f25ef51101fef162b49380582b
In code-completion contexts where both types and other values are
present, prefer values to types, since it's more common to compute
with values than it is to declare new entities or perform type
casts. So, tweak the ranking of types vs. other declarations and
constants accordingly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111998 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/CodeCompleteConsumer.h
test/Index/code-completion.cpp
test/Index/complete-declarators.cpp
test/Index/complete-exprs.c
test/Index/complete-hiding.c
test/Index/complete-method-decls.m
test/Index/complete-preprocessor.m