150
|
1 namespace a_namespace {};
|
|
2 class Class { static void foo(); };
|
|
3 Class::
|
|
4 // Completion for a_namespace should be available at the start of the line.
|
|
5 // START-OF-LINE: a_namespace
|
|
6 // START-OF-LINE: Class
|
|
7 // -- Using cached completions.
|
|
8 // RUN: env CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:3:1 %s \
|
|
9 // RUN: | FileCheck --check-prefix=START-OF-LINE %s
|
|
10 // -- Without cached completions.
|
|
11 // RUN: c-index-test -code-completion-at=%s:3:1 %s \
|
|
12 // RUN: | FileCheck --check-prefix=START-OF-LINE %s
|
|
13 //
|
|
14 //
|
|
15 // ... and should not be available after 'Class::^'
|
|
16 // AFTER-QUALIFIER: Class
|
|
17 // -- Using cached completions.
|
|
18 // RUN: env CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:3:8 %s \
|
|
19 // RUN: | FileCheck --implicit-check-not=a_namespace --check-prefix=AFTER-QUALIFIER %s
|
|
20 // -- Without cached completions.
|
|
21 // RUN: c-index-test -code-completion-at=%s:3:8 %s \
|
|
22 // RUN: | FileCheck --implicit-check-not=a_namespace --check-prefix=AFTER-QUALIFIER %s
|