r175613 - Implements breaking of string literals if they stick out.

Manuel Klimek klimek at google.com
Thu Feb 21 01:15:26 PST 2013


On Wed, Feb 20, 2013 at 11:53 AM, Dmitri Gribenko <gribozavr at gmail.com>wrote:

> On Wed, Feb 20, 2013 at 12:15 PM, Manuel Klimek <klimek at google.com> wrote:
> > +  EXPECT_EQ("f(\"some \"\n"
> > +            "  \"text\",\n"
> > +            "  other);",
> > +            format("f(\"some text\", other);",
> getLLVMStyleWithColumns(10)));
> > +}
>
> I think we could accidentally get a digraph or a trigraph after
> merging string literals.
>

I'm not sure what you're saying - we don't merge string literals - we just
split them.

Cheers,
/Manuel


>
> Dmitri
>
> --
> main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
> (j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130221/19c13e22/attachment.html>


More information about the cfe-commits mailing list