Skip to content
  1. Jan 16, 2008
    • Steve Naroff's avatar
      · 17832a48
      Steve Naroff authored
      Sema::MergeFunctionDecl()...make sure diagnostic is accurate (wrt function declarations/definitions). Patch by Carl Lewis!
      
      llvm-svn: 46070
      17832a48
  2. Jan 15, 2008
    • Steve Naroff's avatar
      · abefc391
      Steve Naroff authored
      Finish up handling all permutations of "complex int" (in Sema::UsualArithmeticConversions()).
      A FIXME remains to verify the conversion rules are consistent with GCC.
      
      Thanks to Eli for the new/improved test case...
      
      llvm-svn: 46022
      abefc391
    • Steve Naroff's avatar
      · 6fcfd058
      Steve Naroff authored
      - Change Type::isComplexType() to exlude GCC's complex integer extension. In general, we will keep the lowest level Type predicates "pure" (i.e. true to the C99 spec). 
      - Modify Sema::UsualArithmeticConversions() to work with the new definition of Type::isComplexType().
      
      This is a nice cleanup and also fixes a bug submitted by Eli (which I've added to the test suite).
      
      llvm-svn: 46005
      6fcfd058
    • Steve Naroff's avatar
      · 7f988889
      Steve Naroff authored
      Rework commit r45976, which was incorrect.
      
      - Add Type::isComplexIntegerType(), Type::getAsComplexIntegerType().
      - Don't inlude complex types with Type::isIntegerType(), which is too general.
      - Use the new predicates in Sema::UsualArithmeticConversions() to recognize/convert the types.
      
      llvm-svn: 45992
      7f988889
    • Steve Naroff's avatar
      · d8c7d484
      Steve Naroff authored
      Make sure Sema::GetTypeForDeclarator() deals with abstract declarators when diagnosing incorrect code.
      
      Bug submitted by Eli.
      
      llvm-svn: 45989
      d8c7d484
  3. Jan 14, 2008
    • Chris Lattner's avatar
      Fix build issue on cygwin, patch by Sam Bishop · 49f980c3
      Chris Lattner authored
      llvm-svn: 45977
      49f980c3
    • Steve Naroff's avatar
      · 012484d6
      Steve Naroff authored
      Fix crasher when redefining functions. Not 100% pleased with this solution, but it is clearly an improvement. Will discuss with Chris later.
      
      llvm-svn: 45975
      012484d6
    • Steve Naroff's avatar
      · d32419de
      Steve Naroff authored
      Record if a compound literal expression is @ file scope. This allows us to implement C99 6.5.2.5p6. This could have been done without modifying the AST (by checking the decl type and passing the info down to isContextExpr), however we concluded this is more desirable.
      
      Bug/patch by Eli Friedman!
      
      llvm-svn: 45966
      d32419de
  4. Jan 13, 2008
    • Steve Naroff's avatar
      Change Sema::CheckAddressOfOperation() to respect C99-only addressof rules. · 826e91ae
      Steve Naroff authored
      Remove diagnostics from Sema::CheckIndirectionOperand(). C89/C99 allow dereferencing an incomplete type. clang appears to be emulating some incorrect gcc behavior (see below).
      
      void
      foo (void)
      {
       struct b;
       struct b* x = 0;
       struct b* y = &*x; // gcc produces an error ("dereferencing pointer to incomplete type")
      }
      
      With this patch, the above is now allowed.
      
      Bug/Patch by Eli Friedman!
      
      llvm-svn: 45933
      826e91ae
  5. Jan 12, 2008
  6. Jan 10, 2008
  7. 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
    • Steve Naroff's avatar
      · 08ddb8c5
      Steve Naroff authored
      Teach Sema::ActOnCompoundLiteral about constraint C99 6.5.2.5p3.
      
      llvm-svn: 45782
      08ddb8c5
  8. Jan 08, 2008
    • Steve Naroff's avatar
      · 039ad3cf
      Steve Naroff authored
      Fix Sema::CheckConditionalOperands(). The null pointer constant checks need to precede the check for two pointer operands. 
      
      llvm-svn: 45732
      039ad3cf
  9. Jan 07, 2008
  10. Jan 06, 2008
  11. Jan 05, 2008
  12. Jan 04, 2008
  13. Jan 03, 2008
Loading