Skip to content
  1. Aug 17, 2012
  2. Aug 16, 2012
  3. Aug 15, 2012
  4. Aug 14, 2012
    • Dmitri Gribenko's avatar
      Attaching comments to redeclarations: fix wrong assumptions · b261088a
      Dmitri Gribenko authored
      The reason for the recent fallout for "attaching comments to any redeclaration"
      change are two false assumptions:
      (1) a RawComment is attached to a single decl (not true for 'typedef struct X *Y'
          where we want the comment to be attached to both X and Y);
      (2) the whole redeclaration chain has only a single comment (obviously false, the
          user can put a separate comment for each redeclaration).
      
      To fix (1) I revert the part of the recent change where a 'Decl*' member was
      introduced to RawComment.  Now ASTContext has a separate DenseMap for mapping
      'Decl*' to 'FullComment*'.
      
      To fix (2) I just removed the test with this assumption.  We might not parse
      every comment in redecl chain if we already parsed at least one.
      
      llvm-svn: 161878
      b261088a
    • Benjamin Kramer's avatar
      Fix horribly broken sema of __attribute__((pcs())). · 833fb9f7
      Benjamin Kramer authored
      llvm-svn: 161863
      833fb9f7
  5. Aug 13, 2012
  6. Aug 09, 2012
  7. Aug 08, 2012
  8. Aug 07, 2012
  9. Aug 06, 2012
  10. Aug 03, 2012
  11. Aug 02, 2012
  12. Aug 01, 2012
  13. Jul 31, 2012
  14. Jul 30, 2012
  15. Jul 27, 2012
    • Hans Wennborg's avatar
      Make -Wformat walk the typedef chain when looking for size_t, etc. · 08574d35
      Hans Wennborg authored
      Clang's -Wformat fix-its currently suggest using "%zu" for values of
      type size_t (in C99 or C++11 mode). However, for a type such as
      std::vector<T>::size_type, it does not notice that type is actually
      typedeffed to size_t, and instead suggests a format for the underlying
      type, such as "%lu" or "%u".
      
      This commit makes the format string fix mechanism walk the typedef chain
      so that it notices if the type is size_t, even if that isn't "at the
      top".
      
      llvm-svn: 160886
      08574d35
  16. Jul 25, 2012
  17. Jul 24, 2012
    • Dmitri Gribenko's avatar
      Comment parsing tests: fix test · 3c541287
      Dmitri Gribenko authored
      llvm-svn: 160700
      3c541287
    • Jordan Rose's avatar
      Add __has_feature(attribute_availability_with_message). · 68449ace
      Jordan Rose authored
      This tests for the ability to include a "message" field in availability
      attributes, like so:
      
        extern void ATSFontGetName(const char *oName)
          __attribute__((availability(macosx,introduced=8.0,deprecated=9.0,
                                      message="use CTFontCopyFullName")));
      
      This was actually supported in Clang 3.1, but we got a request for a
      __has_feature so that header files can use this more safely. It's
      unfortunate that the 3.1 release doesn't include this, however.
      
      <rdar://problem/11886458>
      
      llvm-svn: 160699
      68449ace
Loading