[cfe-commits] r144272 - /cfe/trunk/tools/c-index-test/c-index-test.c

NAKAMURA Takumi geek4civic at gmail.com
Thu Nov 10 01:30:15 PST 2011


Author: chapuni
Date: Thu Nov 10 03:30:15 2011
New Revision: 144272

URL: http://llvm.org/viewvc/llvm-project?rev=144272&view=rev
Log:
c-index-test.c: Fix syntax. It is C source.

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=144272&r1=144271&r2=144272&view=diff
==============================================================================
--- cfe/trunk/tools/c-index-test/c-index-test.c (original)
+++ cfe/trunk/tools/c-index-test/c-index-test.c Thu Nov 10 03:30:15 2011
@@ -2510,13 +2510,14 @@
 }
 
 static void printDiagnosticSet(CXDiagnosticSet Diags, unsigned indent) {
+  unsigned i, n;
+
   if (!Diags)
     return;
   
   fprintf(stderr, "\n");
 
-  unsigned i = 0;
-  unsigned n = clang_getNumDiagnosticsInSet(Diags);
+  n = clang_getNumDiagnosticsInSet(Diags);
   for (i = 0; i < n; ++i) {
     CXSourceLocation DiagLoc;
     CXDiagnostic D;





More information about the cfe-commits mailing list