[cfe-commits] r172567 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td include/clang/Sema/Sema.h lib/Sema/SemaDecl.cpp lib/Sema/SemaDeclAttr.cpp lib/Sema/SemaDeclObjC.cpp test/SemaObjC/attr-availability.m
Dmitri Gribenko
gribozavr at gmail.com
Tue Jan 15 17:00:18 PST 2013
On Wed, Jan 16, 2013 at 12:43 AM, Douglas Gregor <dgregor at apple.com> wrote:
> Author: dgregor
> Date: Tue Jan 15 16:43:08 2013
> New Revision: 172567
>
> URL: http://llvm.org/viewvc/llvm-project?rev=172567&view=rev
> Log:
> When checking availability attributes for consistency between an
> overriding and overridden method, allow the overridden method to have
> a narrower contract (introduced earlier, deprecated/obsoleted later)
> than the overriding method. Fixes <rdar://problem/12992023>.
Could you add a short paragraph about this new overriding behavior to
docs/LanguageExtensions.rst?
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the cfe-commits
mailing list