Ilya Biryukov | 5de0c85 | 2019-07-18 15:21:34 +0000 | [diff] [blame] | 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. |
Ilya Biryukov | cf41271 | 2019-07-18 16:24:09 +0000 | [diff] [blame^] | 8 | // RUN: env CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:3:1 %s \ |
Ilya Biryukov | 5de0c85 | 2019-07-18 15:21:34 +0000 | [diff] [blame] | 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. |
Ilya Biryukov | cf41271 | 2019-07-18 16:24:09 +0000 | [diff] [blame^] | 18 | // RUN: env CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:3:8 %s \ |
Ilya Biryukov | 5de0c85 | 2019-07-18 15:21:34 +0000 | [diff] [blame] | 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 |