Skip to content
  1. Apr 07, 2008
  2. 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
  3. 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
  4. Apr 03, 2008
  5. Apr 02, 2008
    • Chris Lattner's avatar
      add a common base class "PointerLikeType" for PointerType and ReferenceType, · db5f1fa3
      Chris Lattner authored
      allowing them to be treated the same in some contexts.  A suggestion for a
      better name is welcome :)
      
      llvm-svn: 49100
      db5f1fa3
    • Chris Lattner's avatar
      Add a citation. · 53be405c
      Chris Lattner authored
      llvm-svn: 49080
      53be405c
    • Chris Lattner's avatar
      Fix several bugs in array -> pointer decomposition. · a21ad805
      Chris Lattner authored
      First, we got several CVR propagation cases wrong, which Eli pointed
      out in PR2039.
      
      Second, we didn't propagate address space qualifiers correctly, leading
      to incorrect lowering of code in CodeGen/address-space.c.
      
      Third, we didn't uniformly propagate the specifier in the array to the
      pointer ("int[restrict 4]" -> "int *restrict").
      
      This adds an ASTContext::getArrayDecayedType member that handles the 
      non-trivial logic for this seemingly simple operation.
      
      llvm-svn: 49078
      a21ad805
  6. Mar 16, 2008
  7. Mar 15, 2008
  8. Mar 08, 2008
  9. Mar 05, 2008
  10. Feb 25, 2008
  11. Feb 20, 2008
    • Chris Lattner's avatar
      Alternate address spaces work: · 445fcabf
      Chris Lattner authored
      rename QualType::getQualifiers to getCVRQualifiers.
      Add some fixme's and clean up some code relevant to qualifiers.
      Change ASQualType to contain a Type* instead of a QualType.  
      Any CVR qualifiers should be on the outer qual type.
      
      llvm-svn: 47398
      445fcabf
  12. Feb 18, 2008
  13. Feb 16, 2008
  14. Feb 15, 2008
  15. Feb 12, 2008
  16. Feb 06, 2008
  17. Feb 04, 2008
  18. Jan 30, 2008
    • Steve Naroff's avatar
      · 7b3579b8
      Steve Naroff authored
      Abolish a bunch of Xcode inserted tabs.
      
      llvm-svn: 46566
      7b3579b8
  19. Jan 29, 2008
    • Steve Naroff's avatar
      · ddb1dd8c
      Steve Naroff authored
      Tighten up ASTContext::typesAreCompatible()...it needs to make sure the qualifiers match. The comment and C99 citation for this routine were correct...the code needed to conform to the comment/spec. This fixes the test added below.
      
      Tightening up this routine forced tweaks to Sema::CheckSubtractionOperands() and Sema::CheckCompareOperands(). For example, they both need to operate on the unqualified pointee...
      
      llvm-svn: 46522
      ddb1dd8c
    • Steve Naroff's avatar
      · f06b5ba0
      Steve Naroff authored
      Fix bz1950. ASTContext::functionTypesAreCompatible() needs to operate on the unqualified parameter types (per C99 6.7.5.3p15).
      
      llvm-svn: 46472
      f06b5ba0
  20. Jan 22, 2008
  21. Jan 14, 2008
  22. Jan 10, 2008
    • Steve Naroff's avatar
      · a385fb8c
      Steve Naroff authored
      Add a FIXME to commit r45784. Thanks mrs!
      
      llvm-svn: 45790
      a385fb8c
  23. Jan 09, 2008
    • Steve Naroff's avatar
      · c6edcbdb
      Steve Naroff authored
      Fix ASTContext::typesAreCompatible to allow for int/enum compatibility (C99 6.7.2.2p4).
      Fix Sema::MergeFunctionDecl to allow for function type compatibility (by using the predicate on ASTContext). Function types don't have to be identical to be compatible...
      
      llvm-svn: 45784
      c6edcbdb
  24. Jan 07, 2008
  25. Jan 03, 2008
  26. Dec 29, 2007
Loading