Yes. We do not explicitly check for "= 0" but just don't break after the
equals in virtual function declarations in general.


On Mon, Jan 7, 2013 at 6:24 PM, Jordan Rose <[email protected]> wrote:

> Does the same behavior apply to "= delete" and "= default"? I'm not sure
> what the prevailing style is there, but it seems like a reasonable thing
> for consistency.
>
> Jordan
>
>
> On Jan 7, 2013, at 2:48 , Daniel Jasper <[email protected]> wrote:
>
> > Author: djasper
> > Date: Mon Jan  7 04:48:50 2013
> > New Revision: 171724
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=171724&view=rev
> > Log:
> > Do not break before "0" in pure virtual function declarations.
> >
> > Before:
> > virtual void write(ELFWriter *writer, OwningPtr<FileOutputBuffer>
> &buffer) =
> >    0
> >
> > After:
> > virtual void write(ELFWriter *writerrr,
> >                   OwningPtr<FileOutputBuffer> &buffer) = 0;
> >
> > This addresses llvm.org/PR14815.
> >
> > To implement this I introduced a line type during parsing and moved the
> > definition of TokenType out of the struct for increased readability.
> > Should have done the latter in a separate patch, but it would be hard to
> > pull apart now.
> >
> > Modified:
> >    cfe/trunk/lib/Format/Format.cpp
> >    cfe/trunk/unittests/Format/FormatTest.cpp
>
>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to