| 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 |
| 4 | |
| 5 | #import <Foo/Foo.h> |
| 6 | |
| 7 | #import <Foo/SubFolder/FOOInternal.h> |
| 8 | |
| 9 | // Note: the run lines follow their respective tests, since line/column |
| 10 | // matter in this test. |
| 11 | |
| 12 | // Autocomplete frameworks without the ".framework" extension. |
| 13 | // |
| 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/ |
| 17 | // CHECK-1: Foo/ |
| 18 | |
| 19 | // Autocomplete for frameworks inside its Headers folder. |
| 20 | // |
| 21 | // RUN: %clang -fsyntax-only -F %t -Xclang -code-completion-at=%s:5:14 %s -o - | FileCheck -check-prefix=CHECK-2 %s |
| 22 | // CHECK-2: Foo.h> |
| 23 | // CHECK-2: FOOClass.h> |
| 24 | // CHECK-2: SubFolder/ |
| 25 | |
| 26 | // Autocomplete for folders inside of a frameworks. |
| 27 | // |
| 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> |
| 30 | |