summaryrefslogtreecommitdiffstats
path: root/include/clang/Sema/CodeCompleteConsumer.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-26 16:36:48 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-26 16:36:48 +0000
commit3cdee121daa13403335094ce0e181b9911c2124c (patch)
treea213eb6e954d25d26d8087d2ed9e843d877855a4 /include/clang/Sema/CodeCompleteConsumer.h
parent38a4ffe5244e6be46f1b1f8394342a77836be776 (diff)
When code-completing a potential call to a C++ non-static member
function, take into account the qualifiers on the object argument (e.g., what will become "this"), filtering around uncallable member functions and giving a slight priority boost to those with exactly-matching qualifiers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112193 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema/CodeCompleteConsumer.h')
-rw-r--r--include/clang/Sema/CodeCompleteConsumer.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/clang/Sema/CodeCompleteConsumer.h b/include/clang/Sema/CodeCompleteConsumer.h
index 55bd576f96..27cda88cb2 100644
--- a/include/clang/Sema/CodeCompleteConsumer.h
+++ b/include/clang/Sema/CodeCompleteConsumer.h
@@ -55,7 +55,7 @@ enum {
CCP_Unlikely = 80
};
-/// \brief Priority value deltas that are applied to code-completion results
+/// \brief Priority value deltas that are added to code-completion results
/// based on the context of the result.
enum {
/// \brief The result is in a base class.
@@ -64,7 +64,10 @@ enum {
///
/// Since everything converts to "void", we don't give as drastic an
/// adjustment for matching void.
- CCD_VoidMatch = -5
+ 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
};
/// \brief Priority value factors by which we will divide or multiply the