[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

Dmitri Gribenko gribozavr at gmail.com
Thu Nov 15 09:05:42 PST 2012


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>*/



More information about the cfe-commits mailing list