summaryrefslogtreecommitdiffstats
path: root/include/clang/Sema/CodeCompleteConsumer.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-27 15:10:57 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-27 15:10:57 +0000
commit03d8aec611380d30ddb0659bb61be9289c3871b3 (patch)
tree2483610bd133f082346e7c12cf3b134fe9099555 /include/clang/Sema/CodeCompleteConsumer.h
parentb1e03539b8c636d06d7b35cb20a5335e4ed1543b (diff)
Add a super-cool code completion for send-to-super. When we're typing
a message send to "super" from a method that appears to be meant to override a superclass method (same kind, same selector, same argument types), provide a "super" completion that fills in the selector along with forwarding the method's arguments (as placeholders). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112263 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema/CodeCompleteConsumer.h')
-rw-r--r--include/clang/Sema/CodeCompleteConsumer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Sema/CodeCompleteConsumer.h b/include/clang/Sema/CodeCompleteConsumer.h
index 27cda88cb2..46650baf2f 100644
--- a/include/clang/Sema/CodeCompleteConsumer.h
+++ b/include/clang/Sema/CodeCompleteConsumer.h
@@ -30,6 +30,8 @@ namespace clang {
/// \brief Default priority values for code-completion results based
/// on their kind.
enum {
+ /// \brief Priority for a send-to-super completion.
+ CCP_SuperCompletion = 8,
/// \brief Priority for a declaration that is in the local scope.
CCP_LocalDeclaration = 8,
/// \brief Priority for a member declaration found from the current