r348471 - Add test for ObjC generics

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 7 04:39:22 PST 2018


On Thu, Dec 6, 2018 at 6:29 PM Stephen Kelly <steveire at gmail.com> wrote:
>
>
> On 06/12/2018 12:48, Aaron Ballman wrote:
> > On Thu, Dec 6, 2018 at 4:26 AM Stephen Kelly via cfe-commits
> > <cfe-commits at lists.llvm.org> wrote:
> >> Author: steveire
> >> Date: Thu Dec  6 01:23:59 2018
> >> New Revision: 348471
> >>
> >> URL: http://llvm.org/viewvc/llvm-project?rev=348471&view=rev
> >> Log:
> >> Add test for ObjC generics
> >>
> >> Modified:
> >>      cfe/trunk/test/AST/ast-dump-decl.m
> >>
> >> Modified: cfe/trunk/test/AST/ast-dump-decl.m
> >> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-decl.m?rev=348471&r1=348470&r2=348471&view=diff
> >> ==============================================================================
> >> --- cfe/trunk/test/AST/ast-dump-decl.m (original)
> >> +++ cfe/trunk/test/AST/ast-dump-decl.m Thu Dec  6 01:23:59 2018
> >> @@ -81,6 +81,14 @@
> >>   // CHECK-NEXT:   ObjCProtocol{{.*}} 'P'
> >>   // CHECK-NEXT:   ObjCMethodDecl{{.*}} bar
> >>
> >> + at interface TestGenericInterface<T> : A<P> {
> >> +}
> >> + at end
> >> +// CHECK:      ObjCInterfaceDecl{{.*}} TestGenericInterface
> >> +// CHECK-NEXT:   -ObjCTypeParamDecl
> >> +// CHECK-NEXT:   -super ObjCInterface
> >> +// CHECK-NEXT:   -ObjCProtocol
> > It would be useful to test the line and column, identifier, and type
> > information as well as the basic AST nodes.
>
> Done in r348543.

Thank you!

~Aaron

>
> Thanks!
>
> Stephen.
>
>
>


More information about the cfe-commits mailing list