Skip to content
  1. Sep 09, 2008
  2. Sep 05, 2008
    • Ted Kremenek's avatar
      Remove "NextDecl" from RecordDecl. This change touches many files that where... · 47923c7e
      Ted Kremenek authored
      Remove "NextDecl" from RecordDecl.  This change touches many files that where RecordDecl or CXXRecordDecl was constructed, always with an argument of 'NULL' for the previous declaration.
      
      The motivation behind this change is that chaining the RecordDecls is simply unnecessary.  Once we create multiple RecordDecls for the same struct/union/class, clients that care about all the declarations of the same struct can build a back map by seeing which Decls refer to the same RecordType.
      
      llvm-svn: 55821
      47923c7e
  3. Sep 04, 2008
  4. Sep 03, 2008
    • Steve Naroff's avatar
      Add semantic analysis for "blocks". · c540d669
      Steve Naroff authored
      Highlights...
      
      - 4 new AST nodes, BlockExpr, BlockStmtExpr, BlockExprExpr, BlockDeclRefExpr.
      - Sema::ActOnBlockStart(), ActOnBlockError(), ActOnBlockStmtExpr(), ActOnBlockExprExpr(), ActOnBlockReturnStmt().
      
      Next steps...
      
      - hack Sema::ActOnIdentifierExpr() to deal with block decl refs.
      - add attribute handler for byref decls.
      - add test cases.
      
      llvm-svn: 55710
      c540d669
  5. Aug 24, 2008
  6. Aug 23, 2008
  7. Aug 15, 2008
    • Daniel Dunbar's avatar
      Change Parser & Sema to use interned "super" for comparions. · 12c9ddce
      Daniel Dunbar authored
       - Added as private members for each because it is not clear where to
         put the common definition. Perhaps the IdentifierInfos all of these
         "pseudo-keywords" should be collected into one place (this would
         KnownFunctionIDs and Objective-C property IDs, for example).
      
      Remove Token::isNamedIdentifier.
       - There isn't a good reason to use strcmp when we have interned
         strings, and there isn't a good reason to encourage clients to do
         so.
      
      llvm-svn: 54794
      12c9ddce
  8. Aug 11, 2008
    • Daniel Dunbar's avatar
      More #include cleaning · 56fdb6ae
      Daniel Dunbar authored
       - Kill unnecessary #includes in .cpp files. This is an automatic
         sweep so some things removed are actually used, but happen to be
         included by a previous header. I tried to get rid of the obvious
         examples and this was the easiest way to trim the #includes in one
         fell swoop.
       - We now return to regularly scheduled development.
      
      llvm-svn: 54632
      56fdb6ae
    • Daniel Dunbar's avatar
      More #include cleaning · 6e8aa537
      Daniel Dunbar authored
       - Drop {Decl.h,DeclObjC.h,IdentifierTable.h} from Expr.h
       - Moved Sema::getCurMethodDecl() out of line (dependent on
         ObjCMethodDecl via dyn_cast).
      
      llvm-svn: 54629
      6e8aa537
    • Daniel Dunbar's avatar
      More #include cleaning · 221fa94e
      Daniel Dunbar authored
       - Drop Expr.h,RecordLayout.h from ASTContext.h (for DeclBase.h and
         SourceLocation.h)
       - Move ASTContext constructor into implementation
      
      llvm-svn: 54627
      221fa94e
  9. Jul 27, 2008
  10. Jul 25, 2008
  11. Jul 21, 2008
  12. Jul 01, 2008
  13. Jun 28, 2008
  14. Jun 22, 2008
  15. Jun 21, 2008
  16. Jun 16, 2008
  17. Jun 10, 2008
    • Argyrios Kyrtzidis's avatar
      -Changes to TagDecl: · 554a07ba
      Argyrios Kyrtzidis authored
        Added TagKind enum.
        Added getTagKind() method.
        Added convenience methods: isEnum(), isStruct(), isUnion(), isClass().
      -RecordDecl/CXXRecordDecl::Create() accept a TagKind enum instead of a DeclKind one.
      
      llvm-svn: 52160
      554a07ba
  18. Jun 04, 2008
  19. May 27, 2008
  20. Apr 17, 2008
    • Argyrios Kyrtzidis's avatar
      Addition of TranslationUnitDecl to the AST: · c3b69ae8
      Argyrios Kyrtzidis authored
      -Added TranslationUnitDecl class to serve as top declaration context
      -ASTContext gets a TUDecl member and a getTranslationUnitDecl() function
      -All ScopedDecls get the TUDecl as DeclContext when declared at global scope
      
      llvm-svn: 49855
      c3b69ae8
  21. Apr 12, 2008
  22. Apr 11, 2008
  23. Apr 06, 2008
    • Chris Lattner's avatar
      This patch contains these changes: · 0a5ff0d3
      Chris Lattner authored
      -Renamed ContextDecl -> DeclContext
      -Removed DeclContext pointer from FieldDecl
      -EnumDecl inherits from DeclContext, instead of TagDecl
      
      Patch by Argiris Kirtzidis!
      
      llvm-svn: 49261
      0a5ff0d3
  24. Apr 04, 2008
    • Chris Lattner's avatar
      Introduce ContextDecl, patch by Argiris Kirtzidis! · c5ffed4a
      Chris Lattner authored
      -Added ContextDecl (no TranslationUnitDecl)
      -ScopedDecl class has a ContextDecl member
      -FieldDecl class has a ContextDecl member, so that a Field or a ObjCIvar can be traced back to their RecordDecl/ObjCInterfaceDecl easily
      -FunctionDecl, ObjCMethodDecl, TagDecl, ObjCInterfaceDecl inherit from ContextDecl. With TagDecl as ContextDecl, enum constants have a EnumDecl as their context.
      -Moved Decl class to a "DeclBase.h" along with ContextDecl class
      -CurContext is handled by Sema
      
      llvm-svn: 49208
      c5ffed4a
  25. Mar 16, 2008
  26. Mar 15, 2008
  27. Feb 24, 2008
Loading