[cfe-commits] r142760 - in /cfe/trunk: include/clang/Basic/DiagnosticParseKinds.td include/clang/Parse/Parser.h lib/Parse/ParseDecl.cpp lib/Sema/SemaDeclAttr.cpp test/CXX/temp/temp.decls/temp.variadic/p5.cpp test/SemaCXX/attr-cxx0x.cpp

Peter Collingbourne peter at pcc.me.uk
Mon Oct 24 10:58:21 PDT 2011


On Mon, Oct 24, 2011 at 07:34:04AM -0700, Douglas Gregor wrote:
> > +  if (getLang().CPlusPlus0x && Tok.is(tok::ellipsis)) {
> > +    EllipsisLoc = Tok.getLocation();
> > +    ConsumeToken();
> > +  }
> 
> It would be slightly shorter to use
> 
>   EllipsisLoc = ConsumeToken()

Yes, it would.  I'm not entirely sure how I missed that.  r142814.

Thanks,
-- 
Peter



More information about the cfe-commits mailing list