Skip to content
  1. May 06, 2008
  2. May 05, 2008
  3. May 02, 2008
    • Fariborz Jahanian's avatar
      This patch is about merging ObjC2's properties declared in class · 98a6c4fa
      Fariborz Jahanian authored
      protocols into class's property list and performing semantics
      on them for while doing so.
      
      llvm-svn: 50587
      98a6c4fa
    • Steve Naroff's avatar
      Replace Sema::CheckInitializerListTypes() with a helper class... · f8ecff2a
      Steve Naroff authored
      Replace Sema::CheckInitializerListTypes() with a helper class (InitListChecker) that synthesizes implicit InitListExpr's when appropriate (see InitListExpr comments in Expr.h for more details). I also moved the code to SemaInit.cpp, to help reduce clutter in SemaDecl.cpp.
      
      NOTE: This work is incomplete and still fails many tests (as a result, it isn't enabled yet). Nevertheless, I wanted to check it in so I can work on it from home.
      llvm-svn: 50544
      f8ecff2a
  4. May 01, 2008
  5. Apr 27, 2008
    • Argyrios Kyrtzidis's avatar
      Parsing of namespaces: · 08114898
      Argyrios Kyrtzidis authored
      -NamespaceDecl for the AST
      -Checks for name clashes between namespaces and tag/normal declarations.
      
      This commit doesn't implement proper name lookup for namespaces.
      
      llvm-svn: 50321
      08114898
  6. Apr 25, 2008
  7. Apr 24, 2008
  8. Apr 22, 2008
    • Chris Lattner's avatar
      "This patch renames · bec41348
      Chris Lattner authored
      DeclContext *CtxDecl -> DeclContext *DeclCtx
      DeclContext *CD -> DeclContext *DC
      
      It makes the code more consistent."
      
      Patch by Zhongxing Xu!
      
      llvm-svn: 50105
      bec41348
  9. Apr 21, 2008
  10. Apr 19, 2008
  11. Apr 18, 2008
  12. Apr 15, 2008
  13. Apr 13, 2008
  14. Apr 12, 2008
  15. Apr 11, 2008
  16. Apr 08, 2008
  17. Apr 07, 2008
  18. 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
  19. 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
  20. Apr 02, 2008
    • Steve Naroff's avatar
      Change ObjCInterfaceDecl to inherit from NamedDecl (not TypeDecl). While... · 77892753
      Steve Naroff authored
      Change ObjCInterfaceDecl to inherit from NamedDecl (not TypeDecl). While ObjCInterfaceDecl is arguably a TypeDecl, it isn't a ScopedDecl. Since TypeDecl's are scoped, it makes sense to simply treat them as NamedDecl's. I could have fiddled a bit more with the hierarchy (in terms of creating a non-scoped TypeDecl), however this probably isn't worth the effort. 
      
      I also finished unifying access to scope decl change by converting Sema::getObjCInterfaceDecl() to use Sema::LookupDecl(). This is much cleaner now:-)
      
      llvm-svn: 49107
      77892753
    • Steve Naroff's avatar
      · 2fc93f5c
      Steve Naroff authored
      Two changes to Sema::LookupDecl() interface. 
      (1) Remove IdLoc (it's never used). 
      (2) Add a bool to enable/disable lazy builtin creaation (defaults to true).
      
      This enables us to use LookupDecl() in Sema::isTypeName(), which is also part of this commit.
      
      To make this work, I changed isTypeName() to be a non-const member function. I'm not happy with this, however I fiddled with making LookupDecl() and friends const and it got ugly pretty quickly. We can certainly add it back if/when someone has time to fiddle with it. For now, I thought this simplification was more important than retaining the const-ness. 
      
      llvm-svn: 49087
      2fc93f5c
    • Steve Naroff's avatar
      Fix a comment typo and add a couple suggestions from Chris. · 9b94b178
      Steve Naroff authored
      llvm-svn: 49066
      9b94b178
    • Steve Naroff's avatar
      Fairly large "cleaup" related to changing ObjCCompatibleAliasDecl superclass... · 257520b1
      Steve Naroff authored
      Fairly large "cleaup" related to changing ObjCCompatibleAliasDecl superclass (to inherit from NamedDecl, instead of ScopedDecl). 
      
      - Added a DenseMap to associate an IdentifierInfo with the ObjCCompatibleAliasDecl.
      - Renamed LookupScopedDecl->LookupDecl and changed it's return type to Decl. Also added lookup for ObjCCompatibleAliasDecl's.
      - Removed Sema::LookupInterfaceDecl(). Converted clients to used LookupDecl().
      - Some minor indentation changes.
      
      Will deal with ObjCInterfaceDecl and getObjCInterfaceDecl() in a separate commit...
      
      llvm-svn: 49058
      257520b1
  21. Mar 16, 2008
    • Chris Lattner's avatar
      Make a major restructuring of the clang tree: introduce a top-level · 7a51313d
      Chris Lattner authored
      lib dir and move all the libraries into it.  This follows the main
      llvm tree, and allows the libraries to be built in parallel.  The
      top level now enforces that all the libs are built before Driver,
      but we don't care what order the libs are built in.  This speeds
      up parallel builds, particularly incremental ones.
      
      llvm-svn: 48402
      7a51313d
  22. Mar 13, 2008
  23. Mar 07, 2008
  24. Mar 03, 2008
  25. Feb 27, 2008
  26. Feb 26, 2008
  27. Feb 21, 2008
  28. Feb 20, 2008
  29. Feb 16, 2008
  30. Feb 10, 2008
    • Steve Naroff's avatar
      · 15833ed1
      Steve Naroff authored
      Add a diagnostics helper to remove some redundant code.
      
      llvm-svn: 46936
      15833ed1
  31. Feb 08, 2008
    • Steve Naroff's avatar
      · a3699224
      Steve Naroff authored
      A bunch-o changes to fix <rdar://problem/5716046> incomplete implementation of ObjC class warning is incomplete
      
      As part of this fix, I made a low-level change to the text diagnostics machinery (to basically avoid printing duplicate source lines/carets when you have multiple diagnostics that refer to the same exact place). For now, this only happens with we don't have a source range (could be extended to support source ranges as well). 
      
      llvm-svn: 46897
      a3699224
Loading