Skip to content
  1. Aug 08, 2008
    • Steve Naroff's avatar
      Fix issues with C "tentative" definitions. · 5bb8f226
      Steve Naroff authored
      - Move checking from MergeVarDecl->FinializeDeclaratorGroup. Since MergeVarDecl is called before the initializer is attacted, it can't be done there (this removes a long standing FIXME).
      - Add Sema::isTentativeDefinition() and Sema::CheckForFileScopedRedefinitions().
      - Remove FIXME's and touch-up test case.
      
      Still some more work to do (forthcoming)...
      
      llvm-svn: 54533
      5bb8f226
  2. Aug 07, 2008
  3. Aug 06, 2008
  4. Aug 05, 2008
  5. Aug 04, 2008
    • Chris Lattner's avatar
      · 7adf0760
      Chris Lattner authored
      Finally fix PR2189.  This makes a fairly invasive but important change to
      move getAsArrayType into ASTContext instead of being a method on type.
      This is required because getAsArrayType(const AT), where AT is a typedef
      for "int[10]" needs to return ArrayType(const int, 10).
      
      Fixing this greatly simplifies getArrayDecayedType, which is a good sign.
      
      llvm-svn: 54317
      7adf0760
  6. Aug 01, 2008
  7. Jul 27, 2008
  8. Jul 25, 2008
  9. Jul 23, 2008
  10. Jul 22, 2008
    • Chris Lattner's avatar
      minor cleanup to the actions interface to pass around SmallVectorImpl instead · d7352d68
      Chris Lattner authored
      of a specific smallvector size.
      
      Fix protocol lists to pass down proper location info, so we get diagnostics
      like this:
      
      t.m:3:35: error: cannot find protocol definition for 'NSCopying', referenced by 'NSWhatever'
      @interface NSWhatever : NSObject <NSCopying>
                                        ^
      
      instead of this:
      
      t.m:3:44: error: cannot find protocol definition for 'NSCopying', referenced by 'NSWhatever'
      @interface NSWhatever : NSObject <NSCopying>
                                                 ^
      
      
      Add a new IdentifierLocPair typedef which is just a pair<IdentifierInfo*, SourceLocation>
      
      llvm-svn: 53883
      d7352d68
  11. Jul 17, 2008
  12. Jul 16, 2008
  13. Jul 11, 2008
  14. Jul 09, 2008
  15. Jul 07, 2008
  16. Jul 03, 2008
  17. Jul 01, 2008
  18. Jun 29, 2008
  19. Jun 28, 2008
  20. Jun 26, 2008
  21. Jun 21, 2008
  22. Jun 17, 2008
  23. Jun 11, 2008
    • Eli Friedman's avatar
      Don't crash if we can't find FileEntry info for a typedef, since one · 61b529f4
      Eli Friedman authored
      isn't guaranteed to exist. This fixes a crash with conflicting typedefs
      coming from stdin.
      
      This also fixes the crash in PR2406, but doesn't completely fix the 
      issue; it appears there's something strange about the physical location 
      for the definition of int64_t in stdlib.h.
      
      llvm-svn: 52209
      61b529f4
  24. Jun 10, 2008
    • Argyrios Kyrtzidis's avatar
      -Add DeclChain member to DeclContext. · 406fb231
      Argyrios Kyrtzidis authored
      -ScopedDecls get chained to their DeclContext.
      -DeclContext's DeclChain replaces FunctionDecl's DeclChain and EnumDecl's ElementList.
      
      llvm-svn: 52164
      406fb231
    • 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
  25. Jun 09, 2008
    • Eli Friedman's avatar
      Add code to make test/CodeGen/struct-init.c work correctly without the · e6e0f23a
      Eli Friedman authored
      pointer cast hack currently in isIntegerConstantExpr 
      (in lib/AST/Expr.cpp).  Also removes an odd test that even gcc doesn't accept.
      
      The reason the pointer cast hack is relevant here is that it makes Sema 
      end up misinterpreting the relevant expression as a null pointer constant.
      
      The reason for this patch is that I plan to remove the pointer cast hack 
      sometime soon because it causes strange issues, especially in its 
      current form; see my recent email to cfe-dev
      "[PATCH] add constant expression evaluation to the AST and fix PR2413".
      
      llvm-svn: 52120
      e6e0f23a
  26. Jun 08, 2008
  27. Jun 06, 2008
  28. Jun 03, 2008
    • Eli Friedman's avatar
      Re-fix r51907 in a way which doesn't affect valid code. This essentially · 149614bf
      Eli Friedman authored
      moves the check for the invalid construct to a point where it doesn't 
      affect other uses of isIntegerConstantExpr, and we can warn properly 
      when the extension is used.  This makes it a bit more complicated, but 
      it's a lot cleaner.
      
      Steve, please tell me if this check is sufficient to handle the 
      relevant system header.  I know it's enough to handle the testcase, but 
      I don't know what exactly the original looks like.
      
      llvm-svn: 51918
      149614bf
  29. Jun 02, 2008
Loading