[cfe-commits] r171724 - in /cfe/trunk: lib/Format/Format.cpp unittests/Format/FormatTest.cpp
Jordan Rose
jordan_rose at apple.com
Mon Jan 7 09:24:18 PST 2013
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 <djasper at google.com> 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
More information about the cfe-commits
mailing list