// Note: the run lines follow their respective tests, since line/column // matter in this test. @protocol FooTestProtocol + protocolClassMethod; - protocolInstanceMethod; @end @interface Foo { void *isa; } + (int)classMethod1:a withKeyword:b; + (void)classMethod2; + new; - instanceMethod1; @end @interface Foo (FooTestCategory) + categoryClassMethod; - categoryInstanceMethod; @end template struct RetainPtr { template struct RemovePointer { typedef U Type; }; template struct RemovePointer { typedef U Type; }; typedef typename RemovePointer::Type* PtrType; explicit operator PtrType() const; }; void func(const RetainPtr& ptr) { [ptr instanceMethod1]; } void func(const RetainPtr>& ptr) { [ptr instanceMethod1]; } // RUN: %clang_cc1 -fsyntax-only -std=c++11 -code-completion-at=%s:33:8 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s // CHECK-CC1: categoryInstanceMethod : [#id#]categoryInstanceMethod // CHECK-CC1: instanceMethod1 : [#id#]instanceMethod1 // CHECK-CC1: protocolInstanceMethod (InBase) : [#id#]protocolInstanceMethod // RUN: %clang_cc1 -fsyntax-only -std=c++11 -code-completion-at=%s:38:8 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s // CHECK-CC2: protocolInstanceMethod : [#id#]protocolInstanceMethod