It was changed to Decl for 3.4 in
https://llvm.org/viewvc/llvm-project?view=revision&revision=192900.  Decl
is what we want here.  Declaration should be in the #else branch for
compatibility with 3.3 and previous versions.



On Tue, Jun 3, 2014 at 4:25 PM, Erik Rose <notifications@github.com> wrote:

> In dxr/plugins/clang/dxr-index.cpp:
>
> > @@ -552,7 +552,7 @@ class IndexConsumer : public ASTConsumer,
> >        VarDecl *def = vd->getDefinition();
> >        if (!def) {
> >  #if CLANG_AT_LEAST(3, 4)
> > -        VarDecl *first = vd->getFirstDecl();
> > +        VarDecl *first = vd->getFirstDeclaration();
>
> So which way is correct with the proper, non-prerelease 3.4? Decl or
> Declaration? I agree that we should do whichever the proper 3.4 supports.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/mozilla/dxr/pull/270/files#r13356952>.
>