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
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c
index 8146213..1530aa8 100644
--- a/tools/c-index-test/c-index-test.c
+++ b/tools/c-index-test/c-index-test.c
@@ -896,7 +896,8 @@
                                   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,