[cfe-commits] r152823 - /cfe/trunk/tools/c-index-test/c-index-test.c
Argyrios Kyrtzidis
akyrtzi at gmail.com
Thu Mar 15 11:48:52 PDT 2012
Author: akirtzidis
Date: Thu Mar 15 13:48:52 2012
New Revision: 152823
URL: http://llvm.org/viewvc/llvm-project?rev=152823&view=rev
Log:
[c-index-test] Make it C90 compliant.
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=152823&r1=152822&r2=152823&view=diff
==============================================================================
--- cfe/trunk/tools/c-index-test/c-index-test.c (original)
+++ cfe/trunk/tools/c-index-test/c-index-test.c Thu Mar 15 13:48:52 2012
@@ -1784,10 +1784,12 @@
static CXIdxClientFile index_enteredMainFile(CXClientData client_data,
CXFile file, void *reserved) {
IndexData *index_data;
+ CXString filename;
+
index_data = (IndexData *)client_data;
printCheck(index_data);
- CXString filename = clang_getFileName(file);
+ filename = clang_getFileName(file);
index_data->main_filename = clang_getCString(filename);
clang_disposeString(filename);
More information about the cfe-commits
mailing list