Skip to content
  1. Nov 30, 2007
    • Steve Naroff's avatar
      · 205ec3d0
      Steve Naroff authored
      Yesterday, I simplified how we stream top-level decls.
      
      After a discussion with Ted, we both came to the conclusion that adding a "HandleTopLevelDeclaration" hook to ASConsumer is far more elegant. The default implementation of HandleTopLevelDeclaration will be responsible for iterating over the ScopedDecl (which has a chain of the decls:-).
      
      TODO: Once Ted adds HandleTopLevelDeclaration, make sure TagDecls are chainged appropriately...
      llvm-svn: 44445
      205ec3d0
  2. Nov 29, 2007
  3. Nov 28, 2007
    • Steve Naroff's avatar
      · 197616c3
      Steve Naroff authored
      Several fixes/simplifications surrounding how we stream top-level decl AST's.
      
      The following code...
      
      typedef struct cssm_data {} CSSM_DATA, *CSSM_DATA_PTR;
      
      struct Y { int A; };
      
      struct X { int A; } D; 
      
      struct X E, F;
      
      ...now produces the following output...
      
      > ../../Debug/bin/clang xx.c -ast-print
      Read top-level tag decl: 'cssm_data'
      typedef struct cssm_data CSSM_DATA;
      typedef struct cssm_data *CSSM_DATA_PTR;
      Read top-level tag decl: 'Y'
      Read top-level tag decl: 'X'
      Read top-level variable decl: 'D'
      Read top-level variable decl: 'E'
      Read top-level variable decl: 'F'
      
      ...which is much more accurate than the previous -ast-print output...
      
      typedef struct cssm_data CSSM_DATA;
      typedef struct cssm_data CSSM_DATA;
      Read top-level variable decl: 'D'
      Read top-level variable decl: 'E'
      Read top-level variable decl: 'E'
      
      llvm-svn: 44421
      197616c3
    • Chris Lattner's avatar
      Fix a bug checking for 'int foo(void)' that didn't look through typedefs of void. · db2a6ef8
      Chris Lattner authored
      Bug pointed out by Michael Zolda, thanks!
      
      llvm-svn: 44408
      db2a6ef8
  4. Nov 27, 2007
  5. Nov 26, 2007
  6. Nov 25, 2007
  7. Nov 24, 2007
  8. Nov 23, 2007
  9. Nov 22, 2007
  10. Nov 20, 2007
  11. Nov 17, 2007
    • Steve Naroff's avatar
      · 14f5f79b
      Steve Naroff authored
      Now that we are passing back "free standing decls", make sure -ast-dump works like -ast-print.
      Also added a cast to be safe...
      
      llvm-svn: 44209
      14f5f79b
    • Steve Naroff's avatar
      · c1e6d60b
      Steve Naroff authored
      Make sure Sema::ParsedFreeStandingDeclSpec() returns a decl representing the type.
      Adding basic printing to StmtPrinter::PrintRawDecl().
      
      llvm-svn: 44208
      c1e6d60b
  12. Nov 16, 2007
  13. Nov 15, 2007
    • Steve Naroff's avatar
      · e3ffc2f4
      Steve Naroff authored
      Finish up variadic methods/messages.
      
      llvm-svn: 44172
      e3ffc2f4
    • Steve Naroff's avatar
      · d8ea1ac5
      Steve Naroff authored
      Implement support for variadic methods (work in progress).
      
      llvm-svn: 44171
      d8ea1ac5
    • Steve Naroff's avatar
      · f60782b8
      Steve Naroff authored
      - Implement ivar rewrite (patch by Fariborz).
      - RewriteMessageExpr()...make implicit casts explicit with synthesizing call (removing warnings when calling objc_msgSend()).
      
      llvm-svn: 44156
      f60782b8
  14. Nov 14, 2007
    • Steve Naroff's avatar
      · 9e0887cf
      Steve Naroff authored
      Allow properties within a protocol. The case below was asserting...now it works fine.
      
      @protocol CAMediaTiming
      
      @property int beginTime;
      
      @end
      
      Comments in the code tell the rest of the story...
      
      llvm-svn: 44117
      9e0887cf
    • Chris Lattner's avatar
      implement test/Sema/typedef-prototype.c, allowing code · 07b201d9
      Chris Lattner authored
      to declare a function with a typedef:
      
      typedef int unary_int_func(int arg);
      unary_int_func add_one;
      
      This patch contributed by Seo Sanghyeon!
      
      llvm-svn: 44100
      07b201d9
  15. Nov 13, 2007
  16. Nov 12, 2007
Loading