[libclang] Apparently it's important to build in C89, sigh..

llvm-svn: 154525
This commit is contained in:
Argyrios Kyrtzidis 2012-04-11 19:54:09 +00:00
parent 0c27e4b36b
commit 088041721f
1 changed files with 2 additions and 1 deletions

View File

@ -667,8 +667,9 @@ static enum CXChildVisitResult PrintTypeKind(CXCursor cursor, CXCursor p,
{
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);