diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-05-26 22:00:08 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-05-26 22:00:08 +0000 |
| commit | a2db793ff0aa397b882f112f954e57653321095b (patch) | |
| tree | 020b84cbdf16db89e3e4d8fc4dfa5f397870ed61 /clang/include/clang-c | |
| parent | e58f7b3c769942b1166408e509149ac754a055d4 (diff) | |
| download | bcm5719-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.h | 15 |
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 |

