[cfe-commits] r143867 - in /cfe/trunk: include/clang/AST/ include/clang/Basic/ include/clang/Serialization/ lib/ARCMigrate/ lib/AST/ lib/Analysis/ lib/CodeGen/ lib/Rewrite/ lib/Sema/ lib/Serialization/ lib/StaticAnalyzer/Core/ test/Analysis/ tools/libclang/

jahanian fjahanian at apple.com
Tue Nov 8 09:17:58 PST 2011


On Nov 8, 2011, at 9:10 AM, John McCall wrote:

> On Nov 8, 2011, at 9:07 AM, jahanian wrote:
>> There are numerous code which declare c-style methods inside the interface. Interface scope is just ignored.
> 
> There is?  I've seen plenty of code that declares C functions in @implementations, but never code that declares them in @interfaces.

Plenty of function decls in @interface and their implementations in @implementation. But, not
function defs in @interface.

> 
> If you're sure, though, I can just ensure that we don't accept function *definitions* in @interfaces.

That is right. It is a bug in clang.

- Fariborz

> 
> John.




More information about the cfe-commits mailing list