[cfe-commits] r147599 - in /cfe/trunk: include/clang/Basic/DiagnosticGroups.td include/clang/Basic/DiagnosticParseKinds.td include/clang/Sema/DeclSpec.h lib/Parse/ParseDecl.cpp test/CXX/basic/basic.link/p9.cpp test/CXX/dcl.dcl/basic.namespace/nam
Joerg Sonnenberger
joerg at britannica.bec.de
Fri Jan 6 05:49:10 PST 2012
On Thu, Jan 05, 2012 at 06:13:04PM -0800, Chandler Carruth wrote:
> I'm inclined to keep it for non-class types. Block-scope function
> declarations are *very* rare, and easily clarified through an 'extern'
> keyword no? I see no harm in warning on 'int x()', I strongly suspect it
> will catch vastly more bugs than intended function declarations. I'll be
> suprised if it finds any function declarations....
They can use either extern or (void). Neither way is a lot more
explicit.
Joerg
More information about the cfe-commits
mailing list