~shimon/dismaltc

ref: 461e0617cb03f1d5027af4fbb3da0722791022e9 dismaltc/clang/disable-test/Index/complete-cached-globals.cpp -rw-r--r-- 820 bytes
461e0617Itoh Shimon re-enable tests. 1 year, 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Note: the run lines follow their respective tests, since line/column
// matter in this test.

namespace SomeNamespace {
    class SomeClass {
    };
    void SomeFunction();
}

using SomeNamespace::SomeClass;
using SomeNamespace::SomeFunction;

static void foo() {
  return;
}

// rdar://23454249

// RUN: c-index-test -code-completion-at=%s:14:3 %s | FileCheck -check-prefix=CHECK-CC1 %s
// 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

// CHECK-CC1: ClassDecl:{TypedText SomeClass} (50)
// CHECK-CC1: FunctionDecl:{ResultType void}{TypedText SomeFunction}{LeftParen (}{RightParen )} (50)
// CHECK-CC1-NOT: {Text SomeNamespace::}{TypedText SomeClass}
// CHECK-CC1-NOT: {Text SomeNamespace::}{TypedText SomeFunction}