aboutsummaryrefslogtreecommitdiff
path: root/clang/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-11 15:58:42 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-11 15:58:42 +0000
commitde05118c84dd4fc3e612bec263a6f3178cf5d3db (patch)
treecc7af5f8708f7c9f6e32d1da98cad823a444db50 /clang/tools/c-index-test/c-index-test.c
parent4d5dc3e7e54a7fcea7eeb6951d88f2c72001fb7e (diff)
downloadllvm-de05118c84dd4fc3e612bec263a6f3178cf5d3db.zip
llvm-de05118c84dd4fc3e612bec263a6f3178cf5d3db.tar.gz
llvm-de05118c84dd4fc3e612bec263a6f3178cf5d3db.tar.bz2
Add a (currently unused) "options" parameter to
clang_reparseTranslationUnit(), along with a function to retrieve the default recommended reparsing options for a translation unit. Also, add the CXTranslationUnit_CacheCompletionResults flag, which is also currently unused. llvm-svn: 110811
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r--clang/tools/c-index-test/c-index-test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index be5084b..f95829b 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/tools/c-index-test/c-index-test.c
@@ -639,7 +639,8 @@ int perform_test_reparse_source(int argc, const char **argv, int trials,
}
for (trial = 0; trial < trials; ++trial) {
- if (clang_reparseTranslationUnit(TU, num_unsaved_files, unsaved_files)) {
+ if (clang_reparseTranslationUnit(TU, num_unsaved_files, unsaved_files,
+ clang_defaultReparseOptions(TU))) {
clang_disposeTranslationUnit(TU);
free_remapped_files(unsaved_files, num_unsaved_files);
clang_disposeIndex(Idx);