[cfe-commits] r80787 - in /cfe/trunk: include/clang-c/Index.h tools/CIndex/CIndex.cpp tools/c-index-test/c-index-test.c

Daniel Dunbar daniel at zuster.org
Wed Sep 2 09:38:51 PDT 2009

Hi Steve,

On Wed, Sep 2, 2009 at 6:28 AM, Steve Naroff<snaroff at apple.com> wrote:
> +    enum CXCursorKind filterData = CXCursor_FieldDecl;
> +    clang_loadDeclaration(Cursor.decl, DeclVisitor, 0);

filterData is dead?

> +  enum CXCursorKind filterData = CXCursor_StructDecl;
> +  clang_loadTranslationUnit(TU, TranslationUnitVisitor, 0);

and here.

Also watch out for:
c-index-test.c:26: warning: ISO C90 forbids mixed declarations and code

Actually, maybe we should just make this file a .cpp? Just because it
is testing the C API doesn't mean it has to be C itself.

 - Daniel

More information about the cfe-commits mailing list