<div dir="ltr">Hi All,<div><br></div><div>Given a Decl*, I want to find who are the other decls in its DeclGroup. So for:</div><div><br></div><div>  int foo, bar;</div><div><br></div><div>Given a Decl* for 'foo', I want to find 'bar'.</div>

<div><br></div><div>ASTConsumer.h (<a href="http://clang.llvm.org/doxygen/ASTConsumer_8h_source.html">http://clang.llvm.org/doxygen/ASTConsumer_8h_source.html</a>) mentions a getNextDeclarator method, which seems to have been removed in r68002 (so the comment is stale now).</div>

<div><br></div><div>Any way to do this?</div><div><br></div><div>One way I see is when the consumer defines HandleTopLevelDecl it gets the whole group and can go over it. But what about somewhere deep in the traversal, if all I have is a Decl*?</div>

<div><br></div><div>There's getNextDeclInContext, but that goes beyond the group too.</div><div><br></div><div>Thanks in advance,</div><div>Eli</div></div>