diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-08-27 15:29:55 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-08-27 15:29:55 +0000 |
commit | 265f749edb28a80db517cc9051bd21092720d0f0 (patch) | |
tree | f0ae980bdefd202114178010682b52bdfc63a094 /include/clang/Sema/CodeCompleteConsumer.h | |
parent | 03d8aec611380d30ddb0659bb61be9289c3871b3 (diff) |
When code-completing inside an Objective-C method, give a slight
priority boost to methods with the same selector.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112268 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema/CodeCompleteConsumer.h')
-rw-r--r-- | include/clang/Sema/CodeCompleteConsumer.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/clang/Sema/CodeCompleteConsumer.h b/include/clang/Sema/CodeCompleteConsumer.h index 46650baf2f..28210576e0 100644 --- a/include/clang/Sema/CodeCompleteConsumer.h +++ b/include/clang/Sema/CodeCompleteConsumer.h @@ -69,7 +69,11 @@ enum { CCD_VoidMatch = -5, /// \brief The result is a C++ non-static member function whose qualifiers /// exactly match the object type on which the member function can be called. - CCD_ObjectQualifierMatch = -1 + CCD_ObjectQualifierMatch = -1, + /// \brief The selector of the given message exactly matches the selector + /// of the current method, which might imply that some kind of delegation + /// is occurring. + CCD_SelectorMatch = -3 }; /// \brief Priority value factors by which we will divide or multiply the |