[cfe-commits] r168041 - in /cfe/trunk: include/clang/AST/DeclObjC.h lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGDebugInfo.h lib/CodeGen/CGObjCGNU.cpp lib/CodeGen/CodeGenModule.h lib/Driver/Compilation.cpp lib/Frontend/ASTUnit.cpp

Eric Christopher echristo at gmail.com
Thu Nov 15 09:13:20 PST 2012


Yep, thanks. Chandler was pointing this one out to me yesterday.

-eric


On Thu, Nov 15, 2012 at 9:05 AM, Dmitri Gribenko <gribozavr at gmail.com>wrote:

> On Thu, Nov 15, 2012 at 7:02 PM, jahanian <fjahanian at apple.com> wrote:
> >
> > On Nov 15, 2012, at 6:28 AM, Dmitri Gribenko <gribozavr at gmail.com>
> wrote:
> >
> >> Author: gribozavr
> >> Date: Thu Nov 15 08:28:07 2012
> >> New Revision: 168041
> >>
> >> URL: http://llvm.org/viewvc/llvm-project?rev=168041&view=rev
> >> Log:
> >> Use empty parens for empty function parameter list instead of '(void)'.
> >
> > Why?
>
> The '()' style is used everywhere in C++ LLVM and Clang codebases,
> while '(void)' has only a few usages in C++ code, which I cleaned up
> for consistency.
>
> 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>*/
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121115/0605664e/attachment.html>


More information about the cfe-commits mailing list