diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-08-24 23:58:17 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-08-24 23:58:17 +0000 |
commit | eb0d0145910f3024d9bdefe279a1e9b95495f2fd (patch) | |
tree | 7ae1dbf7babc02f912b30ce76df491f9d75c14c2 /include/clang/Sema/CodeCompleteConsumer.h | |
parent | 124300e428d4e987430e5e79c42f4a760e60d8d3 (diff) |
Give a slight preference to functions returning "void" when we're
performing code completion at the statement level (rather than in an
arbitrary expression).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema/CodeCompleteConsumer.h')
-rw-r--r-- | include/clang/Sema/CodeCompleteConsumer.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/clang/Sema/CodeCompleteConsumer.h b/include/clang/Sema/CodeCompleteConsumer.h index 87974f1452..b4a0301dbf 100644 --- a/include/clang/Sema/CodeCompleteConsumer.h +++ b/include/clang/Sema/CodeCompleteConsumer.h @@ -59,7 +59,12 @@ enum { /// based on the context of the result. enum { /// \brief The result is in a base class. - CCD_InBaseClass = 2 + CCD_InBaseClass = 2, + /// \brief The result is a type match against void. + /// + /// Since everything converts to "void", we don't give as drastic an + /// adjustment for matching void. + CCD_VoidMatch = -5 }; /// \brief Priority value factors by which we will divide or multiply the |