[cfe-commits] r134550 - /cfe/trunk/tools/c-index-test/c-index-test.c
Francois Pichet
pichet2000 at gmail.com
Wed Jul 6 15:09:44 PDT 2011
Author: fpichet
Date: Wed Jul 6 17:09:44 2011
New Revision: 134550
URL: http://llvm.org/viewvc/llvm-project?rev=134550&view=rev
Log:
MSVC doesn't like mixing declarations and statements in a C file.
Modified:
cfe/trunk/tools/c-index-test/c-index-test.c
Modified: cfe/trunk/tools/c-index-test/c-index-test.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-index-test/c-index-test.c?rev=134550&r1=134549&r2=134550&view=diff
==============================================================================
--- cfe/trunk/tools/c-index-test/c-index-test.c (original)
+++ cfe/trunk/tools/c-index-test/c-index-test.c Wed Jul 6 17:09:44 2011
@@ -1496,6 +1496,7 @@
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 @@
return 1;
}
- int result = 0;
-
switch (clang_saveTranslationUnit(TU, filename,
clang_defaultSaveOptions(TU))) {
case CXSaveError_None:
More information about the cfe-commits
mailing list