diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-08-05 09:09:23 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-08-05 09:09:23 +0000 |
commit | cee235cdf0b8047761ffac598c4c3a32ab7411a2 (patch) | |
tree | b28a68eb1df50b33f3d65913ef9c743485a6eb5f /tools/c-index-test/c-index-test.c | |
parent | 57e97786433e70197a089360228d8f0d82e3ad4c (diff) |
Give clang_codeCompleteAt() an "options" parameter, and add a new
flags enumeration + default-generating function that allows
code-completion to be customized via the libclang API.
Plus, turn on spell-checking when performing code completion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110319 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-index-test/c-index-test.c')
-rw-r--r-- | tools/c-index-test/c-index-test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index 8146213225..1530aa8697 100644 --- a/tools/c-index-test/c-index-test.c +++ b/tools/c-index-test/c-index-test.c @@ -896,7 +896,8 @@ int perform_code_completion(int argc, const char **argv, int timing_only) { num_unsaved_files, getDefaultParsingOptions()); results = clang_codeCompleteAt(TU, filename, line, column, - unsaved_files, num_unsaved_files); + unsaved_files, num_unsaved_files, + clang_defaultCodeCompleteOptions()); } else results = clang_codeComplete(CIdx, argv[argc - 1], argc - num_unsaved_files - 3, |