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

Argyrios Kyrtzidis akyrtzi at gmail.com
Wed Apr 11 12:54:10 PDT 2012


Author: akirtzidis
Date: Wed Apr 11 14:54:09 2012
New Revision: 154525

URL: http://llvm.org/viewvc/llvm-project?rev=154525&view=rev
Log:
[libclang] Apparently it's important to build in C89, sigh..

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=154525&r1=154524&r2=154525&view=diff
==============================================================================
--- cfe/trunk/tools/c-index-test/c-index-test.c (original)
+++ cfe/trunk/tools/c-index-test/c-index-test.c Wed Apr 11 14:54:09 2012
@@ -667,8 +667,9 @@
     {
       int numArgs = clang_Cursor_getNumArguments(cursor);
       if (numArgs != -1 && numArgs != 0) {
+        int i;
         printf(" [args=");
-        for (int i = 0; i < numArgs; ++i) {
+        for (i = 0; i < numArgs; ++i) {
           CXType T = clang_getCursorType(clang_Cursor_getArgument(cursor, i));
           if (T.kind != CXType_Invalid) {
             CXString S = clang_getTypeKindSpelling(T.kind);





More information about the cfe-commits mailing list