r249652 - Fix a -Wdeclaration-after-statement warning.
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 7 20:37:36 PDT 2015
Author: ctopper
Date: Wed Oct 7 22:37:36 2015
New Revision: 249652
URL: http://llvm.org/viewvc/llvm-project?rev=249652&view=rev
Log:
Fix a -Wdeclaration-after-statement warning.
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=249652&r1=249651&r2=249652&view=diff
==============================================================================
--- cfe/trunk/tools/c-index-test/c-index-test.c (original)
+++ cfe/trunk/tools/c-index-test/c-index-test.c Wed Oct 7 22:37:36 2015
@@ -1429,9 +1429,9 @@ static enum CXChildVisitResult PrintType
static enum CXChildVisitResult PrintMangledName(CXCursor cursor, CXCursor p,
CXClientData d) {
+ CXString MangledName;
if (clang_isUnexposed(clang_getCursorKind(cursor)))
return CXChildVisit_Recurse;
- CXString MangledName;
PrintCursor(cursor, NULL);
MangledName = clang_Cursor_getMangling(cursor);
printf(" [mangled=%s]\n", clang_getCString(MangledName));
More information about the cfe-commits
mailing list