Skip to content
  1. Aug 02, 2007
    • Reid Spencer's avatar
      Test auto-update with minor grammaro fix. · 28f1c630
      Reid Spencer authored
      llvm-svn: 40732
      28f1c630
    • Chris Lattner's avatar
      Fix a bug in my previous commit · 6a340b43
      Chris Lattner authored
      llvm-svn: 40719
      6a340b43
    • Chris Lattner's avatar
      switch a fixme to an assert. · 016f19a3
      Chris Lattner authored
      llvm-svn: 40717
      016f19a3
    • 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
    • Chris Lattner's avatar
      Increase the macro id cache to look up several recent entries, not just the last one. · 04e3d20a
      Chris Lattner authored
      This is important in insane cases like the one dannyb sent me recently:
      
      #define F0(a) void a(){}
      #define F1(a) F0(a##0) F0(a##1) F0(a##2) F0(a##3) F0(a##4) F0(a##5) F0(a##6) F0(a##7)
      #define F2(a) F1(a##0) F1(a##1) F1(a##2) F1(a##3) F1(a##4) F1(a##5) F1(a##6) F1(a##7)
      #define F3(a) F2(a##0) F2(a##1) F2(a##2) F2(a##3) F2(a##4) F2(a##5) F2(a##6) F2(a##7)
      #define F4(a) F3(a##0) F3(a##1) F3(a##2) F3(a##3) F3(a##4) F3(a##5) F3(a##6) F3(a##7)
      #define F5(a) F4(a##0) F4(a##1) F4(a##2) F4(a##3) F4(a##4) F4(a##5) F4(a##6) F4(a##7)
      #define F6(a) F5(a##0) F5(a##1) F5(a##2) F5(a##3) F5(a##4) F5(a##5) F5(a##6) F5(a##7)
      F6(f)
      
      cpp is great.  :)
      
      llvm-svn: 40715
      04e3d20a
    • Steve Naroff's avatar
      · 4bd2f71c
      Steve Naroff authored
      Tidy up Parser::ParseTypeofSpecifier()...implement FIXME and minor restructure.
      
      llvm-svn: 40713
      4bd2f71c
    • Steve Naroff's avatar
      · ade1649e
      Steve Naroff authored
      Add a couple const modifiers.
      
      llvm-svn: 40708
      ade1649e
    • 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
  2. 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
      update this to build with LLVM ToT · 7b9f04eb
      Chris Lattner authored
      llvm-svn: 40665
      7b9f04eb
    • Chris Lattner's avatar
      Print floating point literal values better. · bf2f3869
      Chris Lattner authored
      llvm-svn: 40659
      bf2f3869
    • Steve Naroff's avatar
      · 872da803
      Steve Naroff authored
      Tighten up Parser::ParseTypeofSpecifier().
      Add some more tests to typeof.c. Also added a couple of missing "expect" attributes that caused the test to fail.
      
      llvm-svn: 40656
      872da803
  3. Jul 31, 2007
  4. Jul 30, 2007
  5. Jul 29, 2007
    • Steve Naroff's avatar
      · ddf5a1d7
      Steve Naroff authored
      Implement pretty diagnostics when doing on-the-fly vector sizing (for vector component access).
      
      For example, before this commit, the following diagnostics would be emitted...
      
      ocu.c:49:12: error: incompatible types assigning 'float  __attribute__((ocu_vector_type(3)))' to 'float4'
          vec4_2 = vec4.rgb; // shorten
          ~~~~~~ ^ ~~~~~~~~
      ocu.c:51:7: error: incompatible types assigning 'float  __attribute__((ocu_vector_type(2)))' to 'float'
          f = vec2.xx; // shorten
          ~ ^ ~~~~~~~
      
      Now, the diagnostics look as you would expect...
      
      ocu.c:49:12: error: incompatible types assigning 'float3' to 'float4'
          vec4_2 = vec4.rgb; // shorten
          ~~~~~~ ^ ~~~~~~~~
      ocu.c:51:7: error: incompatible types assigning 'float2' to 'float'
          f = vec2.xx; // shorten
          ~ ^ ~~~~~~~
      
      llvm-svn: 40579
      ddf5a1d7
    • Steve Naroff's avatar
      · f7a5da17
      Steve Naroff authored
      Added a new expression, OCUVectorComponent.
      
      llvm-svn: 40577
      f7a5da17
  6. Jul 28, 2007
  7. Jul 26, 2007
Loading