[libclang] Even though we disable the preprocessing record during indexing,
make sure that it gets enabled for when a module needs to be created.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165021 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 28ad59e..5b71e5c 100644
--- a/tools/c-index-test/c-index-test.c
+++ b/tools/c-index-test/c-index-test.c
@@ -2552,7 +2552,8 @@
idxAction = clang_IndexAction_create(Idx);
result = clang_indexSourceFile(idxAction, &index_data,
&IndexCB,sizeof(IndexCB), index_opts,
- 0, argv, argc, 0, 0, 0, 0);
+ 0, argv, argc, 0, 0, 0,
+ getDefaultParsingOptions());
if (index_data.fail_for_error)
result = -1;