diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index 750b519e04..43f09836ce 100644 --- a/tools/c-index-test/c-index-test.c +++ b/tools/c-index-test/c-index-test.c @@ -1757,8 +1757,8 @@ static void index_indexDeclaration(CXClientData client_data, printf(" | isImplicit: %d\n", info->isImplicit); for (i = 0; i != info->numAttributes; ++i) { + const CXIdxAttrInfo *Attr = info->attributes[i]; printf(" : "); - const CXIdxAttrInfo *Attr = info->attributes[i]; PrintCursor(Attr->cursor); printf("\n"); }