summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-05-26 22:00:08 +0000
committerDouglas Gregor <dgregor@apple.com>2010-05-26 22:00:08 +0000
commita2db793ff0aa397b882f112f954e57653321095b (patch)
tree020b84cbdf16db89e3e4d8fc4dfa5f397870ed61 /clang/include/clang-c
parente58f7b3c769942b1166408e509149ac754a055d4 (diff)
downloadbcm5719-llvm-a2db793ff0aa397b882f112f954e57653321095b.tar.gz
bcm5719-llvm-a2db793ff0aa397b882f112f954e57653321095b.zip
Introduce priorities into the code-completion results.
llvm-svn: 104751
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r--clang/include/clang-c/Index.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index 5fd5cbd1f0a..86926bd683b 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -1795,6 +1795,21 @@ CINDEX_LINKAGE unsigned
clang_getNumCompletionChunks(CXCompletionString completion_string);
/**
+ * \brief Determine the priority of this code completion.
+ *
+ * The priority of a code completion indicates how likely it is that this
+ * particular completion is the completion that the user will select. The
+ * priority is selected by various internal heuristics.
+ *
+ * \param completion_string The completion string to query.
+ *
+ * \returns The priority of this completion string. Smaller values indicate
+ * higher-priority (more likely) completions.
+ */
+CINDEX_LINKAGE unsigned
+clang_getCompletionPriority(CXCompletionString completion_string);
+
+/**
* \brief Contains the results of code-completion.
*
* This data structure contains the results of code completion, as
OpenPOWER on IntegriCloud