[cfe-commits] r169277 - /cfe/trunk/tools/c-index-test/c-index-test.c
NAKAMURA Takumi
geek4civic at gmail.com
Tue Dec 4 07:32:04 PST 2012
Author: chapuni
Date: Tue Dec 4 09:32:03 2012
New Revision: 169277
URL: http://llvm.org/viewvc/llvm-project?rev=169277&view=rev
Log:
c-index-test.c: Make C89-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=169277&r1=169276&r2=169277&view=diff
==============================================================================
--- cfe/trunk/tools/c-index-test/c-index-test.c (original)
+++ cfe/trunk/tools/c-index-test/c-index-test.c Tue Dec 4 09:32:03 2012
@@ -1140,10 +1140,11 @@
static enum CXChildVisitResult PrintBitWidth(CXCursor cursor, CXCursor p,
CXClientData d) {
+ int Bitwidth;
if (clang_getCursorKind(cursor) != CXCursor_FieldDecl)
return CXChildVisit_Recurse;
- int Bitwidth = clang_getFieldDeclBitWidth(cursor);
+ Bitwidth = clang_getFieldDeclBitWidth(cursor);
if (Bitwidth >= 0) {
PrintCursor(cursor, NULL);
printf(" bitwidth=%d\n", Bitwidth);
More information about the cfe-commits
mailing list