Is there any rule regarding new-line in LLVM? I didn't see any in the coding standard and I notice that there is no consistency at all across llvm/clang. Some files use \n while some use \r\n
So i thought it doesn't matter. On Tue, Oct 12, 2010 at 12:46 PM, Nick Lewycky <[email protected]> wrote: > Author: nicholas > Date: Tue Oct 12 11:46:35 2010 > New Revision: 116312 > > URL: http://llvm.org/viewvc/llvm-project?rev=116312&view=rev > Log: > Replace \r\n with \n in this file. > > Modified: > cfe/trunk/test/Parser/MicrosoftExtensions.cpp > > Modified: cfe/trunk/test/Parser/MicrosoftExtensions.cpp > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/MicrosoftExtensions.cpp?rev=116312&r1=116311&r2=116312&view=diff > ============================================================================== > --- cfe/trunk/test/Parser/MicrosoftExtensions.cpp (original) > +++ cfe/trunk/test/Parser/MicrosoftExtensions.cpp Tue Oct 12 11:46:35 2010 > @@ -1,25 +1,25 @@ > -// RUN: %clang_cc1 %s -fsyntax-only -Wmicrosoft -verify -fms-extensions > - > -/* Microsoft attribute tests */ > -[repeatable][source_annotation_attribute( Parameter|ReturnValue )] > -struct SA_Post{ SA_Post(); int attr; }; > - > -[returnvalue:SA_Post( attr=1)] > -int foo1([SA_Post(attr=1)] void *param); > - > -namespace { > - [returnvalue:SA_Post(attr=1)] > - int foo2([SA_Post(attr=1)] void *param); > -} > - > -class T { > - [returnvalue:SA_Post(attr=1)] > - int foo3([SA_Post(attr=1)] void *param); > -}; > - > -extern "C" { > - [returnvalue:SA_Post(attr=1)] > - int foo5([SA_Post(attr=1)] void *param); > -} > - > - > +// RUN: %clang_cc1 %s -fsyntax-only -Wmicrosoft -verify -fms-extensions > + > +/* Microsoft attribute tests */ > +[repeatable][source_annotation_attribute( Parameter|ReturnValue )] > +struct SA_Post{ SA_Post(); int attr; }; > + > +[returnvalue:SA_Post( attr=1)] > +int foo1([SA_Post(attr=1)] void *param); > + > +namespace { > + [returnvalue:SA_Post(attr=1)] > + int foo2([SA_Post(attr=1)] void *param); > +} > + > +class T { > + [returnvalue:SA_Post(attr=1)] > + int foo3([SA_Post(attr=1)] void *param); > +}; > + > +extern "C" { > + [returnvalue:SA_Post(attr=1)] > + int foo5([SA_Post(attr=1)] void *param); > +} > + > + > > > _______________________________________________ > cfe-commits mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits > _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
