Skip to content
  1. Aug 08, 2007
  2. Aug 05, 2007
    • Steve Naroff's avatar
      · 04e8bc8e
      Steve Naroff authored
      Remove a space from "typeof" printing. It was causing the following error...
      
      [dylan:clang/test/Parser] admin% ../../../../Debug/bin/clang -parse-ast-check typeof.c 
      Warnings expected but not seen:
        Line 21: incompatible types assigning 'typeof(*pi) const' to 'int *'
      Warnings seen but not expected:
        Line 21: incompatible types assigning 'typeof(*pi)  const' to 'int *'
      
      Also corrected a typo from my previous commit.
      
      llvm-svn: 40832
      04e8bc8e
  3. Aug 04, 2007
  4. Aug 03, 2007
  5. Aug 02, 2007
    • Chris Lattner's avatar
      Minor comment improvements. · 680918a6
      Chris Lattner authored
      llvm-svn: 40760
      680918a6
    • Steve Naroff's avatar
      · a5645cbe
      Steve Naroff authored
      Tweak to Expr::isIntegerConstantExpr...make sure the result is appropriately size for TypesCompatibleExpr's.
      
      llvm-svn: 40716
      a5645cbe
    • Steve Naroff's avatar
      · b3deb2e1
      Steve Naroff authored
      Hack Expr::isConstantExpr() to allow for __builtin_types_compatible_p.
      
      llvm-svn: 40705
      b3deb2e1
    • Steve Naroff's avatar
      · 788d864d
      Steve Naroff authored
      - Finish hooking up support for __builtin_types_compatible_p().
      - Fix type printing code for recently added TypeOfExpr/TypeOfType.
      
      llvm-svn: 40700
      788d864d
    • Steve Naroff's avatar
      · 7886467b
      Steve Naroff authored
      Add AST/Sema support for __builtin_types_compatible_p (a GNU extension).
      Todo...still need to call the action from the parser...
      
      llvm-svn: 40693
      7886467b
  6. Aug 01, 2007
    • Steve Naroff's avatar
      · a773cd5d
      Steve Naroff authored
      Add comments to getTypeOfExpr/getTypeOfType.
      Also add instances of TypeOfExpr/TypeOfType to the Types vector (so we can keep track of them).
      
      llvm-svn: 40677
      a773cd5d
    • Steve Naroff's avatar
      · 236becbb
      Steve Naroff authored
      Two typeof() related changes...
      
      - Changed the name of ASTContext::getTypeOfType(Expr*)->getTypeOfExpr().
      - Remove FIXME for TypeOfExpr::getAsStringInternal(). This will work fine for printing the AST. It isn't ideal
      for error diagnostics (since it's more natural to display the expressions type). 
      
      One "random" (or at least delayed:-) change...
      
      - Changed all "ext_typecheck_*" diagnostics from EXTENSION->WARNING. Reason: Since -pedantic is now
      off (by default), these diagnostics were never being emitted (which is bad). With this change, clang will
      emit the warning all the time. The only downside (wrt GCC compatibility) is -pedantic-errors will not turn
      this diagnostics into errors (a "feature" of making tagging them with EXTENSION). When/if this becomes
      an issue, we can revisit.
      
      llvm-svn: 40676
      236becbb
    • Chris Lattner's avatar
      Print floating point literal values better. · bf2f3869
      Chris Lattner authored
      llvm-svn: 40659
      bf2f3869
  7. Jul 31, 2007
  8. Jul 30, 2007
  9. Jul 29, 2007
    • Steve Naroff's avatar
      · f7a5da17
      Steve Naroff authored
      Added a new expression, OCUVectorComponent.
      
      llvm-svn: 40577
      f7a5da17
  10. Jul 26, 2007
    • Steve Naroff's avatar
      · c701ace2
      Steve Naroff authored
      Add Type::isOCUVectorType().
      Convert isFunctionType(), isStructureType(), and isUnionType() to the new API.
      
      llvm-svn: 40541
      c701ace2
    • Steve Naroff's avatar
      Forgot a return stmt (oops). · 62b35d41
      Steve Naroff authored
      llvm-svn: 40509
      62b35d41
    • Steve Naroff's avatar
      · 185616f2
      Steve Naroff authored
      Various improvements to Sema::ParseMemberReferenceExpr().
      
      - Added source range support to Diag's.
      - Used the new type predicate API to remove dealing with the canonical
      type explicitly.
      - Added Type::isRecordType().
      - Removed some casts.
      - Removed a const qualifier from RecordType::getDecl(). 
      
      llvm-svn: 40508
      185616f2
  11. Jul 24, 2007
    • Steve Naroff's avatar
      · 44fd8ff4
      Steve Naroff authored
      Fix Sema::ParseCallExpr()...it wasn't doing the default array/function promotions on it's argument types.
      
      This resulted in the following errors when compiling promote_types_in_proto.c test...
      
      [dylan:~/llvm/tools/clang] admin% ../../Debug/bin/clang test/Parser/promote_types_in_proto.c 
      test/Parser/promote_types_in_proto.c:7:24: error: incompatible types passing 'char *[]' to function expecting 'char *const []'
              arrayPromotion(argv);
              ~~~~~~~~~~~~~~ ^~~~
      test/Parser/promote_types_in_proto.c:8:27: error: incompatible types passing 'void (char *const [])' to function expecting 'void (char *const [])'
              functionPromotion(arrayPromotion);
              ~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~
      2 diagnostics generated.
      
      When fixing this, noticed that both ParseCallExpr() and ParseReturnStmt() were prematurely comparing types for
      equivalence. This is incorrect (since the expr. promotions haven't been done yet). To fix this, I moved the
      check "down" to Sema::CheckAssignmentConstraints().
      
      I also converted Type::isArrayType() to the modern API (since I needed it). Still more Type predicates to 
      convert.
      
      llvm-svn: 40475
      44fd8ff4
    • Chris Lattner's avatar
      implement ast building and trivial semantic analysis of stmt exprs. · 366727fc
      Chris Lattner authored
      This implements test/Sema/stmt_exprs.c
      
      llvm-svn: 40465
      366727fc
    • Chris Lattner's avatar
      fix bogus warnings about potentially uninit vars Size and Align. · 49a953ab
      Chris Lattner authored
      Patch by Neil Booth!
      
      llvm-svn: 40452
      49a953ab
  12. Jul 22, 2007
  13. Jul 21, 2007
  14. Jul 20, 2007
  15. Jul 19, 2007
  16. Jul 18, 2007
Loading