diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-10-17 22:12:24 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-10-17 22:12:24 +0000 |
commit | 317ebfe18e16375f5fb8be43a19899276893806e (patch) | |
tree | 48eeca818fae50ffa7aa4aaa8f2b2a50548f5092 /clang/tools/c-index-test/c-index-test.c | |
parent | 0533a9508b4a9dac43614ee935fe55acfe7138c1 (diff) | |
download | llvm-317ebfe18e16375f5fb8be43a19899276893806e.zip llvm-317ebfe18e16375f5fb8be43a19899276893806e.tar.gz llvm-317ebfe18e16375f5fb8be43a19899276893806e.tar.bz2 |
Try fixing MSVC compiler errors.
llvm-svn: 142289
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r-- | clang/tools/c-index-test/c-index-test.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c index 97c78db..5ebad6f 100644 --- a/clang/tools/c-index-test/c-index-test.c +++ b/clang/tools/c-index-test/c-index-test.c @@ -1507,6 +1507,7 @@ static void printCXIndexLoc(CXIdxLoc loc) { const char *cname, *end; CXIdxFile file; unsigned line, column; + int isHeader; clang_indexLoc_getFileLocation(loc, &file, 0, &line, &column, 0); if (line == 0) { @@ -1516,7 +1517,7 @@ static void printCXIndexLoc(CXIdxLoc loc) { filename = clang_getFileName((CXFile)file); cname = clang_getCString(filename); end = cname + strlen(cname); - int isHeader = (end[-2] == '.' && end[-1] == 'h'); + isHeader = (end[-2] == '.' && end[-1] == 'h'); if (isHeader) { printCXIndexFile(file); @@ -1685,9 +1686,14 @@ static void index_ppMacroExpanded(CXClientData client_data, static CXIdxEntity index_importedEntity(CXClientData client_data, CXIdxImportedEntityInfo *info) { IndexData *index_data; - CXIdxIndexedDeclInfo DeclInfo = { info->cursor, info->loc, 0 }; - CXIdxIndexedEntityInfo EntityInfo = { info->entityInfo, &DeclInfo }; + CXIdxIndexedDeclInfo DeclInfo; + CXIdxIndexedEntityInfo EntityInfo; const char *name; + DeclInfo.cursor = info->cursor; + DeclInfo.loc = info->loc; + DeclInfo.container = 0; + EntityInfo.entityInfo = info->entityInfo; + EntityInfo.declInfo = &DeclInfo; index_data = (IndexData *)client_data; printCheck(index_data); |