r348471 - Add test for ObjC generics

Roman Lebedev via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 6 01:29:17 PST 2018


Can you please write better commit messages, especially the first subject line?
E.g. this should have been "[AST][NFC] Add dump test for ObjC generics"

On Thu, Dec 6, 2018 at 12:26 PM 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
> +
>  @implementation TestObjCClass (TestObjCCategoryDecl)
>  - (void) bar {
>  }
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


More information about the cfe-commits mailing list