summaryrefslogtreecommitdiffstats
path: root/include/clang/Sema/CodeCompleteConsumer.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-29 19:27:27 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-29 19:27:27 +0000
commit0c431c8c001e4c1f7488663d98700a8ce1e89e2a (patch)
tree6e146a551c2390a41009c5c534c9cf8af3ac4427 /include/clang/Sema/CodeCompleteConsumer.h
parent97204552708cda46ce4adb27e81f6d295f02fec1 (diff)
Improve code completion for initializer lists in constructors. Instead
of prioritizing just by initialization order, we bump the priority of just the *next* initializer in the list, and leave everything else at the normal priority. That way, if one intentionally skips the initialization of a base or member (to get default initialization), we'll still get ordered completion for the rest. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112454 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema/CodeCompleteConsumer.h')
-rw-r--r--include/clang/Sema/CodeCompleteConsumer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Sema/CodeCompleteConsumer.h b/include/clang/Sema/CodeCompleteConsumer.h
index edc6331af0..c8799372ab 100644
--- a/include/clang/Sema/CodeCompleteConsumer.h
+++ b/include/clang/Sema/CodeCompleteConsumer.h
@@ -30,6 +30,9 @@ namespace clang {
/// \brief Default priority values for code-completion results based
/// on their kind.
enum {
+ /// \brief Priority for the next initialization in a constructor initializer
+ /// list.
+ CCP_NextInitializer = 7,
/// \brief Priority for a send-to-super completion.
CCP_SuperCompletion = 8,
/// \brief Priority for a declaration that is in the local scope.