summaryrefslogtreecommitdiffstats
path: root/include/clang/Sema/CodeCompleteConsumer.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-09-20 23:11:55 +0000
committerDouglas Gregor <dgregor@apple.com>2010-09-20 23:11:55 +0000
commit08f43cd5d966fd31b32bd5c76c0645ebbf08b2f1 (patch)
tree59221ecea8a8a727941d384d8373367966cc5833 /include/clang/Sema/CodeCompleteConsumer.h
parent6155d73ad1668be5335b1a060f6c49c03d4dca05 (diff)
Code completion has no reason to prefer values over types, especially
at the statement level or in Objective-C message receivers. Therefore, just give types and declarations the same basic priority, and adjust from there. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114374 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema/CodeCompleteConsumer.h')
-rw-r--r--include/clang/Sema/CodeCompleteConsumer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Sema/CodeCompleteConsumer.h b/include/clang/Sema/CodeCompleteConsumer.h
index 545596d1c8..d9014f13ea 100644
--- a/include/clang/Sema/CodeCompleteConsumer.h
+++ b/include/clang/Sema/CodeCompleteConsumer.h
@@ -50,7 +50,7 @@ enum {
/// \brief Priority for a non-type declaration.
CCP_Declaration = 50,
/// \brief Priority for a type.
- CCP_Type = 60,
+ CCP_Type = CCP_Declaration,
/// \brief Priority for a constant value (e.g., enumerator).
CCP_Constant = 65,
/// \brief Priority for a preprocessor macro.
@@ -606,7 +606,7 @@ public:
void Destroy();
- /// brief Determine a base priority for the given declaration.
+ /// \brief Determine a base priority for the given declaration.
static unsigned getPriorityFromDecl(NamedDecl *ND);
private: