1 // RUN: rm -rf %t && mkdir -p %t/Foo.framework/Headers/SubFolder && mkdir %t/NotAFramework/
2 // RUN: touch %t/Foo.framework/Headers/Foo.h && touch %t/Foo.framework/Headers/FOOClass.h
3 // RUN: touch %t/Foo.framework/Headers/SubFolder/FOOInternal.h
7 #import <Foo/SubFolder/FOOInternal.h>
9 // Note: the run lines follow their respective tests, since line/column
10 // matter in this test.
12 // Autocomplete frameworks without the ".framework" extension.
14 // RUN: %clang -fsyntax-only -F %t -Xclang -code-completion-at=%s:5:10 %s -o - | FileCheck -check-prefix=CHECK-1 %s
15 // CHECK-1-NOT: Foo.framework/
16 // CHECK-1-NOT: NotAFramework/
19 // Autocomplete for frameworks inside its Headers folder.
21 // RUN: %clang -fsyntax-only -F %t -Xclang -code-completion-at=%s:5:14 %s -o - | FileCheck -check-prefix=CHECK-2 %s
23 // CHECK-2: FOOClass.h>
24 // CHECK-2: SubFolder/
26 // Autocomplete for folders inside of a frameworks.
28 // RUN: %clang -fsyntax-only -F %t -Xclang -code-completion-at=%s:7:24 %s -o - | FileCheck -check-prefix=CHECK-3 %s
29 // CHECK-3: FOOInternal.h>