[cfe-commits] [PATCH] Minor cleanup
Nikola Smiljanic
popizdeh at gmail.com
Fri Dec 28 17:01:11 PST 2012
Please commit.
Thanks!
On Sat, Dec 29, 2012 at 11:57 AM, Rafael Espíndola <
rafael.espindola at gmail.com> wrote:
> LGTM
>
> On 28 December 2012 19:41, Nikola Smiljanić <popizdeh at gmail.com> wrote:
> > DS parameter has a default (null) value anyway, so there's no need for
> an if/else here.
> >
> > DeclGroupPtrTy ParseDeclarationOrFunctionDefinition(
> >
> ParsedAttributesWithRange &attrs,
> > ParsingDeclSpec *DS =
> 0,
> > AccessSpecifier AS =
> AS_none);
> >
> > http://llvm-reviews.chandlerc.com/D253
> >
> > Files:
> > lib/Parse/Parser.cpp
> >
> > Index: lib/Parse/Parser.cpp
> > ===================================================================
> > --- lib/Parse/Parser.cpp
> > +++ lib/Parse/Parser.cpp
> > @@ -760,11 +760,7 @@
> > default:
> > dont_know:
> > // We can't tell whether this is a function-definition or
> declaration yet.
> > - if (DS) {
> > return ParseDeclarationOrFunctionDefinition(attrs, DS);
> > - } else {
> > - return ParseDeclarationOrFunctionDefinition(attrs);
> > - }
> > }
> >
> > // This routine returns a DeclGroup, if the thing we parsed only
> contains a
> >
> > _______________________________________________
> > cfe-commits mailing list
> > cfe-commits at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121229/a458ab45/attachment.html>
More information about the cfe-commits
mailing list