Skip to content
  1. Jun 04, 2011
  2. May 31, 2011
  3. May 28, 2011
  4. May 27, 2011
    • Eli Friedman's avatar
      Back out r132209; it's breaking nightly tests. · 380b8dad
      Eli Friedman authored
      llvm-svn: 132219
      380b8dad
    • John McCall's avatar
      Implement a new, much improved version of the cleanup hack. We just need · 63fb333f
      John McCall authored
      to be careful to emit landing pads that are always prepared to handle a
      cleanup path.  This is correct mostly because of the fix to the LLVM
      inliner, r132200.
      
      llvm-svn: 132209
      63fb333f
    • Chandler Carruth's avatar
      Enhance Clang to start instantiating static data member definitions · 7c430c0e
      Chandler Carruth authored
      within class templates when they are necessary to complete the type of
      the member. The canonical example is code like:
      
        template <typename T> struct S {
          static const int arr[];
          static const int x;
          static int f();
        };
      
        template <typename T> const int S<T>::arr[] = { 1, 2, 3 };
        template <typename T> const int S<T>::x = sizeof(arr) / sizeof(arr[0]);
        template <typename T> int S<T>::f() { return x; }
      
        int x = S<int>::f();
      
      We need to instantiate S<T>::arr's definition to pick up its initializer
      and complete the array type. This involves new code to specially handle
      completing the type of an expression where the type alone is
      insufficient. It also requires *updating* the expression with the newly
      completed type. Fortunately, all the other infrastructure is already in
      Clang to do the instantiation, do the completion, and prune out the
      unused bits of code that result from this instantiation.
      
      This addresses the initial bug in PR10001, and will be a step to
      fleshing out other cases where we need to work harder to complete an
      expression's type. Who knew we still had missing C++03 "features"?
      
      llvm-svn: 132172
      7c430c0e
  5. May 24, 2011
  6. May 23, 2011
  7. May 21, 2011
    • Douglas Gregor's avatar
      Fix our handling of the warning when one tries to pass a · 347e0f26
      Douglas Gregor authored
      non-POD/non-trivial object throuugh a C-style varargs. The warning
      itself was default-mapped to error, but can be downgraded, but we were
      treating it in Sema like a hard error, silently dropping the call.
      
      Instead, treat this problem like a warning, and do what the warning
      says we do: abort at runtime. To do so, we fake up a __builtin_trap()
      expression that gets evaluated as part of the argument.
      
      llvm-svn: 131805
      347e0f26
  8. May 20, 2011
    • Douglas Gregor's avatar
      Introduce Type::isSignedIntegerOrEnumerationType() and · 6ab2fa8f
      Douglas Gregor authored
      Type::isUnsignedIntegerOrEnumerationType(), which are like
      Type::isSignedIntegerType() and Type::isUnsignedIntegerType() but also
      consider the underlying type of a C++0x scoped enumeration type.
      
      Audited all callers to the existing functions, switching those that
      need to also handle scoped enumeration types (e.g., those that deal
      with constant values) over to the new functions. Fixes PR9923 /
      <rdar://problem/9447851>.
      
      llvm-svn: 131735
      6ab2fa8f
  9. May 19, 2011
  10. May 18, 2011
  11. May 17, 2011
  12. May 16, 2011
  13. May 15, 2011
  14. May 13, 2011
  15. May 08, 2011
  16. May 06, 2011
  17. May 05, 2011
  18. May 04, 2011
  19. May 02, 2011
  20. May 01, 2011
    • Alexis Hunt's avatar
      Fully implement delegating constructors! · 61bc1737
      Alexis Hunt authored
      As far as I know, this implementation is complete but might be missing a
      few optimizations. Exceptions and virtual bases are handled correctly.
      
      Because I'm an optimist, the web page has appropriately been updated. If
      I'm wrong, feel free to downgrade its support categories.
      
      llvm-svn: 130642
      61bc1737
  21. Apr 29, 2011
  22. Apr 28, 2011
Loading