Skip to content
  1. Oct 10, 2007
    • Anders Carlsson's avatar
      Emit a warning when the body of an if block is a NullStmt. · db83d77c
      Anders Carlsson authored
      llvm-svn: 42840
      db83d77c
    • Steve Naroff's avatar
      · 93eb5f14
      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
      93eb5f14
    • Chris Lattner's avatar
      Make a significant change to invert the control flow handling · 1f1b0dbc
      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
      1f1b0dbc
    • Steve Naroff's avatar
      · c62adb6d
      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
      c62adb6d
  2. Oct 09, 2007
  3. Oct 08, 2007
  4. Oct 07, 2007
  5. Oct 06, 2007
  6. Oct 05, 2007
  7. Oct 04, 2007
  8. Oct 03, 2007
    • Steve Naroff's avatar
      · 4810c3a1
      Steve Naroff authored
      Finish renaming ObjC declaration actions.
      Add comments.
      Switch to new indentation style for the Action class. Since many actions take many arguments, the new style will...
      - make it easier to add/remove arguments without messing up the indentation...
      - make it easier to add comments to each argument (see ActOnMethodDeclaration for an example)...
      - in general, just makes it easier to see what is being passed.
      
      The rest of Actions will be converted "lazily"...there is no immediate need to hack all the existing methods.
      
      llvm-svn: 42587
      4810c3a1
    • Fariborz Jahanian's avatar
      Renamed getCatLoc() to getLocation() to be consistant for such · 6cc3803f
      Fariborz Jahanian authored
      getter names.
      
      llvm-svn: 42577
      6cc3803f
    • Steve Naroff's avatar
      · 0c37b0cb
      Steve Naroff authored
      Rename several ObjC action methods to use the "ActOn" prefix (still a few more to do).
      Remove Action::ObjCStartCategoryInterface/ObjCFinishInterface - they are unused.
      .
      
      llvm-svn: 42559
      0c37b0cb
    • Fariborz Jahanian's avatar
      Unified such names as protocol references, instance methods and class methods · b8d9e088
      Fariborz Jahanian authored
      and their accessors in a variety of objective-c classes.
      
      llvm-svn: 42555
      b8d9e088
  9. Oct 02, 2007
    • Steve Naroff's avatar
      · d1741552
      Steve Naroff authored
      Remove Action::ActOnImpleIvarVsClassIvars(), it is only called by Sema (not Parser).
      Add Sema::CheckImplementationIvars() to replace the previous action.
      
      llvm-svn: 42553
      d1741552
    • Steve Naroff's avatar
      · f5a55c5a
      Steve Naroff authored
      Rename ObjcInterfaceDecl::getIsForwardDecl() to isForwardDecl().
      Rename ObjcProtocolDecl::getIsForwardProtoDecl() to isForwardDecl().
      Rename ObjcInterfaceDecl::setIsForwardDecl() to setForwardDecl().
      Rename ObjcProtocolDecl::setIsForwardProtoDecl() to setForwardDecl().
      
      Two reasons:
      
      #1: boolean predicates should start with "is".
      #2: Since these two sets of methods represent the same concept, they should be named the same (polymorphism is good:-)
      
      llvm-svn: 42545
      f5a55c5a
    • Fariborz Jahanian's avatar
      Previously, I warned those methods not implemented in implementation class/category. · adf84f3f
      Fariborz Jahanian authored
      Now, I also warn those class/categories which are incomplete because of this.
      
      llvm-svn: 42544
      adf84f3f
    • Steve Naroff's avatar
      · c6814ea6
      Steve Naroff authored
      - Add ObjcInterfaceDecl::lookupInstanceMethod(), lookupClassMethod().
      - Add ObjcMessageExpr::getSelector(), getClassName().
      - Change Sema::getObjCInterfaceDecl() to simply take an IdentifierInfo (no Scope needed).
      - Remove FIXME for printing ObjCMessageExpr's.
      
      llvm-svn: 42543
      c6814ea6
    • Fariborz Jahanian's avatar
      ObjcCategoryDecl Does not subclass from ScopedDecl any more. · 19d765fa
      Fariborz Jahanian authored
      Ted may want to take a look at the change I made at 
      FGRecStmtDeclVisitor.h.
      
      llvm-svn: 42535
      19d765fa
    • Fariborz Jahanian's avatar
      This patch introduces the ObjcCategoryImplDecl class and does the checking related to · 89b8ef92
      Fariborz Jahanian authored
      unimplemented methods in category implementation.
      
      llvm-svn: 42531
      89b8ef92
  10. Oct 01, 2007
  11. Sep 30, 2007
  12. Sep 29, 2007
Loading