• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 class classifier {};
2 // We should get all three completions when the cursor is at the beginning,
3 // middle, or end.
4 class cls
5 // ^class cls
6 // RUN: %clang_cc1 -code-completion-at=%s:4:1 %s | FileCheck --check-prefix=CHECK-CLS %s
7 // cl^ass cls
8 // RUN: %clang_cc1 -code-completion-at=%s:4:3 %s | FileCheck --check-prefix=CHECK-CLS %s
9 // class^ cls
10 // RUN: %clang_cc1 -code-completion-at=%s:4:6 %s | FileCheck --check-prefix=CHECK-CLS %s
11 
12 // CHECK-CLS: COMPLETION: class{{$}}
13 // CHECK-CLS: COMPLETION: classifier : classifier
14 
15 // class ^cls
16 // RUN: %clang_cc1 -code-completion-at=%s:4:7 %s | FileCheck --check-prefix=CHECK-NO-CLS %s
17 // class c^ls
18 // RUN: %clang_cc1 -code-completion-at=%s:4:8 %s | FileCheck --check-prefix=CHECK-NO-CLS %s
19 // CHECK-NO-CLS-NOT: COMPLETION: class{{$}}
20 // CHECK-NO-CLS: COMPLETION: classifier : classifier
21