Skip to content
  1. Oct 27, 2008
    • Douglas Gregor's avatar
      Refactor the expression class hierarchy for casts. Most importantly: · e200adc5
      Douglas Gregor authored
        - CastExpr is the root of all casts
        - ImplicitCastExpr is (still) used for all explicit casts
        - ExplicitCastExpr is now the root of all *explicit* casts
        - ExplicitCCastExpr (new name needed!?) is a C-style cast in C or C++
        - CXXFunctionalCastExpr inherits from ExplicitCastExpr
        - CXXNamedCastExpr inherits from ExplicitCastExpr and is the root of all
          of the C++ named cast expression types (static_cast, dynamic_cast, etc.)
        - Added classes CXXStaticCastExpr, CXXDynamicCastExpr, 
          CXXReinterpretCastExpr, and CXXConstCastExpr to 
      
      Also, fixed returned-stack-addr.cpp, which broke once when we fixed
      reinterpret_cast to diagnose double->int* conversions and again when
      we eliminated implicit conversions to reference types. The fix is in
      both testcase and SemaChecking.cpp.
      
      Most of this patch is simply support for the renaming. There's very
      little actual change in semantics.
      
      llvm-svn: 58264
      e200adc5
    • Steve Naroff's avatar
      Replace common diagnostic with a convenience function. · c6db58a6
      Steve Naroff authored
      This simplifies debug of this particular diagnostic (and removes some code clutter).
      
      llvm-svn: 58242
      c6db58a6
    • Steve Naroff's avatar
      Fix <rdar://problem/6315646> clang on xcode: error: invalid operands to binary... · 1d4a9a31
      Steve Naroff authored
      Fix <rdar://problem/6315646> clang on xcode: error: invalid operands to binary expression ('id<NSTableViewDelegate>' and 'XCExtendedArrayController *').
      
      There is still a bug here (as the FIXME in the test case indicates). Prior to this patch, the bug would generate an error. Now, we simply do nothing (which is less harmful until we can get it right). The complete bug fix will require changing ASTContext::mergeTypes(), which I'd like to defer for now.
      
      llvm-svn: 58241
      1d4a9a31
    • Chris Lattner's avatar
      Remember whether an initlist had a designator in the AST. · 07d754ac
      Chris Lattner authored
      llvm-svn: 58218
      07d754ac
    • Chris Lattner's avatar
      pass designators into sema. This completes parser-level designator · 248388e3
      Chris Lattner authored
      support as far as I know.
      
      llvm-svn: 58217
      248388e3
  2. Oct 26, 2008
  3. Oct 24, 2008
  4. Oct 23, 2008
  5. Oct 22, 2008
  6. Oct 21, 2008
  7. Oct 20, 2008
  8. Oct 19, 2008
    • Daniel Dunbar's avatar
      Improve attribute parsing & tests. · 70e3ebaf
      Daniel Dunbar authored
       - Support noreturn on function-typed variables.
      
       - Extend isFunctionOrMethod to return true for K&R functions and
         provide hasFunctionProto to check if a decl has information about
         its arguments. This code needs some serious cleaning, but works.
      
       - Add/improve test cases for noreturn and unused.
      
      llvm-svn: 57778
      70e3ebaf
  9. Oct 16, 2008
  10. Oct 15, 2008
    • Argyrios Kyrtzidis's avatar
      Fix this bug: · 2e3e7563
      Argyrios Kyrtzidis authored
      typedef int f();
      struct S {
         f *x; // incorrectly assuming this is function decl, leading to failed assertions.
      };
      
      llvm-svn: 57598
      2e3e7563
Loading