Skip to content
Snippets Groups Projects
  1. Feb 19, 2016
  2. Feb 18, 2016
  3. Feb 17, 2016
    • David Majnemer's avatar
      Don't crash w/ a diagnostic range containing a null byte · 1844181a
      David Majnemer authored
      We prematurely ended the line at the null byte which caused us to crash
      down stream because we tried to reason about columns beyond the end of
      the line.
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261171 91177308-0d34-0410-b5e6-96231b3b80d8
      1844181a
    • Manman Ren's avatar
      Add 'nopartial' qualifier for availability attributes. · 83a9e40e
      Manman Ren authored
      An optional nopartial can be placed after the platform name.
      int bar() __attribute__((availability(macosx,nopartial,introduced=10.12))
      
      When deploying back to a platform version prior to when the declaration was
      introduced, with 'nopartial', Clang emits an error specifying that the function
      is not introduced yet; without 'nopartial', the behavior stays the same: the
      declaration is `weakly linked`.
      
      A member is added to the end of AttributeList to save the location of the
      'nopartial' keyword. A bool member is added to AvailabilityAttr.
      
      The diagnostics for 'nopartial' not-yet-introduced is handled in the same way as
      we handle unavailable cases.
      
      Reviewed by Doug Gregor and Jordan Rose.
      
      rdar://23791325
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261163 91177308-0d34-0410-b5e6-96231b3b80d8
      83a9e40e
Loading