23 lines · cpp
1namespace a_namespace {};2class Class { static void foo(); };3Class::4// Completion for a_namespace should be available at the start of the line.5// START-OF-LINE: a_namespace6// START-OF-LINE: Class7// -- 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 %s10// -- Without cached completions.11// RUN: c-index-test -code-completion-at=%s:3:1 %s \12// RUN: | FileCheck --check-prefix=START-OF-LINE %s13//14//15// ... and should not be available after 'Class::^'16// AFTER-QUALIFIER: Class17// -- 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 %s20// -- 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 %s23