[cfe-commits] r113805 - in /cfe/trunk: include/clang-c/Index.h test/Index/TestClassDecl.m test/Index/TestClassForwardDecl.m test/Index/index-templates.cpp test/Index/load-namespaces.cpp tools/c-index-test/c-index-test.c tools/libclang/CIndex.cpp

Francois Pichet pichet2000 at gmail.com
Wed Sep 15 18:32:44 PDT 2010


On Mon, Sep 13, 2010 at 6:52 PM, Douglas Gregor <dgregor at apple.com> wrote:
> Author: dgregor
> Date: Mon Sep 13 17:52:57 2010
> New Revision: 113805

> +unsigned clang_getNumOverloadedDecls(CXCursor C) {
> +  if (!C.kind == CXCursor_OverloadedDeclRef)
> +    return 0;
> +

I suppose you mean:

  if (C.kind != CXCursor_OverloadedDeclRef)

same thing in CXCursor clang_getOverloadedDecl(CXCursor cursor, unsigned index)




More information about the cfe-commits mailing list