[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Index / complete-cached-globals.cpp
blob791faf2be128950fba4168aeca677378d7b3a4da
1 // Note: the run lines follow their respective tests, since line/column
2 // matter in this test.
4 namespace SomeNamespace {
5 class SomeClass {
6 };
7 void SomeFunction();
10 using SomeNamespace::SomeClass;
11 using SomeNamespace::SomeFunction;
13 static void foo() {
14 return;
17 // rdar://23454249
19 // RUN: c-index-test -code-completion-at=%s:14:3 %s | FileCheck -check-prefix=CHECK-CC1 %s
20 // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:14:3 %s | FileCheck -check-prefix=CHECK-CC1 %s
22 // CHECK-CC1: ClassDecl:{TypedText SomeClass} (50)
23 // CHECK-CC1: FunctionDecl:{ResultType void}{TypedText SomeFunction}{LeftParen (}{RightParen )} (50)
24 // CHECK-CC1-NOT: {Text SomeNamespace::}{TypedText SomeClass}
25 // CHECK-CC1-NOT: {Text SomeNamespace::}{TypedText SomeFunction}