diff options
| author | Alex Lorenz <arphaman@gmail.com> | 2017-05-09 16:05:04 +0000 |
|---|---|---|
| committer | Alex Lorenz <arphaman@gmail.com> | 2017-05-09 16:05:04 +0000 |
| commit | f7f6f823a4d71e7febbeaf1db4fccbb5a83005d3 (patch) | |
| tree | c8963e58fd570902cd15e64437f47b303fdc0373 /clang/test | |
| parent | 3a363fff7e1725caa840cc0b7323129f7370606a (diff) | |
| download | bcm5719-llvm-f7f6f823a4d71e7febbeaf1db4fccbb5a83005d3.tar.gz bcm5719-llvm-f7f6f823a4d71e7febbeaf1db4fccbb5a83005d3.zip | |
[CodeCompletion] Complete platform names in @available expressions
rdar://32074504
llvm-svn: 302545
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Index/complete-available.m | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/clang/test/Index/complete-available.m b/clang/test/Index/complete-available.m new file mode 100644 index 00000000000..8267dbdddc5 --- /dev/null +++ b/clang/test/Index/complete-available.m @@ -0,0 +1,20 @@ +/* The run lines are below, because this test is line- and + column-number sensitive. */ +void atAvailable() { + if (@available(macOS 10.10, *)) { + + } + if (__builtin_available(iOS 8, *)) { + } +} + +// RUN: c-index-test -code-completion-at=%s:4:18 %s | FileCheck -check-prefix=CHECK %s +// RUN: c-index-test -code-completion-at=%s:7:27 %s | FileCheck -check-prefix=CHECK %s +// CHECK: {TypedText iOS} (40) +// CHECK: {TypedText iOSApplicationExtension} (40) +// CHECK: {TypedText macOS} (40) +// CHECK: {TypedText macOSApplicationExtension} (40) +// CHECK: {TypedText tvOS} (40) +// CHECK: {TypedText tvOSApplicationExtension} (40) +// CHECK: {TypedText watchOS} (40) +// CHECK: {TypedText watchOSApplicationExtension} (40) |

