- Oct 11, 2007
-
-
Chris Lattner authored
llvm-svn: 42846
-
Steve Naroff authored
- Cache the typedef, not the type (avoids importing AST/Type.h). - Emit an error if "id" cannot be found. - Comment the routine and add a FIXME to reconsider how we emulate GCC's new fangled behavior. This isn't a priority for now, since almost no code depends on having "id" built-in. - Add a test. llvm-svn: 42845
-
Ted Kremenek authored
llvm-svn: 42844
-
Ted Kremenek authored
llvm-svn: 42843
-
- Oct 10, 2007
-
-
Steve Naroff authored
- Make sure default return/argument types (for methods) default to "id". - Cache the "id" type in Sema...initialize ObjcIdType and TUScope (oops). - Fix ActOnInstanceMessage to allow for "id" type receivers...still work to do (next). llvm-svn: 42842
-
Chris Lattner authored
llvm-svn: 42841
-
Anders Carlsson authored
llvm-svn: 42840
-
Chris Lattner authored
llvm-svn: 42838
-
Hartmut Kaiser authored
llvm-svn: 42836
-
Ted Kremenek authored
llvm-svn: 42834
-
Chris Lattner authored
llvm-svn: 42831
-
Chris Lattner authored
place and making it correctly parameterized on the target. llvm-svn: 42830
-
Steve Naroff authored
Fix a latent bug in MinimalActions (created by a recent name change). llvm-svn: 42829
-
Steve Naroff authored
Remove Scope argument from ObjC actions that either don't need it or can now use TUScope. Also improve a recently added comment. llvm-svn: 42826
-
Chris Lattner authored
llvm-svn: 42819
-
Chris Lattner authored
predefined macros. Previously, these were handled by the driver, now they are handled by the preprocessor. Some fallout of this: 1. Instead of preprocessing two buffers (the predefines, then the main source file) we now start preprocessing the main source file and inject the predefines as a "psuedo #include" from the main source file. 2. #1 allows us to nuke the Lexer::IsMainFile flag and simplify Preprocessor::isInPrimaryFile. 3. The driver doesn't have to know about standard #defines, the preprocessor knows, which is nice for people wanting to define their own drivers. 4. This allows us to put normal tokens in the predefine buffer, for example a definition for __builtin_va_list that is target-specific, and a typedef for id in objc. llvm-svn: 42818
-
Steve Naroff authored
Make sure methods with no return type default to "id". This fixes a crasher in Sema::MatchTwoMethodDeclarations(), identified by selector-overload.m (just added). Added Action::ActOnTranslationUnitScope() and renamed Action::PopScope to ActOnPopScope. Added a Translation Unit Scope instance variable to Sema (will be very useful to ObjC-related actions, since ObjC declarations are always file-scoped). llvm-svn: 42817
-
- Oct 09, 2007
-
-
Devang Patel authored
llvm-svn: 42811
-
Devang Patel authored
llvm-svn: 42810
-
Chris Lattner authored
llvm-svn: 42809
-
Devang Patel authored
llvm-svn: 42808
-
Devang Patel authored
llvm-svn: 42807
-
Fariborz Jahanian authored
llvm-svn: 42804
-
Fariborz Jahanian authored
llvm-svn: 42803
-
Chris Lattner authored
llvm-svn: 42802
-
Fariborz Jahanian authored
DenseMap to keep track of such declarations and derive ObjcProtocolDecl directyly from NamedScope. llvm-svn: 42801
-
Chris Lattner authored
llvm-svn: 42800
-
Chris Lattner authored
llvm-svn: 42799
-
Chris Lattner authored
llvm-svn: 42798
-
Chris Lattner authored
llvm-svn: 42797
-
Chris Lattner authored
llvm-svn: 42796
-
Chris Lattner authored
stuff like this: // If we don't have a comma, it is either the end of the list (a ';') or // an error, bail out. if (Tok.isNot(tok::comma)) break; instead of: // If we don't have a comma, it is either the end of the list (a ';') or // an error, bail out. if (Tok.getKind() != tok::comma) break; There is obviously no functionality change, but the code reads a bit better and is more terse. llvm-svn: 42795
-
Fariborz Jahanian authored
llvm-svn: 42794
-
Chris Lattner authored
ParseFunctionDefinition so that ActOnFunctionDefBody is always called if ActOnStartOfFunctionDef is called. This fixes a crash reported by Nuno Lopes. llvm-svn: 42793
-
Devang Patel authored
Use copy for LHS, because it is incremented using ++ operator. llvm-svn: 42792
-
Devang Patel authored
llvm-svn: 42791
-
Fariborz Jahanian authored
fatal error of category's undefined interface. llvm-svn: 42790
-
Steve Naroff authored
Remove 2 protocol related actions from MinimalActions (protocols shouldn't be recognized as types). llvm-svn: 42777
-
Fariborz Jahanian authored
Protocols are now sorted and made unique in the list. Enhanced pretty printer for @interface (So, I can see the protocol list). llvm-svn: 42776
-
- Oct 08, 2007
-
-
Steve Naroff authored
Removed unused instance variable from FieldDecl. llvm-svn: 42773
-