[cfe-commits] r43257 - in /cfe/trunk: Driver/RewriteTest.cpp Lex/Preprocessor.cpp clang.xcodeproj/project.pbxproj include/clang/AST/DeclObjC.h

Chris Lattner clattner at apple.com
Tue Oct 23 17:53:40 PDT 2007


On Oct 23, 2007, at 5:53 PM, Steve Naroff wrote:

>> This impacts normal objective C code that isn't being  
>> 'translated'.  Are you sure this is the right answer?  It seems  
>> better for the translator itself to inject decls for these  
>> functions if they don't exist, instead of unconditionally cramming  
>> them into the preprocessor.  Unlike "id", these aren't "part of  
>> the language".
>>
>
> While I agree, this solution is simpler (for now). In practice, I  
> don't think predefining these functions creates any problems.
>
> I can add a FIXME...

Please do add a fixme.  In Obj-C++ mode, the compiler should reject  
uses of functions without forward declarations, and in C mode it  
emits a warning.  This code will break these diagnostics.

-Chris



More information about the cfe-commits mailing list