diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-05-27 23:06:34 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-05-27 23:06:34 +0000 |
commit | 8e254cfe5a6ab4202c7fcc4b64bdd1ca0fe071ac (patch) | |
tree | 5b9609e747f113a0dd635ce97801d5765cd524fa /include/clang/Parse/Action.h | |
parent | aeb4a28256a924d57b111842647cbd40ab67f6f0 (diff) |
Implement a code-completion hook for the receiver of an Objective-C
message. This completion gives better results than just using the
"expression" completion, which is effectively what happened before.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104895 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Parse/Action.h')
-rw-r--r-- | include/clang/Parse/Action.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/clang/Parse/Action.h b/include/clang/Parse/Action.h index 122fe850a1..d5488e8210 100644 --- a/include/clang/Parse/Action.h +++ b/include/clang/Parse/Action.h @@ -2853,6 +2853,14 @@ public: unsigned NumMethods) { } + /// \brief Code completion for the receiver in an Objective-C message send. + /// + /// This code completion action is invoked when we see a '[' that indicates + /// the start of an Objective-C message send. + /// + /// \param S The scope in which the Objective-C message send occurs. + virtual void CodeCompleteObjCMessageReceiver(Scope *S) { } + /// \brief Code completion for an ObjC message expression that sends /// a message to the superclass. /// |