aboutsummaryrefslogtreecommitdiff
path: root/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2011-07-06 22:09:44 +0000
committerFrancois Pichet <pichet2000@gmail.com>2011-07-06 22:09:44 +0000
commit08aa622ab923fb8a2751f213feee0b9124ee86fb (patch)
treebdaf1dc3dc1df52e29c408026056e4052135e5ba /tools/c-index-test/c-index-test.c
parentbca01b46850f867b2f4137f25c882022b58f8471 (diff)
MSVC doesn't like mixing declarations and statements in a C file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134550 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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c
index d1bdf96e71..d077653335 100644
--- a/tools/c-index-test/c-index-test.c
+++ b/tools/c-index-test/c-index-test.c
@@ -1496,6 +1496,7 @@ int write_pch_file(const char *filename, int argc, const char *argv[]) {
CXTranslationUnit TU;
struct CXUnsavedFile *unsaved_files = 0;
int num_unsaved_files = 0;
+ int result = 0;
Idx = clang_createIndex(/* excludeDeclsFromPCH */1, /* displayDiagnosics=*/1);
@@ -1517,8 +1518,6 @@ int write_pch_file(const char *filename, int argc, const char *argv[]) {
return 1;
}
- int result = 0;
-
switch (clang_saveTranslationUnit(TU, filename,
clang_defaultSaveOptions(TU))) {
case CXSaveError_None: