Skip to content
  1. Jun 18, 2009
  2. Jun 17, 2009
  3. Jun 16, 2009
  4. Jun 15, 2009
  5. Jun 14, 2009
    • Eli Friedman's avatar
      PR4390: Make sure to handle anonymous unions correctly while building · 6282b3cf
      Eli Friedman authored
      static intializers for structs.
      
      llvm-svn: 73349
      6282b3cf
    • Fariborz Jahanian's avatar
      Test modification. · 45da0c90
      Fariborz Jahanian authored
      Patch by Jean-Daniel Dupas
      
      llvm-svn: 73343
      45da0c90
    • Douglas Gregor's avatar
      Update LLVM. · 33834516
      Douglas Gregor authored
      Implement support for C++ Substitution Failure Is Not An Error
      (SFINAE), which says that errors that occur during template argument
      deduction do *not* produce diagnostics and do not necessarily make a
      program ill-formed. Instead, template argument deduction silently
      fails. This is currently implemented for template argument deduction
      during matching of class template partial specializations, although
      the mechanism will also apply to template argument deduction for
      function templates. The scheme is simple:
      
        - If we are in a template argument deduction context, any diagnostic
          that is considered a SFINAE error (or warning) will be
          suppressed. The error will be propagated up the call stack via the
          normal means.
        - By default, all warnings and errors are SFINAE errors. Add the
          NoSFINAE class to a diagnostic in the .td file to make it a hard
          error (e.g., for access-control violations).
      
      Note that, to make this fully work, every place in Sema that emits an
      error *and then immediately recovers* will need to check
      Sema::isSFINAEContext() to determine whether it must immediately
      return an error rather than recovering.
      
      llvm-svn: 73332
      33834516
    • Eli Friedman's avatar
      PR4351: Add constant evaluation for constructs like "foo == NULL", where · 334046a1
      Eli Friedman authored
      foo has a constant address.
      
      llvm-svn: 73321
      334046a1
    • Chris Lattner's avatar
      Sink the BuiltinInfo object from ASTContext into the · 15ba9498
      Chris Lattner authored
      preprocessor and initialize it early in clang-cc.  This
      ensures that __has_builtin works in all modes, not just
      when ASTContext is around.
      
      llvm-svn: 73319
      15ba9498
    • Chris Lattner's avatar
      change ParseStatementOrDeclaration to emit the 'missing ;' with · 8e3eed08
      Chris Lattner authored
      ExpectAndConsume instead of custom diag logic.  This gets us an
      insertion hint and positions the ; at the end of the line 
      instead of on the next token.  Before:
      
      t.c:5:1: error: expected ';' after return statement
      }
      ^
      
      after:
      
      t.c:4:11: error: expected ';' after return statement
        return 4
                ^
                ;
      
      llvm-svn: 73315
      8e3eed08
  6. Jun 13, 2009
Loading