]> granicus.if.org Git - clang/commit
Forbid qualifiers on ObjC generic parameters and arguments, but
authorJohn McCall <rjmccall@apple.com>
Wed, 23 Sep 2015 22:14:21 +0000 (22:14 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 23 Sep 2015 22:14:21 +0000 (22:14 +0000)
commitbb98aee681b328c134d60f31a4f68417877352f6
tree5a82d62d7e402ec05e062cd8225aebd9930efa30
parentb548f3d65476d32ace86d2d32fb512146179e73b
Forbid qualifiers on ObjC generic parameters and arguments, but
silently ignore them on arguments when they're provided indirectly
(.e.g behind a template argument or typedef).

This is mostly just good language design --- specifying that a
generic argument is __weak doesn't actually do anything --- but
it also prevents assertions when trying to apply a different
ownership qualifier.

rdar://21612439

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248436 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Type.h
include/clang/AST/TypeLoc.h
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/Type.cpp
lib/AST/TypeLoc.cpp
lib/Sema/SemaDeclObjC.cpp
lib/Sema/SemaType.cpp
test/SemaObjC/parameterized_classes_arc.m [new file with mode: 0644]
test/SemaObjCXX/parameterized_classes_arc.mm [new file with mode: 0644]