xref: /llvm-project/clang/test/Index/complete-qualified-cached.cpp (revision cf41271448bdace4b14f4ec7b714086a9bdf6cae)
15de0c85eSIlya Biryukov namespace a_namespace {};
25de0c85eSIlya Biryukov class Class { static void foo(); };
35de0c85eSIlya Biryukov Class::
45de0c85eSIlya Biryukov // Completion for a_namespace should be available at the start of the line.
55de0c85eSIlya Biryukov // START-OF-LINE: a_namespace
65de0c85eSIlya Biryukov // START-OF-LINE: Class
75de0c85eSIlya Biryukov // -- Using cached completions.
8*cf412714SIlya Biryukov // RUN: env CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:3:1 %s \
95de0c85eSIlya Biryukov // RUN: | FileCheck --check-prefix=START-OF-LINE %s
105de0c85eSIlya Biryukov // -- Without cached completions.
115de0c85eSIlya Biryukov // RUN: c-index-test -code-completion-at=%s:3:1 %s \
125de0c85eSIlya Biryukov // RUN: | FileCheck --check-prefix=START-OF-LINE %s
135de0c85eSIlya Biryukov //
145de0c85eSIlya Biryukov //
155de0c85eSIlya Biryukov // ... and should not be available after 'Class::^'
165de0c85eSIlya Biryukov // AFTER-QUALIFIER: Class
175de0c85eSIlya Biryukov // -- Using cached completions.
18*cf412714SIlya Biryukov // RUN: env CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:3:8 %s \
195de0c85eSIlya Biryukov // RUN: | FileCheck --implicit-check-not=a_namespace --check-prefix=AFTER-QUALIFIER %s
205de0c85eSIlya Biryukov // -- Without cached completions.
215de0c85eSIlya Biryukov // RUN: c-index-test -code-completion-at=%s:3:8 %s \
225de0c85eSIlya Biryukov // RUN: | FileCheck --implicit-check-not=a_namespace --check-prefix=AFTER-QUALIFIER %s
23