summaryrefslogtreecommitdiff
path: root/test/CodeCompletion
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-08-20 17:59:23 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-08-20 17:59:23 +0000
commit9a83721404652cea39e9f02ae3e3b5c964602a5c (patch)
tree23e9541ce27049a103f6ed046be61592123e02c9 /test/CodeCompletion
parent676fbe8105eeb6ff4bb2ed261cb212fcfdbe7b63 (diff)
Notes
Diffstat (limited to 'test/CodeCompletion')
-rw-r--r--test/CodeCompletion/Inputs/ModuleA/module.modulemap4
-rw-r--r--test/CodeCompletion/Inputs/ModuleA/moduleA.h1
-rw-r--r--test/CodeCompletion/Inputs/comments.h4
-rw-r--r--test/CodeCompletion/Inputs/import_moduleA.h2
-rw-r--r--test/CodeCompletion/Inputs/macros.h11
-rw-r--r--test/CodeCompletion/Inputs/reserved.h4
-rw-r--r--test/CodeCompletion/PR9728.cpp9
-rw-r--r--test/CodeCompletion/accessibility-crash.cpp23
-rw-r--r--test/CodeCompletion/accessibility.cpp122
-rw-r--r--test/CodeCompletion/auto.cpp2
-rw-r--r--test/CodeCompletion/auto_type.c5
-rw-r--r--test/CodeCompletion/bracket-decl.c9
-rw-r--r--test/CodeCompletion/call.c15
-rw-r--r--test/CodeCompletion/call.cpp28
-rw-r--r--test/CodeCompletion/comments.cpp13
-rw-r--r--test/CodeCompletion/constexpr.cpp13
-rw-r--r--test/CodeCompletion/crash-func-decl.cpp5
-rw-r--r--test/CodeCompletion/crash-func-init.cpp4
-rw-r--r--test/CodeCompletion/crash-skipped-bodies-template-inst.cpp27
-rw-r--r--test/CodeCompletion/ctor-initializer.cpp105
-rw-r--r--test/CodeCompletion/documentation.cpp33
-rw-r--r--test/CodeCompletion/documentation.m25
-rw-r--r--test/CodeCompletion/enable-if-attr-crash.cpp8
-rw-r--r--test/CodeCompletion/end-of-file.cpp7
-rw-r--r--test/CodeCompletion/end-of-ident-macro.cpp16
-rw-r--r--test/CodeCompletion/end-of-ident.cpp20
-rw-r--r--test/CodeCompletion/enum-switch-case-qualified.cpp32
-rw-r--r--test/CodeCompletion/enum-switch-case.c45
-rw-r--r--test/CodeCompletion/enum-switch-case.cpp28
-rw-r--r--test/CodeCompletion/function-overloads.cpp43
-rw-r--r--test/CodeCompletion/function-templates.cpp23
-rw-r--r--test/CodeCompletion/functions.cpp8
-rw-r--r--test/CodeCompletion/ignore-ns-level-decls.cpp21
-rw-r--r--test/CodeCompletion/included-files.cpp35
-rw-r--r--test/CodeCompletion/incomplete-ret-type.cpp13
-rw-r--r--test/CodeCompletion/inside-macros.cpp13
-rw-r--r--test/CodeCompletion/keywords.cpp79
-rw-r--r--test/CodeCompletion/macros-in-modules.c11
-rw-r--r--test/CodeCompletion/macros-in-modules.m10
-rw-r--r--test/CodeCompletion/macros.c46
-rw-r--r--test/CodeCompletion/member-access.c31
-rw-r--r--test/CodeCompletion/member-access.cpp212
-rw-r--r--test/CodeCompletion/namespace-alias.cpp20
-rw-r--r--test/CodeCompletion/namespace.cpp14
-rw-r--r--test/CodeCompletion/nested-name-specifier.cpp17
-rw-r--r--test/CodeCompletion/objc-expr.m17
-rw-r--r--test/CodeCompletion/objc-message.m35
-rw-r--r--test/CodeCompletion/objc-message.mm46
-rw-r--r--test/CodeCompletion/objc-protocol-member-access.m24
-rw-r--r--test/CodeCompletion/operator.cpp17
-rw-r--r--test/CodeCompletion/ordinary-name-cxx11.cpp260
-rw-r--r--test/CodeCompletion/ordinary-name.c18
-rw-r--r--test/CodeCompletion/ordinary-name.cpp228
-rw-r--r--test/CodeCompletion/overrides.cpp33
-rw-r--r--test/CodeCompletion/paren_locs.cpp33
-rw-r--r--test/CodeCompletion/pch-and-module.m37
-rw-r--r--test/CodeCompletion/pragma-macro-token-caching.c18
-rw-r--r--test/CodeCompletion/preamble.c7
-rw-r--r--test/CodeCompletion/preferred-type.cpp15
-rw-r--r--test/CodeCompletion/qualifiers-as-written.cpp31
-rw-r--r--test/CodeCompletion/self-inits.cpp3
-rw-r--r--test/CodeCompletion/signatures-crash.cpp15
-rw-r--r--test/CodeCompletion/skip-auto-funcs.cpp61
-rw-r--r--test/CodeCompletion/some_struct.h1
-rw-r--r--test/CodeCompletion/stdin.c7
-rw-r--r--test/CodeCompletion/tag.c12
-rw-r--r--test/CodeCompletion/tag.cpp27
-rw-r--r--test/CodeCompletion/templates.cpp28
-rw-r--r--test/CodeCompletion/this-quals.cpp21
-rw-r--r--test/CodeCompletion/truncation.c15
-rw-r--r--test/CodeCompletion/truncation.c.h5
-rw-r--r--test/CodeCompletion/uninstantiated_params.cpp13
-rw-r--r--test/CodeCompletion/using-namespace.cpp20
-rw-r--r--test/CodeCompletion/using.cpp24
74 files changed, 0 insertions, 2287 deletions
diff --git a/test/CodeCompletion/Inputs/ModuleA/module.modulemap b/test/CodeCompletion/Inputs/ModuleA/module.modulemap
deleted file mode 100644
index b0fe1faaee6a3..0000000000000
--- a/test/CodeCompletion/Inputs/ModuleA/module.modulemap
+++ /dev/null
@@ -1,4 +0,0 @@
-module ModuleA {
- header "moduleA.h"
- export *
-}
diff --git a/test/CodeCompletion/Inputs/ModuleA/moduleA.h b/test/CodeCompletion/Inputs/ModuleA/moduleA.h
deleted file mode 100644
index f90f56dad8259..0000000000000
--- a/test/CodeCompletion/Inputs/ModuleA/moduleA.h
+++ /dev/null
@@ -1 +0,0 @@
-static int const FROM_MODULE_A = 0;
diff --git a/test/CodeCompletion/Inputs/comments.h b/test/CodeCompletion/Inputs/comments.h
deleted file mode 100644
index 7b4b5daa0bd5d..0000000000000
--- a/test/CodeCompletion/Inputs/comments.h
+++ /dev/null
@@ -1,4 +0,0 @@
-// PR32732
-struct B {
- // <- code completion
-};
diff --git a/test/CodeCompletion/Inputs/import_moduleA.h b/test/CodeCompletion/Inputs/import_moduleA.h
deleted file mode 100644
index e2663f4e61b53..0000000000000
--- a/test/CodeCompletion/Inputs/import_moduleA.h
+++ /dev/null
@@ -1,2 +0,0 @@
-#include "ModuleA/moduleA.h"
-static int const FROM_HEADER = 1;
diff --git a/test/CodeCompletion/Inputs/macros.h b/test/CodeCompletion/Inputs/macros.h
deleted file mode 100644
index 5f15dfc2be358..0000000000000
--- a/test/CodeCompletion/Inputs/macros.h
+++ /dev/null
@@ -1,11 +0,0 @@
-#define FOO
-#define BAR(X, Y) X, Y
-#define IDENTITY(X) X
-#define WIBBLE(...)
-#define DEAD_MACRO
-#undef DEAD_MACRO
-#define MACRO_WITH_HISTORY a
-#undef MACRO_WITH_HISTORY
-#define MACRO_WITH_HISTORY b, c
-#undef MACRO_WITH_HISTORY
-#define MACRO_WITH_HISTORY(X, Y) X->Y
diff --git a/test/CodeCompletion/Inputs/reserved.h b/test/CodeCompletion/Inputs/reserved.h
deleted file mode 100644
index 7b353a58fca4e..0000000000000
--- a/test/CodeCompletion/Inputs/reserved.h
+++ /dev/null
@@ -1,4 +0,0 @@
-typedef int __INTEGER_TYPE;
-typedef float FLOATING_TYPE;
-
-typedef int _MyPrivateType;
diff --git a/test/CodeCompletion/PR9728.cpp b/test/CodeCompletion/PR9728.cpp
deleted file mode 100644
index 91f49be91fcf4..0000000000000
--- a/test/CodeCompletion/PR9728.cpp
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace N {
-struct SFoo;
-}
-
-struct brokenfile_t {
- brokenfile_t (N::
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:6:20 %s -o - | FileCheck %s
- // CHECK: SFoo
-
diff --git a/test/CodeCompletion/accessibility-crash.cpp b/test/CodeCompletion/accessibility-crash.cpp
deleted file mode 100644
index b54f7cea3e201..0000000000000
--- a/test/CodeCompletion/accessibility-crash.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-class X {
-public:
- int pub;
-protected:
- int prot;
-private:
- int priv;
-};
-
-class Y : public X {
- int test() {
- []() {
-
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:13:1 %s -o - \
- // RUN: | FileCheck %s
- // CHECK: priv (InBase,Inaccessible)
- // CHECK: prot (InBase)
- // CHECK: pub (InBase)
- };
- }
-};
-
-
diff --git a/test/CodeCompletion/accessibility.cpp b/test/CodeCompletion/accessibility.cpp
deleted file mode 100644
index a050efc9a73d5..0000000000000
--- a/test/CodeCompletion/accessibility.cpp
+++ /dev/null
@@ -1,122 +0,0 @@
-class X {
-public:
- int pub;
-protected:
- int prot;
-private:
- int priv;
-};
-
-class Unrelated {
-public:
- static int pub;
-protected:
- static int prot;
-private:
- static int priv;
-};
-
-class Y : public X {
- int test() {
- this->pub = 10;
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:21:11 %s -o - \
- // RUN: | FileCheck -check-prefix=THIS %s
- // THIS: priv (InBase,Inaccessible)
- // THIS: prot (InBase)
- // THIS: pub (InBase)
- //
- // Also check implicit 'this->', i.e. complete at the start of the line.
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:21:1 %s -o - \
- // RUN: | FileCheck -check-prefix=THIS %s
-
- X().pub + 10;
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:32:9 %s -o - \
- // RUN: | FileCheck -check-prefix=X-OBJ %s
- // X-OBJ: priv (Inaccessible)
- // X-OBJ: prot (Inaccessible)
- // X-OBJ: pub : [#int#]pub
-
- Y().pub + 10;
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:39:9 %s -o - \
- // RUN: | FileCheck -check-prefix=Y-OBJ %s
- // Y-OBJ: priv (InBase,Inaccessible)
- // Y-OBJ: prot (InBase)
- // Y-OBJ: pub (InBase)
-
- this->X::pub = 10;
- X::pub = 10;
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:46:14 %s -o - \
- // RUN: | FileCheck -check-prefix=THIS-BASE %s
- //
- // THIS-BASE: priv (Inaccessible)
- // THIS-BASE: prot : [#int#]prot
- // THIS-BASE: pub : [#int#]pub
- //
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:47:8 %s -o - \
- // RUN: | FileCheck -check-prefix=THIS-BASE %s
-
-
- this->Unrelated::pub = 10; // a check we don't crash in this cases.
- Y().Unrelated::pub = 10; // a check we don't crash in this cases.
- Unrelated::pub = 10;
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:59:22 %s -o - \
- // RUN: | FileCheck -check-prefix=UNRELATED %s
- // UNRELATED: priv (Inaccessible)
- // UNRELATED: prot (Inaccessible)
- // UNRELATED: pub : [#int#]pub
- //
- // RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:60:20 %s -o - \
- // RUN: | FileCheck -check-prefix=UNRELATED %s
- // RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:61:16 %s -o - \
- // RUN: | FileCheck -check-prefix=UNRELATED %s
- }
-};
-
-class Outer {
- public:
- static int pub;
- protected:
- static int prot;
- private:
- static int priv;
-
- class Inner {
- int test() {
- Outer::pub = 10;
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:85:14 %s -o - \
- // RUN: | FileCheck -check-prefix=OUTER %s
- // OUTER: priv : [#int#]priv
- // OUTER: prot : [#int#]prot
- // OUTER: pub : [#int#]pub
-
- // Also check the unqualified case.
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:85:1 %s -o - \
- // RUN: | FileCheck -check-prefix=OUTER %s
- }
- };
-};
-
-class Base {
-public:
- int pub;
-};
-
-class Accessible : public Base {
-};
-
-class Inaccessible : private Base {
-};
-
-class Test : public Accessible, public Inaccessible {
- int test() {
- this->Accessible::pub = 10;
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:112:23 %s -o - \
- // RUN: | FileCheck -check-prefix=ACCESSIBLE %s
- // ACCESSIBLE: pub (InBase)
-
- this->Inaccessible::pub = 10;
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:117:25 %s -o - \
- // RUN: | FileCheck -check-prefix=INACCESSIBLE %s
- // INACCESSIBLE: pub (InBase,Inaccessible)
- }
-};
diff --git a/test/CodeCompletion/auto.cpp b/test/CodeCompletion/auto.cpp
deleted file mode 100644
index 1fc9fb035d473..0000000000000
--- a/test/CodeCompletion/auto.cpp
+++ /dev/null
@@ -1,2 +0,0 @@
-// RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:2:9 %s
-auto i =
diff --git a/test/CodeCompletion/auto_type.c b/test/CodeCompletion/auto_type.c
deleted file mode 100644
index 3fcfff0dcfc95..0000000000000
--- a/test/CodeCompletion/auto_type.c
+++ /dev/null
@@ -1,5 +0,0 @@
-// RUN: %clang_cc1 -code-completion-at=%s:3:1 %s | FileCheck %s
-void func() {
-
-}
-// CHECK: COMPLETION: __auto_type
diff --git a/test/CodeCompletion/bracket-decl.c b/test/CodeCompletion/bracket-decl.c
deleted file mode 100644
index cf80b424d13b2..0000000000000
--- a/test/CodeCompletion/bracket-decl.c
+++ /dev/null
@@ -1,9 +0,0 @@
-#define PATHSIZE 256
-
-static const int len = 1234;
-
-void foo() {
- char arr[
-// RUN: %clang_cc1 -fsyntax-only -code-completion-macros -code-completion-at=%s:6:12 %s -o - | FileCheck %s
-// CHECK: COMPLETION: len
-// CHECK: COMPLETION: PATHSIZE
diff --git a/test/CodeCompletion/call.c b/test/CodeCompletion/call.c
deleted file mode 100644
index fe8644595f677..0000000000000
--- a/test/CodeCompletion/call.c
+++ /dev/null
@@ -1,15 +0,0 @@
-// Note: the run lines follow their respective tests, since line/column
-// matter in this test.
-void f0(float x, float y);
-void f1();
-void test() {
- f0(0, 0);
- g0(0, 0);
- f1(0, 0);
- // RUN: %clang_cc1 -std=c89 -fsyntax-only -code-completion-at=%s:6:6 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: f0(<#float x#>, float y)
- // RUN: %clang_cc1 -std=c89 -fsyntax-only -code-completion-at=%s:6:9 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
- // CHECK-CC2: f0(float x, <#float y#>)
- // RUN: %clang_cc1 -std=c89 -fsyntax-only -code-completion-at=%s:8:6 %s -o - | FileCheck -check-prefix=CHECK-CC3 %s
- // CHECK-CC3: f1()
-}
diff --git a/test/CodeCompletion/call.cpp b/test/CodeCompletion/call.cpp
deleted file mode 100644
index c57c339cd130c..0000000000000
--- a/test/CodeCompletion/call.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-// Note: the run lines follow their respective tests, since line/column
-// matter in this test.
-void f(float x, float y);
-void f(int i, int j, int k);
-struct X { };
-void f(X);
-namespace N {
- struct Y {
- Y(int = 0);
-
- operator int() const;
- };
- void f(Y y, int ZZ);
-}
-typedef N::Y Y;
-void f();
-
-void test() {
- f(Y(), 0, 0);
- // RUN: %clang_cc1 -fsyntax-only -code-completion-patterns -code-completion-at=%s:19:9 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: f(Y y, <#int ZZ#>)
- // CHECK-CC1-NEXT: f(int i, <#int j#>, int k)
- // CHECK-CC1-NEXT: f(float x, <#float y#>)
- // CHECK-CC1: COMPLETION: Pattern : dynamic_cast<<#type#>>(<#expression#>)
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:19:13 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
- // CHECK-CC2-NOT: f(Y y, int ZZ)
- // CHECK-CC2: f(int i, int j, <#int k#>)
-}
diff --git a/test/CodeCompletion/comments.cpp b/test/CodeCompletion/comments.cpp
deleted file mode 100644
index 21f1465ebc048..0000000000000
--- a/test/CodeCompletion/comments.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-// Note: the run lines follow their respective tests, since line/column
-// matter in this test.
-
-#include "comments.h"
-
-struct A {
- // <- code completion
- /* <- code completion */
-};
-
-// RUN: %clang_cc1 -I %S/Inputs -fsyntax-only -code-completion-at=%s:7:6 %s
-// RUN: %clang_cc1 -I %S/Inputs -fsyntax-only -code-completion-at=%s:8:6 %s
-// RUN: %clang_cc1 -I %S/Inputs -fsyntax-only -code-completion-at=%S/Inputs/comments.h:3:6 %s
diff --git a/test/CodeCompletion/constexpr.cpp b/test/CodeCompletion/constexpr.cpp
deleted file mode 100644
index 12396c0198fa9..0000000000000
--- a/test/CodeCompletion/constexpr.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-// RUN: %clang_cc1 -fsyntax-only -std=c++11 -code-completion-at=%s:12:9 %s -o - | FileCheck %s
-
-// PR14381: need constexpr function bodies always, even if code-completing.
-template<int> struct S;
-template<> struct S<1> {
- typedef int type;
-};
-constexpr int f() {
- return 1;
-}
-
-S<f()>::
-// CHECK: COMPLETION: type : type
diff --git a/test/CodeCompletion/crash-func-decl.cpp b/test/CodeCompletion/crash-func-decl.cpp
deleted file mode 100644
index 7abcdcdb271fb..0000000000000
--- a/test/CodeCompletion/crash-func-decl.cpp
+++ /dev/null
@@ -1,5 +0,0 @@
-// Important that BB is unknown.
-// This triggers completion in PCC_RecoveryInFunction context, with no function.
-int AA(BB cc);
-// RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:3:12 %s | FileCheck %s
-// CHECK: COMPLETION: char
diff --git a/test/CodeCompletion/crash-func-init.cpp b/test/CodeCompletion/crash-func-init.cpp
deleted file mode 100644
index 6d84b843ea182..0000000000000
--- a/test/CodeCompletion/crash-func-init.cpp
+++ /dev/null
@@ -1,4 +0,0 @@
-int (*foo(int a))(flo
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:1:21 %s -o - \
-// RUN: | FileCheck %s
-// CHECK: COMPLETION: float
diff --git a/test/CodeCompletion/crash-skipped-bodies-template-inst.cpp b/test/CodeCompletion/crash-skipped-bodies-template-inst.cpp
deleted file mode 100644
index 6161f100cb555..0000000000000
--- a/test/CodeCompletion/crash-skipped-bodies-template-inst.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:24:5 %s -o - 2>&1 | FileCheck %s
-template <class T>
-auto make_func() {
- struct impl {
- impl* func() {
- int x;
- if (x = 10) {}
- // Check that body of this function is actually skipped.
- // CHECK-NOT: crash-skipped-bodies-template-inst.cpp:7:{{[0-9]+}}: warning: using the result of an assignment as a condition without parentheses
- return this;
- }
- };
-
- int x;
- if (x = 10) {}
- // Check that this function is not skipped.
- // CHECK: crash-skipped-bodies-template-inst.cpp:15:9: warning: using the result of an assignment as a condition without parentheses
- return impl();
-}
-
-void foo() {
- []() {
- make_func<int>();
- m
- // CHECK: COMPLETION: make_func : [#auto#]make_func<<#class T#>>()
- };
-}
diff --git a/test/CodeCompletion/ctor-initializer.cpp b/test/CodeCompletion/ctor-initializer.cpp
deleted file mode 100644
index ead99f087ca84..0000000000000
--- a/test/CodeCompletion/ctor-initializer.cpp
+++ /dev/null
@@ -1,105 +0,0 @@
-struct Base1 {
- Base1() : {}
- // RUN: %clang_cc1 -fsyntax-only -std=c++98 -code-completion-at=%s:2:12 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // RUN: %clang_cc1 -fsyntax-only -std=c++14 -code-completion-at=%s:2:12 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: COMPLETION: Pattern : member1(<#int#>)
- // CHECK-CC1: COMPLETION: Pattern : member2(<#float#>)
-
- Base1(int) : member1(123), {}
- // RUN: %clang_cc1 -fsyntax-only -std=c++98 -code-completion-at=%s:8:30 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
- // RUN: %clang_cc1 -fsyntax-only -std=c++14 -code-completion-at=%s:8:30 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
- // CHECK-CC2-NOT: COMPLETION: Pattern : member1(<#int#>)
- // CHECK-CC2: COMPLETION: Pattern : member2(<#float#>)
-
- int member1;
- float member2;
-};
-
-struct Derived : public Base1 {
- Derived();
- Derived(int);
- Derived(float);
- int deriv1;
-};
-
-Derived::Derived() : {}
-// RUN: %clang_cc1 -fsyntax-only -std=c++98 -code-completion-at=%s:25:22 %s -o - | FileCheck -check-prefix=CHECK-CC3 %s
-// RUN: %clang_cc1 -fsyntax-only -std=c++14 -code-completion-at=%s:25:22 %s -o - | FileCheck -check-prefix=CHECK-CC3 %s
-// CHECK-CC3: COMPLETION: Pattern : Base1()
-// CHECK-CC3: COMPLETION: Pattern : Base1(<#int#>)
-// CHECK-CC3: COMPLETION: Pattern : deriv1(<#int#>)
-
-Derived::Derived(int) try : {
-} catch (...) {
-}
-// RUN: %clang_cc1 -fsyntax-only -std=c++98 -code-completion-at=%s:32:29 %s -o - | FileCheck -check-prefix=CHECK-CC3 %s
-// RUN: %clang_cc1 -fsyntax-only -std=c++14 -code-completion-at=%s:32:29 %s -o - | FileCheck -check-prefix=CHECK-CC3 %s
-
-Derived::Derived(float) try : Base1(),
-{
-} catch (...) {
-}
-// RUN: %clang_cc1 -fsyntax-only -std=c++98 -code-completion-at=%s:38:39 %s -o - | FileCheck -check-prefix=CHECK-CC5 %s
-// RUN: %clang_cc1 -fsyntax-only -std=c++14 -code-completion-at=%s:38:39 %s -o - | FileCheck -check-prefix=CHECK-CC5 %s
-// CHECK-CC5-NOT: COMPLETION: Pattern : Base1
-// CHECK-CC5: COMPLETION: Pattern : deriv1(<#int#>)
-
-struct A {
- A() : , member2() {}
- // RUN: %clang_cc1 -fsyntax-only -std=c++98 -code-completion-at=%s:48:9 %s -o - | FileCheck -check-prefix=CHECK-CC6 %s
- // RUN: %clang_cc1 -fsyntax-only -std=c++14 -code-completion-at=%s:48:9 %s -o - | FileCheck -check-prefix=CHECK-CC6 %s
- // CHECK-CC6: COMPLETION: Pattern : member1(<#int#>)
- int member1, member2;
-};
-
-struct B {
- B() : member2() {}
- // RUN: %clang_cc1 -fsyntax-only -std=c++98 -code-completion-at=%s:56:9 %s -o - | FileCheck -check-prefix=CHECK-CC7 %s
- // RUN: %clang_cc1 -fsyntax-only -std=c++14 -code-completion-at=%s:56:9 %s -o - | FileCheck -check-prefix=CHECK-CC7 %s
- // CHECK-CC7: COMPLETION: Pattern : member1(<#int#>)
- // Check in the middle and at the end of identifier too.
- // RUN: %clang_cc1 -fsyntax-only -std=c++98 -code-completion-at=%s:56:13 %s -o - | FileCheck -check-prefix=CHECK-CC8 %s
- // RUN: %clang_cc1 -fsyntax-only -std=c++98 -code-completion-at=%s:56:16 %s -o - | FileCheck -check-prefix=CHECK-CC8 %s
- // CHECK-CC8: COMPLETION: Pattern : member2(<#int#>)
- int member1, member2;
-};
-
-struct Base2 {
- Base2(int);
-};
-
-struct Composition1 {
- Composition1() : b2_elem(2) {}
- // RUN: %clang_cc1 -fsyntax-only -std=c++98 -code-completion-at=%s:72:28 %s -o - | FileCheck -check-prefix=CHECK-CC9 %s
- // RUN: %clang_cc1 -fsyntax-only -std=c++14 -code-completion-at=%s:72:28 %s -o - | FileCheck -check-prefix=CHECK-CC9 %s
- // CHECK-CC9: OVERLOAD: Base2(<#int#>)
- // CHECK-CC9: OVERLOAD: Base2(<#const Base2 &#>)
- // CHECK-CC9-NOT: OVERLOAD: Composition1
- Composition1(Base2);
- Base2 b2_elem;
-};
-
-struct Composition2 {
- Composition2() : c1_elem(Base2(1)) {}
- // RUN: %clang_cc1 -fsyntax-only -std=c++98 -code-completion-at=%s:83:34 %s -o - | FileCheck -check-prefix=CHECK-CC9 %s
- // RUN: %clang_cc1 -fsyntax-only -std=c++14 -code-completion-at=%s:83:34 %s -o - | FileCheck -check-prefix=CHECK-CC9 %s
- // RUN: %clang_cc1 -fsyntax-only -std=c++98 -code-completion-at=%s:83:35 %s -o - | FileCheck -check-prefix=CHECK-CC9 %s
- // RUN: %clang_cc1 -fsyntax-only -std=c++14 -code-completion-at=%s:83:35 %s -o - | FileCheck -check-prefix=CHECK-CC9 %s
- Composition1 c1_elem;
-};
-// RUN: %clang_cc1 -fsyntax-only -std=c++98 -code-completion-at=%s:83:20 %s -o - | FileCheck -check-prefix=CHECK-CC10 %s
-// RUN: %clang_cc1 -fsyntax-only -std=c++14 -code-completion-at=%s:83:20 %s -o - | FileCheck -check-prefix=CHECK-CC10 %s
-// CHECK-CC10: Pattern : c1_elem()
-// CHECK-CC10: Pattern : c1_elem(<#Base2#>)
-
-template <class T>
-struct Y : T {};
-
-template <class T>
-struct X : Y<T> {
- X() : Y<T>() {};
-};
-
-// RUN: %clang_cc1 -fsyntax-only -std=c++98 -code-completion-at=%s:100:9 %s -o - | FileCheck -check-prefix=CHECK-CC11 %s
-// RUN: %clang_cc1 -fsyntax-only -std=c++14 -code-completion-at=%s:100:9 %s -o - | FileCheck -check-prefix=CHECK-CC11 %s
-// CHECK-CC11: Pattern : Y<T>(<#Y<T>#>)
diff --git a/test/CodeCompletion/documentation.cpp b/test/CodeCompletion/documentation.cpp
deleted file mode 100644
index d7dec9af6c085..0000000000000
--- a/test/CodeCompletion/documentation.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
-// Note: the run lines follow their respective tests, since line/column
-// matter in this test.
-
-/// Aaa.
-void T1(float x, float y);
-
-/// Bbb.
-class T2 {
-public:
- /// Ccc.
- void T3();
-
- int T4; ///< Ddd.
-};
-
-/// Eee.
-namespace T5 {
-}
-
-void test() {
-
- T2 t2;
- t2.
-}
-
-// RUN: %clang_cc1 -fsyntax-only -code-completion-brief-comments -code-completion-at=%s:21:1 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
-// CHECK-CC1: COMPLETION: T1 : [#void#]T1(<#float x#>, <#float y#>) : Aaa.
-// CHECK-CC1: COMPLETION: T2 : T2 : Bbb.
-// CHECK-CC1: COMPLETION: T5 : T5:: : Eee.
-
-// RUN: %clang_cc1 -fsyntax-only -code-completion-brief-comments -code-completion-at=%s:23:6 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
-// CHECK-CC2: COMPLETION: T3 : [#void#]T3() : Ccc.
-// CHECK-CC2: COMPLETION: T4 : [#int#]T4 : Ddd.
diff --git a/test/CodeCompletion/documentation.m b/test/CodeCompletion/documentation.m
deleted file mode 100644
index 47add5b6ca0d5..0000000000000
--- a/test/CodeCompletion/documentation.m
+++ /dev/null
@@ -1,25 +0,0 @@
-// Note: the run lines follow their respective tests, since line/column
-// matter in this test.
-
-@interface Base
-@end
-
-@interface Test : Base
-/// Instance!
-@property id instanceProp;
-/// Class!
-@property (class) id classProp;
-@end
-
-void test(Test *obj) {
- [obj instanceProp];
- [Test classProp];
-}
-
-// RUN: %clang_cc1 -fsyntax-only -code-completion-brief-comments -code-completion-at=%s:15:8 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
-// CHECK-CC1: instanceProp : [#id#]instanceProp : Instance!
-// CHECK-CC1: setInstanceProp: : [#void#]setInstanceProp:<#(id)#> : Instance!
-
-// RUN: %clang_cc1 -fsyntax-only -code-completion-brief-comments -code-completion-at=%s:16:9 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
-// CHECK-CC2: classProp : [#id#]classProp : Class!
-// CHECK-CC2: setClassProp: : [#void#]setClassProp:<#(id)#> : Class!
diff --git a/test/CodeCompletion/enable-if-attr-crash.cpp b/test/CodeCompletion/enable-if-attr-crash.cpp
deleted file mode 100644
index cca84b28ecfb8..0000000000000
--- a/test/CodeCompletion/enable-if-attr-crash.cpp
+++ /dev/null
@@ -1,8 +0,0 @@
-int foo(bool x) __attribute__((enable_if(x, "")));
-
-int test() {
- bool fffffff;
- // RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:7:8 %s | FileCheck %s
- // CHECK: COMPLETION: fffffff : [#bool#]fffffff
- foo(ff
-}
diff --git a/test/CodeCompletion/end-of-file.cpp b/test/CodeCompletion/end-of-file.cpp
deleted file mode 100644
index 178ef4561f56b..0000000000000
--- a/test/CodeCompletion/end-of-file.cpp
+++ /dev/null
@@ -1,7 +0,0 @@
-// Check that clang does not crash when completing at the last char in the
-// buffer.
-// NOTE: This file must *NOT* have newline at the end.
-// RUN: %clang_cc1 -code-completion-at=%s:7:2 %s | FileCheck %s
-// CHECK: COMPLETION: foo
-using foo = int***;
-f \ No newline at end of file
diff --git a/test/CodeCompletion/end-of-ident-macro.cpp b/test/CodeCompletion/end-of-ident-macro.cpp
deleted file mode 100644
index f288979a2c4d8..0000000000000
--- a/test/CodeCompletion/end-of-ident-macro.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-#define FUNC(X) X
-#define FUNCTOR
-using FUNCTION = int();
-// We should get all three completions when the cursor is at the beginning,
-// middle, or end.
-FUNC(int) a = 10;
-// ^FUNC(int)
-// RUN: %clang_cc1 -code-completion-at=%s:6:1 -code-completion-macros %s | FileCheck %s
-// FU^NC(int)
-// RUN: %clang_cc1 -code-completion-at=%s:6:3 -code-completion-macros %s | FileCheck %s
-// FUNC^(int)
-// RUN: %clang_cc1 -code-completion-at=%s:6:5 -code-completion-macros %s | FileCheck %s
-
-// CHECK: COMPLETION: FUNC : FUNC(<#X#>)
-// CHECK: COMPLETION: FUNCTION : FUNCTION
-// CHECK: COMPLETION: FUNCTOR : FUNCTOR \ No newline at end of file
diff --git a/test/CodeCompletion/end-of-ident.cpp b/test/CodeCompletion/end-of-ident.cpp
deleted file mode 100644
index f1d3700ce28d2..0000000000000
--- a/test/CodeCompletion/end-of-ident.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-class classifier {};
-// We should get all three completions when the cursor is at the beginning,
-// middle, or end.
-class cls
-// ^class cls
-// RUN: %clang_cc1 -code-completion-at=%s:4:1 %s | FileCheck --check-prefix=CHECK-CLS %s
-// cl^ass cls
-// RUN: %clang_cc1 -code-completion-at=%s:4:3 %s | FileCheck --check-prefix=CHECK-CLS %s
-// class^ cls
-// RUN: %clang_cc1 -code-completion-at=%s:4:6 %s | FileCheck --check-prefix=CHECK-CLS %s
-
-// CHECK-CLS: COMPLETION: class{{$}}
-// CHECK-CLS: COMPLETION: classifier : classifier
-
-// class ^cls
-// RUN: %clang_cc1 -code-completion-at=%s:4:7 %s | FileCheck --check-prefix=CHECK-NO-CLS %s
-// class c^ls
-// RUN: %clang_cc1 -code-completion-at=%s:4:8 %s | FileCheck --check-prefix=CHECK-NO-CLS %s
-// CHECK-NO-CLS-NOT: COMPLETION: class{{$}}
-// CHECK-NO-CLS: COMPLETION: classifier : classifier
diff --git a/test/CodeCompletion/enum-switch-case-qualified.cpp b/test/CodeCompletion/enum-switch-case-qualified.cpp
deleted file mode 100644
index 0f256716bc0d5..0000000000000
--- a/test/CodeCompletion/enum-switch-case-qualified.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-namespace M {
-
-namespace N {
- struct C {
- enum Color {
- Red,
- Orange,
- Yellow,
- Green,
- Blue,
- Indigo,
- Violet
- };
- };
-}
-
-}
-
-namespace M {
-
-void test(enum N::C::Color color) {
- switch (color) {
- case
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:23:8 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: Blue : [#M::N::C::Color#]N::C::Blue
- // CHECK-CC1-NEXT: Green : [#M::N::C::Color#]N::C::Green
- // CHECK-CC1-NEXT: Indigo : [#M::N::C::Color#]N::C::Indigo
- // CHECK-CC1-NEXT: Orange : [#M::N::C::Color#]N::C::Orange
- // CHECK-CC1-NEXT: Red : [#M::N::C::Color#]N::C::Red
- // CHECK-CC1-NEXT: Violet : [#M::N::C::Color#]N::C::Violet
- // CHECK-CC1: Yellow : [#M::N::C::Color#]N::C::Yellow
-
diff --git a/test/CodeCompletion/enum-switch-case.c b/test/CodeCompletion/enum-switch-case.c
deleted file mode 100644
index 264f46a0a3607..0000000000000
--- a/test/CodeCompletion/enum-switch-case.c
+++ /dev/null
@@ -1,45 +0,0 @@
-enum Color {
- Red,
- Orange,
- Yellow,
- Green,
- Blue,
- Indigo,
- Violet
-};
-
-void test(enum Color color) {
- switch (color) {
- case Red:
- break;
-
- case Yellow:
- break;
-
- case Green:
- break;
- }
-
- unsigned c2;
- switch (c2) {
- case
- }
-
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:19:10 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: Blue
- // CHECK-CC1-NEXT: Green
- // CHECK-CC1-NEXT: Indigo
- // CHECK-CC1-NEXT: Orange
- // CHECK-CC1-NEXT: Violet
-
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:25:10 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
- // CHECK-CC2: COMPLETION: Blue : [#enum Color#]Blue
- // CHECK-CC2-NEXT: COMPLETION: c2 : [#unsigned int#]c2
- // CHECK-CC2-NEXT: COMPLETION: color : [#enum Color#]color
- // CHECK-CC2-NEXT: COMPLETION: Green : [#enum Color#]Green
- // CHECK-CC2-NEXT: COMPLETION: Indigo : [#enum Color#]Indigo
- // CHECK-CC2-NEXT: COMPLETION: Orange : [#enum Color#]Orange
- // CHECK-CC2-NEXT: COMPLETION: Red : [#enum Color#]Red
- // CHECK-CC2-NEXT: COMPLETION: Pattern : [#size_t#]sizeof(<#expression-or-type#>)
- // CHECK-CC2-NEXT: COMPLETION: Violet : [#enum Color#]Violet
- // CHECK-CC2-NEXT: COMPLETION: Yellow : [#enum Color#]Yellow
diff --git a/test/CodeCompletion/enum-switch-case.cpp b/test/CodeCompletion/enum-switch-case.cpp
deleted file mode 100644
index 997845afe5845..0000000000000
--- a/test/CodeCompletion/enum-switch-case.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-namespace N {
- enum Color {
- Red,
- Orange,
- Yellow,
- Green,
- Blue,
- Indigo,
- Violet
- };
-}
-
-void test(enum N::Color color) {
- switch (color) {
- case N::Red:
- break;
-
- case N::Yellow:
- break;
-
- case
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:21:8 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: Blue : [#N::Color#]N::Blue
- // CHECK-CC1-NEXT: Green : [#N::Color#]N::Green
- // CHECK-CC1-NEXT: Indigo : [#N::Color#]N::Indigo
- // CHECK-CC1-NEXT: Orange : [#N::Color#]N::Orange
- // CHECK-CC1-NEXT: Violet : [#N::Color#]N::Violet
-
diff --git a/test/CodeCompletion/function-overloads.cpp b/test/CodeCompletion/function-overloads.cpp
deleted file mode 100644
index 11c864c281070..0000000000000
--- a/test/CodeCompletion/function-overloads.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-int f(int i, int j = 2, int k = 5);
-int f(float x, float y...);
-
-class A {
- public:
- A(int, int, int);
-};
-
-void test() {
- A a(f(1, 2, 3, 4), 2, 3);
-}
-
-
-namespace NS {
- struct X { };
- struct Y { Y(X); };
- template <class T = int>
- void g(X, Y);
-}
-
-void test_adl() {
- NS::X x;
- g(x, x);
-}
-
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:10:9 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:10:10 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:10:17 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:10:19 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:10:20 %s -o - | FileCheck -check-prefix=CHECK-CC3 %s
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:10:21 %s -o - | FileCheck -check-prefix=CHECK-CC4 %s
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:23:7 %s -o - | \
-// RUN: FileCheck -check-prefix=CHECK-CC5 %s
-// CHECK-CC1: OVERLOAD: [#int#]f(<#float x#>, float y)
-// CHECK-CC1: OVERLOAD: [#int#]f(<#int i#>)
-// CHECK-CC1-NOT, CHECK-CC2-NOT: OVERLOAD: A(
-// CHECK-CC2: OVERLOAD: [#int#]f(float x, float y)
-// CHECK-CC2-NOT: OVERLOAD: [#int#]f(int i)
-// CHECK-CC3: OVERLOAD: A(<#int#>, int, int)
-// CHECK-CC3: OVERLOAD: A(<#const A &#>)
-// CHECK-CC3: OVERLOAD: A(<#A &&#>)
-// CHECK-CC4: OVERLOAD: A(int, <#int#>, int)
-// CHECK-CC5: OVERLOAD: [#void#]g(X, <#Y#>)
diff --git a/test/CodeCompletion/function-templates.cpp b/test/CodeCompletion/function-templates.cpp
deleted file mode 100644
index cdbbf75838e1a..0000000000000
--- a/test/CodeCompletion/function-templates.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-namespace std {
- template<typename RandomAccessIterator>
- void sort(RandomAccessIterator first, RandomAccessIterator last);
-
- template<class X, class Y>
- X* dyn_cast(Y *Val);
-}
-
-class Foo {
-public:
- template<typename T> T &getAs();
-};
-
-void f() {
- std::sort(1, 2);
- Foo().getAs<int>();
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:15:8 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: dyn_cast<<#class X#>>(<#Y *Val#>)
- // CHECK-CC1: sort(<#RandomAccessIterator first#>, <#RandomAccessIterator last#>
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:16:9 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
- // CHECK-CC2: getAs<<#typename T#>>()
-)
-
diff --git a/test/CodeCompletion/functions.cpp b/test/CodeCompletion/functions.cpp
deleted file mode 100644
index aa303f29eb04f..0000000000000
--- a/test/CodeCompletion/functions.cpp
+++ /dev/null
@@ -1,8 +0,0 @@
-void f(int i, int j = 2, int k = 5);
-void f(float x, float y...);
-
-void test() {
- ::
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:5:5 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: f(<#int i#>{#, <#int j = 2#>{#, <#int k = 5#>#}#})
- // CHECK-CC1: f(<#float x#>, <#float y, ...#>)
diff --git a/test/CodeCompletion/ignore-ns-level-decls.cpp b/test/CodeCompletion/ignore-ns-level-decls.cpp
deleted file mode 100644
index 59cee6536a5dd..0000000000000
--- a/test/CodeCompletion/ignore-ns-level-decls.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-namespace ns {
- struct bar {
- };
-
- struct baz {
- };
-
- int func(int a, bar b, baz c);
-}
-
-void test() {
- ns::
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:12:7 %s -o - | FileCheck %s --check-prefix=CHECK-1
-// CHECK-1-DAG: COMPLETION: bar : bar
-// CHECK-1-DAG: COMPLETION: baz : baz
-// CHECK-1-DAG: COMPLETION: func : [#int#]func(<#int a#>, <#bar b#>, <#baz c#>)
-
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:12:7 -no-code-completion-ns-level-decls %s -o - | FileCheck %s --allow-empty --check-prefix=CHECK-EMPTY
-// CHECK-EMPTY-NOT: COMPLETION: bar : bar
-// CHECK-EMPTY: {{^}}{{$}}
-}
diff --git a/test/CodeCompletion/included-files.cpp b/test/CodeCompletion/included-files.cpp
deleted file mode 100644
index ba153e6e27548..0000000000000
--- a/test/CodeCompletion/included-files.cpp
+++ /dev/null
@@ -1,35 +0,0 @@
-// RUN: rm -rf %t && mkdir %t && cp %s %t/main.cc && mkdir %t/a
-// RUN: touch %t/foo.h && touch %t/foo.cc && touch %t/a/foosys %t/a/foosys.h
-
-// Quoted string shows header-ish files from CWD, and all from system.
-#include "foo.h"
-// RUN: %clang -fsyntax-only -isystem %t/a -Xclang -code-completion-at=%t/main.cc:5:13 %t/main.cc | FileCheck -check-prefix=CHECK-1 %s
-// CHECK-1-NOT: foo.cc"
-// CHECK-1: foo.h"
-// CHECK-1: foosys"
-
-// Quoted string with dir shows header-ish files in that subdir.
-#include "a/foosys"
-// RUN: %clang -fsyntax-only -isystem %t/a -Xclang -code-completion-at=%t/main.cc:12:13 %t/main.cc | FileCheck -check-prefix=CHECK-2 %s
-// CHECK-2-NOT: foo.h"
-// CHECK-2: foosys.h"
-// CHECK-2-NOT: foosys"
-
-// Angled shows headers from system dirs.
-#include <foosys>
-// RUN: %clang -fsyntax-only -isystem %t/a -Xclang -code-completion-at=%t/main.cc:19:13 %t/main.cc | FileCheck -check-prefix=CHECK-3 %s
-// CHECK-3-NOT: foo.cc>
-// CHECK-3-NOT: foo.h>
-// CHECK-3: foosys>
-
-// With -I rather than -isystem, the header extension is required.
-#include <foosys>
-// RUN: %clang -fsyntax-only -I %t/a -Xclang -code-completion-at=%t/main.cc:26:13 %t/main.cc | FileCheck -check-prefix=CHECK-4 %s
-// CHECK-4-NOT: foo.cc>
-// CHECK-4-NOT: foo.h>
-// CHECK-4-NOT: foosys>
-
-// Backslash handling.
-#include "a\foosys"
-// RUN: %clang -fsyntax-only -isystem %t/a -Xclang -code-completion-at=%t/main.cc:33:13 %t/main.cc -fms-compatibility | FileCheck -check-prefix=CHECK-5 %s
-// CHECK-5: foosys.h"
diff --git a/test/CodeCompletion/incomplete-ret-type.cpp b/test/CodeCompletion/incomplete-ret-type.cpp
deleted file mode 100644
index 669105e1416a8..0000000000000
--- a/test/CodeCompletion/incomplete-ret-type.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-struct IncompleteType;
-int int_value;
-typedef int int_typedef;
-
-void f(in);
-IncompleteType g(in);
-// Completing should produce results even if types are incomplete.
-// Note that clang is expected to return an error code since 'in' does not resolve.
-// RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:5:9 %s -o - | FileCheck %s
-// RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:6:19 %s -o - | FileCheck %s
-// CHECK: COMPLETION: int{{$}}
-// CHECK: COMPLETION: int_typedef
-// CHECK: COMPLETION: int_value
diff --git a/test/CodeCompletion/inside-macros.cpp b/test/CodeCompletion/inside-macros.cpp
deleted file mode 100644
index dc40c6ad318c0..0000000000000
--- a/test/CodeCompletion/inside-macros.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-#define ID(X) X
-
-void test(bool input_var) {
- ID(input_var) = true;
- // Check that input_var shows up when completing at the start, in the middle
- // and at the end of the identifier.
- //
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:4:6 %s -o - | FileCheck %s
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:4:8 %s -o - | FileCheck %s
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:4:15 %s -o - | FileCheck %s
-
- // CHECK: input_var
-}
diff --git a/test/CodeCompletion/keywords.cpp b/test/CodeCompletion/keywords.cpp
deleted file mode 100644
index 6e5824c2f1833..0000000000000
--- a/test/CodeCompletion/keywords.cpp
+++ /dev/null
@@ -1,79 +0,0 @@
-int function(int x) {
- return x + 1;
-}
-
-int variable = 0;
-
-class Class {
-public:
- Class() { }
-
- int method(int x) {
- return x + 1;
- }
-
- virtual void virtualMethod() {
- }
-
- static void staticMethod() {
- }
-
- static int staticVar;
-};
-
-class SubClass : public Class {
- void virtualMethod() override final {
- }
-};
-
-struct Struct {
-};
-
-// RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:1:1 %s | FileCheck --check-prefix=CHECK-TOP-LEVEL %s
-// RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:5:1 %s | FileCheck --check-prefix=CHECK-TOP-LEVEL %s
-// RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:11:1 %s | FileCheck --check-prefix=CHECK-TOP-LEVEL %s
-// CHECK-TOP-LEVEL: alignas(<#expression#>)
-// CHECK-TOP-LEVEL: constexpr
-// CHECK-TOP-LEVEL: static_assert(<#expression#>, <#message#>)
-// CHECK-TOP-LEVEL: thread_local
-// CHECK-TOP-LEVEL-NOT: final
-// CHECK-TOP-LEVEL-NOT: noexcept
-
-// RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:1:14 %s | FileCheck --check-prefix=CHECK-PARAM %s
-// CHECK-PARAM-NOT: alignas
-// CHECK-PARAM-NOT: constexpr
-// CHECK-PARAM-NOT: final
-// CHECK-PARAM-NOT: thread_local
-
-// RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:21:10 %s | FileCheck --check-prefix=CHECK-STATICVAR1 %s
-// CHECK-STATICVAR1: constexpr
-// CHECK-STATICVAR1: thread_local
-
-// RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:7:13 %s | FileCheck --check-prefix=CHECK-CLASS-QUALIFIER %s
-// RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:24:16 %s | FileCheck --check-prefix=CHECK-CLASS-QUALIFIER %s
-// RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:29:15 %s | FileCheck --check-prefix=CHECK-CLASS-QUALIFIER %s
-// CHECK-CLASS-QUALIFIER: final
-
-// RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:1:21 %s | FileCheck --check-prefix=CHECK-FUNCTION-QUALIFIER %s
-// RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:9:11 %s | FileCheck --check-prefix=CHECK-FUNCTION-QUALIFIER %s
-// RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:18:30 %s | FileCheck --check-prefix=CHECK-FUNCTION-QUALIFIER %s
-// CHECK-FUNCTION-QUALIFIER: noexcept
-// CHECK-FUNCTION-QUALIFIER-NOT: final
-// CHECK-FUNCTION-QUALIFIER-NOT: override
-
-// RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:11:21 %s | FileCheck --check-prefix=CHECK-METHOD-QUALIFIER %s
-// RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:15:32 %s | FileCheck --check-prefix=CHECK-METHOD-QUALIFIER %s
-// RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:25:24 %s | FileCheck --check-prefix=CHECK-METHOD-QUALIFIER %s
-// CHECK-METHOD-QUALIFIER: final
-// CHECK-METHOD-QUALIFIER: noexcept
-// CHECK-METHOD-QUALIFIER: override
-
-// RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:25:33 %s | FileCheck --check-prefix=CHECK-OVERRIDE-SPECIFIED %s
-// CHECK-OVERRIDE-SPECIFIED: final
-// CHECK-OVERRIDE-SPECIFIED: noexcept
-// CHECK-OVERRIDE-SPECIFIED-NOT: override
-
-// RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:25:39 %s | FileCheck --check-prefix=CHECK-OVERRIDE-FINAL-SPECIFIED %s
-// CHECK-OVERRIDE-FINAL-SPECIFIED: noexcept
-// CHECK-OVERRIDE-FINAL-SPECIFIED-NOT: final
-// CHECK-OVERRIDE-FINAL-SPECIFIED-NOT: override
diff --git a/test/CodeCompletion/macros-in-modules.c b/test/CodeCompletion/macros-in-modules.c
deleted file mode 100644
index f10743af25731..0000000000000
--- a/test/CodeCompletion/macros-in-modules.c
+++ /dev/null
@@ -1,11 +0,0 @@
-// RUN: rm -rf %t && mkdir %t
-// RUN: echo 'module Foo { header "foo.h" }' > %t/module.modulemap
-// RUN: echo '#define FOO_MACRO 42' > %t/foo.h
-// RUN: c-index-test -code-completion-at=%s:9:1 -I %t %s | FileCheck %s
-// RUN: c-index-test -code-completion-at=%s:9:1 -I %t -fmodules -fmodules-cache-path=%t %s | FileCheck %s
-
-#include "foo.h"
-int x =
-/*here*/1;
-
-// CHECK: FOO_MACRO
diff --git a/test/CodeCompletion/macros-in-modules.m b/test/CodeCompletion/macros-in-modules.m
deleted file mode 100644
index d845c26a74cb9..0000000000000
--- a/test/CodeCompletion/macros-in-modules.m
+++ /dev/null
@@ -1,10 +0,0 @@
-// RUN: rm -rf %t && mkdir %t
-// RUN: echo 'module Foo { header "foo.h" }' > %t/module.modulemap
-// RUN: echo '#define FOO_MACRO 42' > %t/foo.h
-// RUN: c-index-test -code-completion-at=%s:8:1 -I %t -fmodules-cache-path=%t -fmodules %s | FileCheck %s
-
-@import Foo;
-int x =
-/*here*/1;
-
-// CHECK: FOO_MACRO
diff --git a/test/CodeCompletion/macros.c b/test/CodeCompletion/macros.c
deleted file mode 100644
index 3cbad800202ca..0000000000000
--- a/test/CodeCompletion/macros.c
+++ /dev/null
@@ -1,46 +0,0 @@
-enum Color {
- Red, Green, Blue
-};
-
-struct Point {
- float x, y, z;
- enum Color color;
-};
-
-void test(struct Point *p) {
- // RUN: %clang_cc1 -include %S/Inputs/macros.h -fsyntax-only -code-completion-macros -code-completion-at=%s:12:14 %s -o - | FileCheck -check-prefix=CC1 %s
- switch (p->IDENTITY(color)) {
- // RUN: %clang_cc1 -include %S/Inputs/macros.h -fsyntax-only -code-completion-macros -code-completion-at=%s:14:10 %s -o - | FileCheck -check-prefix=CC2 %s
- case
- }
- // RUN: %clang_cc1 -include %S/Inputs/macros.h -fsyntax-only -code-completion-macros -code-completion-at=%s:17:8 %s -o - | FileCheck -check-prefix=CC3 %s
-#ifdef Q
-#endif
-
- // Run the same tests, this time with macros loaded from the PCH file.
- // RUN: %clang_cc1 -emit-pch -o %t %S/Inputs/macros.h
- // RUN: %clang_cc1 -include-pch %t -fsyntax-only -code-completion-macros -code-completion-at=%s:12:14 %s -o - | FileCheck -check-prefix=CC1 %s
- // RUN: %clang_cc1 -include-pch %t -fsyntax-only -code-completion-macros -code-completion-at=%s:14:10 %s -o - | FileCheck -check-prefix=CC2 %s
- // RUN: %clang_cc1 -include-pch %t -fsyntax-only -code-completion-macros -code-completion-at=%s:17:8 %s -o - | FileCheck -check-prefix=CC3 %s
-
- // CC1: color
- // CC1: x
- // CC1: y
- // CC1: z
-
- // CC2: BAR(<#X#>, <#Y#>)
- // CC2: Blue
- // CC2: FOO
- // CC2: Green
- // CC2: IDENTITY(<#X#>)
- // CC2: MACRO_WITH_HISTORY(<#X#>, <#Y#>)
- // CC2: Red
- // CC2: WIBBLE
-
- // CC3: BAR
- // CC3: DEAD_MACRO
- // CC3: FOO
- // CC3: IDENTITY
- // CC3: MACRO_WITH_HISTORY
- // CC3: WIBBLE
-}
diff --git a/test/CodeCompletion/member-access.c b/test/CodeCompletion/member-access.c
deleted file mode 100644
index 72afbf2ff9479..0000000000000
--- a/test/CodeCompletion/member-access.c
+++ /dev/null
@@ -1,31 +0,0 @@
-struct Point {
- float x;
- float y;
- float z;
-};
-
-void test(struct Point *p) {
- p->
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:8:6 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: x
- // CHECK-CC1: y
- // CHECK-CC1: z
-}
-
-struct Point2 {
- float x;
-};
-
-void test2(struct Point2 p) {
- p->
-}
-
-void test3(struct Point2 *p) {
- p.
-}
-
-// RUN: %clang_cc1 -fsyntax-only -code-completion-with-fixits -code-completion-at=%s:20:6 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
-// CHECK-CC2: x (requires fix-it: {20:4-20:6} to ".")
-
-// RUN: %clang_cc1 -fsyntax-only -code-completion-with-fixits -code-completion-at=%s:24:5 %s -o - | FileCheck -check-prefix=CHECK-CC3 %s
-// CHECK-CC3: x (requires fix-it: {24:4-24:5} to "->")
diff --git a/test/CodeCompletion/member-access.cpp b/test/CodeCompletion/member-access.cpp
deleted file mode 100644
index 003d224fbe243..0000000000000
--- a/test/CodeCompletion/member-access.cpp
+++ /dev/null
@@ -1,212 +0,0 @@
-struct Base1 {
- int member1;
- float member2;
-};
-
-struct Base2 {
- int member1;
- double member3;
- void memfun1(int);
-};
-
-struct Base3 : Base1, Base2 {
- void memfun1(float);
- void memfun1(double) const;
- void memfun2(int);
-};
-
-struct Derived : Base3 {
- template <typename T> Derived(T);
- Derived(int);
- int member4;
- int memfun3(int);
-};
-
-class Proxy {
-public:
- Derived *operator->() const;
-};
-
-void test(const Proxy &p) {
- p->
-}
-
-struct Test1 {
- Base1 b;
-
- static void sfunc() {
- b. // expected-error {{invalid use of member 'b' in static member function}}
- }
-};
-
-struct Foo {
- void foo() const;
- static void foo(bool);
-};
-
-struct Bar {
- void foo(bool param) {
- Foo::foo( );// unresolved member expression with an implicit base
- }
-};
-
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:31:6 %s -o - | FileCheck -check-prefix=CHECK-CC1 --implicit-check-not="Derived : Derived(" %s
- // CHECK-CC1: Base1 (InBase) : Base1::
- // CHECK-CC1: member1 (InBase) : [#int#][#Base1::#]member1
- // CHECK-CC1: member1 (InBase) : [#int#][#Base2::#]member1
- // CHECK-CC1: member2 (InBase) : [#float#][#Base1::#]member2
- // CHECK-CC1: member3 (InBase)
- // CHECK-CC1: member4
- // CHECK-CC1: memfun1 (InBase) : [#void#][#Base3::#]memfun1(<#float#>)
- // CHECK-CC1: memfun1 (InBase) : [#void#][#Base3::#]memfun1(<#double#>)[# const#]
- // CHECK-CC1: memfun1 (Hidden,InBase) : [#void#]Base2::memfun1(<#int#>)
- // CHECK-CC1: memfun2 (InBase) : [#void#][#Base3::#]memfun2(<#int#>)
- // CHECK-CC1: memfun3 : [#int#]memfun3(<#int#>)
-
-// Make sure this doesn't crash
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:38:7 %s -verify
-
-// Make sure this also doesn't crash
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:49:14 %s
-
-
-template<typename T>
-class BaseTemplate {
-public:
- T baseTemplateFunction();
-
- T baseTemplateField;
-};
-
-template<typename T, typename S>
-class TemplateClass: public Base1 , public BaseTemplate<T> {
-public:
- T function() { }
- T field;
-
- void overload1(const T &);
- void overload1(const S &);
-};
-
-template<typename T, typename S>
-void completeDependentMembers(TemplateClass<T, S> &object,
- TemplateClass<int, S> *object2) {
- object.field;
- object2->field;
-// CHECK-CC2: baseTemplateField (InBase) : [#T#][#BaseTemplate<T>::#]baseTemplateField
-// CHECK-CC2: baseTemplateFunction (InBase) : [#T#][#BaseTemplate<T>::#]baseTemplateFunction()
-// CHECK-CC2: field : [#T#]field
-// CHECK-CC2: function : [#T#]function()
-// CHECK-CC2: member1 (InBase) : [#int#][#Base1::#]member1
-// CHECK-CC2: member2 (InBase) : [#float#][#Base1::#]member2
-// CHECK-CC2: overload1 : [#void#]overload1(<#const T &#>)
-// CHECK-CC2: overload1 : [#void#]overload1(<#const S &#>)
-
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:94:10 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:95:12 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
-}
-
-
-void completeDependentSpecializedMembers(TemplateClass<int, double> &object,
- TemplateClass<int, double> *object2) {
- object.field;
- object2->field;
-// CHECK-CC3: baseTemplateField (InBase) : [#int#][#BaseTemplate<int>::#]baseTemplateField
-// CHECK-CC3: baseTemplateFunction (InBase) : [#int#][#BaseTemplate<int>::#]baseTemplateFunction()
-// CHECK-CC3: field : [#int#]field
-// CHECK-CC3: function : [#int#]function()
-// CHECK-CC3: member1 (InBase) : [#int#][#Base1::#]member1
-// CHECK-CC3: member2 (InBase) : [#float#][#Base1::#]member2
-// CHECK-CC3: overload1 : [#void#]overload1(<#const int &#>)
-// CHECK-CC3: overload1 : [#void#]overload1(<#const double &#>)
-
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:112:10 %s -o - | FileCheck -check-prefix=CHECK-CC3 %s
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:113:12 %s -o - | FileCheck -check-prefix=CHECK-CC3 %s
-}
-
-template <typename T>
-class Template {
-public:
- BaseTemplate<int> o1;
- BaseTemplate<T> o2;
-
- void function() {
- o1.baseTemplateField;
-// CHECK-CC4: BaseTemplate : BaseTemplate::
-// CHECK-CC4: baseTemplateField : [#int#]baseTemplateField
-// CHECK-CC4: baseTemplateFunction : [#int#]baseTemplateFunction()
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:134:8 %s -o - | FileCheck -check-prefix=CHECK-CC4 %s
- o2.baseTemplateField;
-// CHECK-CC5: BaseTemplate : BaseTemplate::
-// CHECK-CC5: baseTemplateField : [#T#]baseTemplateField
-// CHECK-CC5: baseTemplateFunction : [#T#]baseTemplateFunction()
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:139:8 %s -o - | FileCheck -check-prefix=CHECK-CC5 %s
- this->o1;
-// CHECK-CC6: [#void#]function()
-// CHECK-CC6: o1 : [#BaseTemplate<int>#]o1
-// CHECK-CC6: o2 : [#BaseTemplate<T>#]o2
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:144:11 %s -o - | FileCheck -check-prefix=CHECK-CC6 %s
- }
-
- static void staticFn(T &obj);
-
- struct Nested { };
-};
-
-template<typename T>
-void dependentColonColonCompletion() {
- Template<T>::staticFn();
-// CHECK-CC7: function : [#void#]function()
-// CHECK-CC7: Nested : Nested
-// CHECK-CC7: o1 : [#BaseTemplate<int>#]o1
-// CHECK-CC7: o2 : [#BaseTemplate<T>#]o2
-// CHECK-CC7: staticFn : [#void#]staticFn(<#T &obj#>)
-// CHECK-CC7: Template : Template
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:158:16 %s -o - | FileCheck -check-prefix=CHECK-CC7 %s
- typename Template<T>::Nested m;
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:166:25 %s -o - | FileCheck -check-prefix=CHECK-CC7 %s
-}
-
-class Proxy2 {
-public:
- Derived *operator->() const;
- int member5;
-};
-
-void test2(const Proxy2 &p) {
- p->
-}
-
-void test3(const Proxy2 &p) {
- p.
-}
-
-// RUN: %clang_cc1 -fsyntax-only -code-completion-with-fixits -code-completion-at=%s:177:6 %s -o - | FileCheck -check-prefix=CHECK-CC8 --implicit-check-not="Derived : Derived(" %s
-// CHECK-CC8: Base1 (InBase) : Base1::
-// CHECK-CC8: member1 (InBase) : [#int#][#Base1::#]member1
-// CHECK-CC8: member1 (InBase) : [#int#][#Base2::#]member1
-// CHECK-CC8: member2 (InBase) : [#float#][#Base1::#]member2
-// CHECK-CC8: member3 (InBase) : [#double#][#Base2::#]member3
-// CHECK-CC8: member4 : [#int#]member4
-// CHECK-CC8: member5 : [#int#]member5 (requires fix-it: {177:4-177:6} to ".")
-// CHECK-CC8: memfun1 (InBase) : [#void#][#Base3::#]memfun1(<#float#>)
-// CHECK-CC8: memfun1 (InBase) : [#void#][#Base3::#]memfun1(<#double#>)[# const#]
-// CHECK-CC8: memfun1 (Hidden,InBase) : [#void#]Base2::memfun1(<#int#>)
-// CHECK-CC8: memfun2 (InBase) : [#void#][#Base3::#]memfun2(<#int#>)
-// CHECK-CC8: memfun3 : [#int#]memfun3(<#int#>)
-// CHECK-CC8: operator-> : [#Derived *#]operator->()[# const#] (requires fix-it: {177:4-177:6} to ".")
-
-// RUN: %clang_cc1 -fsyntax-only -code-completion-with-fixits -code-completion-at=%s:181:6 %s -o - | FileCheck -check-prefix=CHECK-CC9 --implicit-check-not="Derived : Derived(" %s
-// CHECK-CC9: Base1 (InBase) : Base1::
-// CHECK-CC9: member1 (InBase) : [#int#][#Base1::#]member1 (requires fix-it: {181:4-181:5} to "->")
-// CHECK-CC9: member1 (InBase) : [#int#][#Base2::#]member1 (requires fix-it: {181:4-181:5} to "->")
-// CHECK-CC9: member2 (InBase) : [#float#][#Base1::#]member2 (requires fix-it: {181:4-181:5} to "->")
-// CHECK-CC9: member3 (InBase) : [#double#][#Base2::#]member3 (requires fix-it: {181:4-181:5} to "->")
-// CHECK-CC9: member4 : [#int#]member4 (requires fix-it: {181:4-181:5} to "->")
-// CHECK-CC9: member5 : [#int#]member5
-// CHECK-CC9: memfun1 (InBase) : [#void#][#Base3::#]memfun1(<#float#>) (requires fix-it: {181:4-181:5} to "->")
-// CHECK-CC9: memfun1 (InBase) : [#void#][#Base3::#]memfun1(<#double#>)[# const#] (requires fix-it: {181:4-181:5} to "->")
-// CHECK-CC9: memfun1 (Hidden,InBase) : [#void#]Base2::memfun1(<#int#>) (requires fix-it: {181:4-181:5} to "->")
-// CHECK-CC9: memfun2 (InBase) : [#void#][#Base3::#]memfun2(<#int#>) (requires fix-it: {181:4-181:5} to "->")
-// CHECK-CC9: memfun3 : [#int#]memfun3(<#int#>) (requires fix-it: {181:4-181:5} to "->")
-// CHECK-CC9: operator-> : [#Derived *#]operator->()[# const#]
diff --git a/test/CodeCompletion/namespace-alias.cpp b/test/CodeCompletion/namespace-alias.cpp
deleted file mode 100644
index bd4aef4137996..0000000000000
--- a/test/CodeCompletion/namespace-alias.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-namespace N4 {
- namespace N3 { }
-}
-
-class N3;
-
-namespace N2 {
- namespace I1 { }
- namespace I4 = I1;
- namespace I5 { }
- namespace I1 { }
-
- namespace New =
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:13:18 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: I1
- // CHECK-CC1: I4
- // CHECK-CC1: I5
- // CHECK-CC1: N2
- // CHECK-CC1-NEXT: N4
-
diff --git a/test/CodeCompletion/namespace.cpp b/test/CodeCompletion/namespace.cpp
deleted file mode 100644
index 6024a3494aaa3..0000000000000
--- a/test/CodeCompletion/namespace.cpp
+++ /dev/null
@@ -1,14 +0,0 @@
-namespace N3 {
-}
-
-namespace N2 {
- namespace I1 { }
- namespace I4 = I1;
- namespace I5 { }
- namespace I1 { }
-
- namespace
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:10:13 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: I1
- // CHECK-CC1-NEXT: I5
-
diff --git a/test/CodeCompletion/nested-name-specifier.cpp b/test/CodeCompletion/nested-name-specifier.cpp
deleted file mode 100644
index 8789635bd598c..0000000000000
--- a/test/CodeCompletion/nested-name-specifier.cpp
+++ /dev/null
@@ -1,17 +0,0 @@
-namespace N {
- struct A { };
- namespace M {
- struct C { };
- };
-}
-
-namespace N {
- struct B { };
-}
-
-N::
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:12:4 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
-// CHECK-CC1: A
-// CHECK-CC1: B
-// CHECK-CC1: M
-
diff --git a/test/CodeCompletion/objc-expr.m b/test/CodeCompletion/objc-expr.m
deleted file mode 100644
index 4296cc9a8c29b..0000000000000
--- a/test/CodeCompletion/objc-expr.m
+++ /dev/null
@@ -1,17 +0,0 @@
-// Note: the run lines follow all tests, since line/column matter here
-
-id testCompleteAfterAtSign() {
- return @"";
-}
-
-// RUN: %clang_cc1 -fsyntax-only -code-completion-patterns -code-completion-at=%s:4:11 %s -fno-const-strings -o - | FileCheck -check-prefix=CHECK-AT %s
-// CHECK-AT: COMPLETION: Pattern : [#NSString *#]"<#string#>"
-// CHECK-AT: COMPLETION: Pattern : [#id#](<#expression#>)
-// CHECK-AT: COMPLETION: Pattern : [#NSArray *#][<#objects, ...#>]
-// CHECK-AT: COMPLETION: Pattern : [#char[]#]encode(<#type-name#>)
-// CHECK-AT: COMPLETION: Pattern : [#Protocol *#]protocol(<#protocol-name#>)
-// CHECK-AT: COMPLETION: Pattern : [#SEL#]selector(<#selector#>)
-// CHECK-AT: COMPLETION: Pattern : [#NSDictionary *#]{<#key#>: <#object, ...#>}
-
-// RUN: %clang_cc1 -fsyntax-only -code-completion-patterns -code-completion-at=%s:4:11 %s -fconst-strings -o - | FileCheck -check-prefix=CHECK-CONST-STRINGS %s
-// CHECK-CONST-STRINGS: COMPLETION: Pattern : [#const char[]#]encode(<#type-name#>)
diff --git a/test/CodeCompletion/objc-message.m b/test/CodeCompletion/objc-message.m
deleted file mode 100644
index a7b111f59ed7a..0000000000000
--- a/test/CodeCompletion/objc-message.m
+++ /dev/null
@@ -1,35 +0,0 @@
-// Note: the run lines follow their respective tests, since line/column
-// matter in this test.
-
-@protocol FooTestProtocol
-+ protocolClassMethod;
-- protocolInstanceMethod;
-@end
-@interface Foo <FooTestProtocol> {
- void *isa;
-}
-+ (int)classMethod1:a withKeyword:b;
-+ (void)classMethod2;
-+ new;
-- instanceMethod1;
-@end
-
-@interface Foo (FooTestCategory)
-+ categoryClassMethod;
-- categoryInstanceMethod;
-@end
-
-void func() {
- Foo *obj = [Foo new];
- [obj xx];
-}
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:23:19 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
-// CHECK-CC1: categoryClassMethod
-// CHECK-CC1: classMethod1:withKeyword:
-// CHECK-CC1: classMethod2
-// CHECK-CC1: new
-// CHECK-CC1: protocolClassMethod
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:24:8 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
-// CHECK-CC2: categoryInstanceMethod
-// CHECK-CC2: instanceMethod1
-// CHECK-CC2: protocolInstanceMethod
diff --git a/test/CodeCompletion/objc-message.mm b/test/CodeCompletion/objc-message.mm
deleted file mode 100644
index 33f392f5e0dc5..0000000000000
--- a/test/CodeCompletion/objc-message.mm
+++ /dev/null
@@ -1,46 +0,0 @@
-// Note: the run lines follow their respective tests, since line/column
-// matter in this test.
-
-@protocol FooTestProtocol
-+ protocolClassMethod;
-- protocolInstanceMethod;
-@end
-@interface Foo <FooTestProtocol> {
- void *isa;
-}
-+ (int)classMethod1:a withKeyword:b;
-+ (void)classMethod2;
-+ new;
-- instanceMethod1;
-@end
-
-@interface Foo (FooTestCategory)
-+ categoryClassMethod;
-- categoryInstanceMethod;
-@end
-
-template<typename T> struct RetainPtr {
- template <typename U> struct RemovePointer { typedef U Type; };
- template <typename U> struct RemovePointer<U*> { typedef U Type; };
-
- typedef typename RemovePointer<T>::Type* PtrType;
-
- explicit operator PtrType() const;
-};
-
-void func(const RetainPtr<Foo>& ptr)
-{
- [ptr instanceMethod1];
-}
-
-void func(const RetainPtr<id <FooTestProtocol>>& ptr)
-{
- [ptr instanceMethod1];
-}
-
-// RUN: %clang_cc1 -fsyntax-only -std=c++11 -code-completion-at=%s:33:8 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
-// CHECK-CC1: categoryInstanceMethod : [#id#]categoryInstanceMethod
-// CHECK-CC1: instanceMethod1 : [#id#]instanceMethod1
-// CHECK-CC1: protocolInstanceMethod (InBase) : [#id#]protocolInstanceMethod
-// RUN: %clang_cc1 -fsyntax-only -std=c++11 -code-completion-at=%s:38:8 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
-// CHECK-CC2: protocolInstanceMethod : [#id#]protocolInstanceMethod
diff --git a/test/CodeCompletion/objc-protocol-member-access.m b/test/CodeCompletion/objc-protocol-member-access.m
deleted file mode 100644
index 9e769d5afa86c..0000000000000
--- a/test/CodeCompletion/objc-protocol-member-access.m
+++ /dev/null
@@ -1,24 +0,0 @@
-// Note: the run lines follow their respective tests, since line/column
-// matter in this test.
-
-@protocol Bar
-@property (readonly) int bar;
-@end
-
-@protocol Foo <Bar>
-
-@property (nonatomic, readonly) int foo;
-- (void)foobar: (int)x;
-
-@end
-
-int getFoo(id object) {
- id<Foo> modelObject = (id<Foo>)object;
- int foo = modelObject.;
- return foo;
-}
-
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:17:25 %s -o - | FileCheck %s
-// CHECK: bar (InBase) : [#int#]bar
-// CHECK: foo (InBase) : [#int#]foo
-// CHECK-NOT: foobar
diff --git a/test/CodeCompletion/operator.cpp b/test/CodeCompletion/operator.cpp
deleted file mode 100644
index 4a57f0ac58ec9..0000000000000
--- a/test/CodeCompletion/operator.cpp
+++ /dev/null
@@ -1,17 +0,0 @@
-class T { };
-
-typedef int Integer;
-
-namespace N { }
-
-void f() {
- typedef float Float;
-
- operator
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:10:12 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: +
- // CHECK-CC1: Float
- // CHECK-CC1: Integer
- // CHECK-CC1: N
- // CHECK-CC1: short
- // CHECK-CC1: T
diff --git a/test/CodeCompletion/ordinary-name-cxx11.cpp b/test/CodeCompletion/ordinary-name-cxx11.cpp
deleted file mode 100644
index 0125ffbbb3cf0..0000000000000
--- a/test/CodeCompletion/ordinary-name-cxx11.cpp
+++ /dev/null
@@ -1,260 +0,0 @@
-struct X { int x; };
-void z(int);
-typedef struct t TYPEDEF;
-
-void foo() {
- int y = 17;
- // RUN: %clang_cc1 -fsyntax-only -fcxx-exceptions -code-completion-patterns -code-completion-at=%s:6:14 -std=gnu++11 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: COMPLETION: bool
- // CHECK-CC1-NEXT: COMPLETION: char
- // CHECK-CC1-NEXT: COMPLETION: char16
- // CHECK-CC1-NEXT: COMPLETION: char32
- // CHECK-CC1-NEXT: COMPLETION: class
- // CHECK-CC1-NEXT: COMPLETION: const
- // CHECK-CC1-NEXT: COMPLETION: Pattern : const_cast<<#type#>>(<#expression#>)
- // CHECK-CC1: COMPLETION: Pattern : [#void#]delete <#expression#>
- // CHECK-CC1-NEXT: COMPLETION: Pattern : [#void#]delete [] <#expression#>
- // CHECK-CC1-NEXT: COMPLETION: Pattern : do{<#statements#>
- // CHECK-CC1: COMPLETION: double
- // CHECK-CC1-NEXT: COMPLETION: Pattern : dynamic_cast<<#type#>>(<#expression#>)
- // CHECK-CC1-NEXT: COMPLETION: enum
- // CHECK-CC1-NEXT: COMPLETION: extern
- // CHECK-CC1-NEXT: COMPLETION: Pattern : [#bool#]false
- // CHECK-CC1-NEXT: COMPLETION: float
- // CHECK-CC1-NEXT: COMPLETION: foo : [#void#]foo()
- // CHECK-CC1-NEXT: COMPLETION: Pattern : for(<#init-statement#>;<#condition#>;<#inc-expression#>){
- // CHECK-CC1: COMPLETION: Pattern : goto <#label#>
- // CHECK-CC1-NEXT: COMPLETION: Pattern : if(<#condition#>){<#statements#>
- // CHECK-CC1: COMPLETION: int
- // CHECK-CC1-NEXT: COMPLETION: long
- // CHECK-CC1-NEXT: COMPLETION: Pattern : new <#type#>(<#expressions#>)
- // CHECK-CC1-NEXT: COMPLETION: Pattern : new <#type#>[<#size#>](<#expressions#>)
- // CHECK-CC1-NEXT: COMPLETION: Pattern : [#bool#]noexcept(<#expression#>)
- // CHECK-CC1-NEXT: COMPLETION: Pattern : [#std::nullptr_t#]nullptr
- // CHECK-CC1-NEXT: COMPLETION: operator
- // CHECK-CC1-NEXT: COMPLETION: Pattern : reinterpret_cast<<#type#>>(<#expression#>)
- // CHECK-CC1-NEXT: COMPLETION: Pattern : return
- // CHECK-CC1-NEXT: COMPLETION: short
- // CHECK-CC1-NEXT: COMPLETION: signed
- // CHECK-CC1-NEXT: COMPLETION: Pattern : [#size_t#]sizeof(<#expression-or-type#>)
- // CHECK-CC1-NEXT: COMPLETION: Pattern : [#size_t#]sizeof...(<#parameter-pack#>)
- // CHECK-CC1-NEXT: COMPLETION: static
- // CHECK-CC1-NEXT: COMPLETION: Pattern : static_assert(<#expression#>, <#message#>)
- // CHECK-CC1-NEXT: COMPLETION: Pattern : static_cast<<#type#>>(<#expression#>)
- // CHECK-CC1-NEXT: COMPLETION: struct
- // CHECK-CC1-NEXT: COMPLETION: Pattern : switch(<#condition#>){
- // CHECK-CC1: COMPLETION: t : t
- // CHECK-CC1-NEXT: COMPLETION: thread_local
- // CHECK-CC1-NEXT: COMPLETION: Pattern : [#void#]throw <#expression#>
- // CHECK-CC1-NEXT: COMPLETION: Pattern : [#bool#]true
- // CHECK-CC1-NEXT: COMPLETION: Pattern : try{<#statements#>
- // CHECK-CC1: COMPLETION: TYPEDEF : TYPEDEF
- // CHECK-CC1-NEXT: COMPLETION: Pattern : typedef <#type#> <#name#>
- // CHECK-CC1-NEXT: COMPLETION: Pattern : [#std::type_info#]typeid(<#expression-or-type#>)
- // CHECK-CC1-NEXT: COMPLETION: Pattern : typename <#qualifier#>::<#name#>
- // CHECK-CC1-NEXT: COMPLETION: Pattern : typeof <#expression#>
- // CHECK-CC1-NEXT: COMPLETION: Pattern : typeof(<#type#>)
- // CHECK-CC1-NEXT: COMPLETION: union
- // CHECK-CC1-NEXT: COMPLETION: unsigned
- // CHECK-CC1-NEXT: COMPLETION: Pattern : using namespace <#identifier#>
- // CHECK-CC1-NEXT: COMPLETION: void
- // CHECK-CC1-NEXT: COMPLETION: volatile
- // CHECK-CC1-NEXT: COMPLETION: wchar_t
- // CHECK-CC1-NEXT: COMPLETION: Pattern : while(<#condition#>){<#statements#>
- // CHECK-CC1: COMPLETION: X : X
- // CHECK-CC1-NEXT: COMPLETION: y : [#int#]y
- // CHECK-CC1-NEXT: COMPLETION: z : [#void#]z(<#int#>)
-
- // RUN: %clang_cc1 -fsyntax-only -code-completion-patterns -code-completion-at=%s:4:1 -std=gnu++11 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
- // CHECK-CC2: COMPLETION: Pattern : asm(<#string-literal#>)
- // CHECK-CC2: COMPLETION: auto
- // CHECK-CC2-NEXT: COMPLETION: bool
- // CHECK-CC2-NEXT: COMPLETION: char
- // CHECK-CC2-NEXT: COMPLETION: char16
- // CHECK-CC2-NEXT: COMPLETION: char32
- // CHECK-CC2-NEXT: COMPLETION: class
- // CHECK-CC2-NEXT: COMPLETION: const
- // CHECK-CC2-NEXT: COMPLETION: constexpr
- // CHECK-CC2-NEXT: COMPLETION: Pattern : decltype(<#expression#>)
- // CHECK-CC2-NEXT: COMPLETION: double
- // CHECK-CC2-NEXT: COMPLETION: enum
- // CHECK-CC2-NEXT: COMPLETION: extern
- // CHECK-CC2-NEXT: COMPLETION: float
- // CHECK-CC2-NEXT: COMPLETION: inline
- // CHECK-CC2-NEXT: COMPLETION: int
- // CHECK-CC2-NEXT: COMPLETION: long
- // CHECK-CC2-NEXT: COMPLETION: Pattern : namespace <#identifier#>{<#declarations#>
- // CHECK-CC2: COMPLETION: Pattern : namespace <#name#> = <#namespace#>
- // CHECK-CC2-NEXT: COMPLETION: operator
- // CHECK-CC2-NEXT: COMPLETION: short
- // CHECK-CC2-NEXT: COMPLETION: signed
- // CHECK-CC2-NEXT: COMPLETION: static
- // CHECK-CC2-NEXT: COMPLETION: Pattern : static_assert(<#expression#>, <#message#>)
- // CHECK-CC2-NEXT: COMPLETION: struct
- // CHECK-CC2-NEXT: COMPLETION: t : t
- // CHECK-CC2-NEXT: COMPLETION: Pattern : template <#declaration#>
- // CHECK-CC2-NEXT: COMPLETION: Pattern : template<<#parameters#>>
- // CHECK-CC2-NEXT: COMPLETION: thread_local
- // CHECK-CC2-NEXT: COMPLETION: TYPEDEF : TYPEDEF
- // CHECK-CC2-NEXT: COMPLETION: Pattern : typedef <#type#> <#name#>
- // CHECK-CC2-NEXT: COMPLETION: Pattern : typename <#qualifier#>::<#name#>
- // CHECK-CC2-NEXT: COMPLETION: Pattern : typeof <#expression#>
- // CHECK-CC2-NEXT: COMPLETION: Pattern : typeof(<#type#>)
- // CHECK-CC2-NEXT: COMPLETION: union
- // CHECK-CC2-NEXT: COMPLETION: unsigned
- // CHECK-CC2-NEXT: COMPLETION: Pattern : using namespace <#identifier#>
- // CHECK-CC2-NEXT: COMPLETION: Pattern : using <#qualifier#>::<#name#>
- // CHECK-CC2-NEXT: COMPLETION: void
- // CHECK-CC2-NEXT: COMPLETION: volatile
- // CHECK-CC2-NEXT: COMPLETION: wchar_t
- // CHECK-CC2-NEXT: COMPLETION: X : X
-
- // RUN: %clang_cc1 -fsyntax-only -code-completion-patterns -code-completion-at=%s:1:19 -std=gnu++11 %s -o - | FileCheck -check-prefix=CHECK-CC3 %s
- // CHECK-CC3: COMPLETION: bool
- // CHECK-CC3-NEXT: COMPLETION: char
- // CHECK-CC3-NEXT: COMPLETION: char16_t
- // CHECK-CC3-NEXT: COMPLETION: char32_t
- // CHECK-CC3-NEXT: COMPLETION: class
- // CHECK-CC3-NEXT: COMPLETION: const
- // CHECK-CC3-NEXT: COMPLETION: constexpr
- // CHECK-CC3-NEXT: COMPLETION: Pattern : decltype(<#expression#>)
- // CHECK-CC3-NEXT: COMPLETION: double
- // CHECK-CC3-NEXT: COMPLETION: enum
- // CHECK-CC3-NEXT: COMPLETION: explicit
- // CHECK-CC3-NEXT: COMPLETION: extern
- // CHECK-CC3-NEXT: COMPLETION: float
- // CHECK-CC3-NEXT: COMPLETION: friend
- // CHECK-CC3-NEXT: COMPLETION: inline
- // CHECK-CC3-NEXT: COMPLETION: int
- // CHECK-CC3-NEXT: COMPLETION: long
- // CHECK-CC3-NEXT: COMPLETION: mutable
- // CHECK-CC3-NEXT: COMPLETION: operator
- // CHECK-CC3-NEXT: COMPLETION: Pattern : private:
- // CHECK-CC3-NEXT: COMPLETION: Pattern : protected:
- // CHECK-CC3-NEXT: COMPLETION: Pattern : public:
- // CHECK-CC3-NEXT: COMPLETION: short
- // CHECK-CC3-NEXT: COMPLETION: signed
- // CHECK-CC3-NEXT: COMPLETION: static
- // CHECK-CC3-NEXT: COMPLETION: Pattern : static_assert(<#expression#>, <#message#>)
- // CHECK-CC3-NEXT: COMPLETION: struct
- // CHECK-CC3-NEXT: COMPLETION: Pattern : template<<#parameters#>>
- // CHECK-CC3-NEXT: COMPLETION: thread_local
- // CHECK-CC3-NEXT: COMPLETION: Pattern : typedef <#type#> <#name#>
- // CHECK-CC3-NEXT: COMPLETION: Pattern : typename <#qualifier#>::<#name#>
- // CHECK-CC3-NEXT: COMPLETION: Pattern : typeof <#expression#>
- // CHECK-CC3-NEXT: COMPLETION: Pattern : typeof(<#type#>)
- // CHECK-CC3-NEXT: COMPLETION: union
- // CHECK-CC3-NEXT: COMPLETION: unsigned
- // CHECK-CC3-NEXT: COMPLETION: Pattern : using <#qualifier#>::<#name#>
- // CHECK-CC3-NEXT: COMPLETION: virtual
- // CHECK-CC3-NEXT: COMPLETION: void
- // CHECK-CC3-NEXT: COMPLETION: volatile
- // CHECK-CC3-NEXT: COMPLETION: wchar_t
- // CHECK-CC3-NEXT: COMPLETION: X : X
-
- // RUN: %clang_cc1 -fsyntax-only -fcxx-exceptions -code-completion-patterns -code-completion-at=%s:6:11 -std=gnu++11 %s -o - | FileCheck -check-prefix=CHECK-CC4 %s
- // CHECK-CC4: COMPLETION: bool
- // CHECK-CC4-NEXT: COMPLETION: char
- // CHECK-CC4-NEXT: COMPLETION: char16_t
- // CHECK-CC4-NEXT: COMPLETION: char32_t
- // CHECK-CC4-NEXT: COMPLETION: class
- // CHECK-CC4-NEXT: COMPLETION: const
- // CHECK-CC4-NEXT: COMPLETION: Pattern : const_cast<<#type#>>(<#expression#>)
- // CHECK-CC4-NEXT: COMPLETION: Pattern : decltype(<#expression#>)
- // CHECK-CC4-NEXT: COMPLETION: Pattern : [#void#]delete <#expression#>
- // CHECK-CC4-NEXT: COMPLETION: Pattern : [#void#]delete [] <#expression#>
- // CHECK-CC4-NEXT: COMPLETION: double
- // CHECK-CC4-NEXT: COMPLETION: Pattern : dynamic_cast<<#type#>>(<#expression#>)
- // CHECK-CC4-NEXT: COMPLETION: enum
- // CHECK-CC4-NEXT: COMPLETION: Pattern : [#bool#]false
- // CHECK-CC4-NEXT: COMPLETION: float
- // CHECK-CC4-NEXT: COMPLETION: foo : [#void#]foo()
- // CHECK-CC4-NEXT: COMPLETION: int
- // CHECK-CC4-NEXT: COMPLETION: long
- // CHECK-CC4-NEXT: COMPLETION: Pattern : new <#type#>(<#expressions#>)
- // CHECK-CC4-NEXT: COMPLETION: Pattern : new <#type#>[<#size#>](<#expressions#>)
- // CHECK-CC4-NEXT: COMPLETION: Pattern : [#bool#]noexcept(<#expression#>)
- // CHECK-CC4-NEXT: COMPLETION: Pattern : [#std::nullptr_t#]nullptr
- // CHECK-CC4-NEXT: COMPLETION: operator
- // CHECK-CC4-NEXT: COMPLETION: Pattern : reinterpret_cast<<#type#>>(<#expression#>)
- // CHECK-CC4-NEXT: COMPLETION: short
- // CHECK-CC4-NEXT: COMPLETION: signed
- // CHECK-CC4-NEXT: COMPLETION: Pattern : [#size_t#]sizeof(<#expression-or-type#>)
- // CHECK-CC4-NEXT: COMPLETION: Pattern : [#size_t#]sizeof...(<#parameter-pack#>)
- // CHECK-CC4-NEXT: COMPLETION: Pattern : static_cast<<#type#>>(<#expression#>)
- // CHECK-CC4-NEXT: COMPLETION: struct
- // CHECK-CC4-NEXT: COMPLETION: t : t
- // CHECK-CC4-NEXT: COMPLETION: Pattern : [#void#]throw <#expression#>
- // CHECK-CC4-NEXT: COMPLETION: Pattern : [#bool#]true
- // CHECK-CC4-NEXT: COMPLETION: TYPEDEF : TYPEDEF
- // CHECK-CC4-NEXT: COMPLETION: Pattern : [#std::type_info#]typeid(<#expression-or-type#>)
- // CHECK-CC4-NEXT: COMPLETION: Pattern : typename <#qualifier#>::<#name#>
- // CHECK-CC4-NEXT: COMPLETION: Pattern : typeof <#expression#>
- // CHECK-CC4-NEXT: COMPLETION: Pattern : typeof(<#type#>)
- // CHECK-CC4-NEXT: COMPLETION: union
- // CHECK-CC4-NEXT: COMPLETION: unsigned
- // CHECK-CC4-NEXT: COMPLETION: void
- // CHECK-CC4-NEXT: COMPLETION: volatile
- // CHECK-CC4-NEXT: COMPLETION: wchar_t
- // CHECK-CC4-NEXT: COMPLETION: X : X
- // CHECK-CC4-NEXT: COMPLETION: z : [#void#]z(<#int#>)
-
- // RUN: %clang_cc1 -fsyntax-only -fno-rtti -code-completion-patterns -code-completion-at=%s:6:14 -std=gnu++11 %s -o - | FileCheck -check-prefix=CHECK-NO-RTTI %s
- // CHECK-NO-RTTI: COMPLETION: bool
- // CHECK-NO-RTTI-NEXT: COMPLETION: char
- // CHECK-NO-RTTI-NEXT: COMPLETION: char16_t
- // CHECK-NO-RTTI-NEXT: COMPLETION: char32_t
- // CHECK-NO-RTTI-NEXT: COMPLETION: class
- // CHECK-NO-RTTI-NEXT: COMPLETION: const
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : const_cast<<#type#>>(<#expression#>)
- // CHECK-NO-RTTI: COMPLETION: Pattern : [#void#]delete <#expression#>
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : [#void#]delete [] <#expression#>
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : do{<#statements#>
- // CHECK-NO-RTTI: COMPLETION: double
- // CHECK-NO-RTTI-NOT: dynamic_cast
- // CHECK-NO-RTTI: COMPLETION: enum
- // CHECK-NO-RTTI-NEXT: COMPLETION: extern
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : [#bool#]false
- // CHECK-NO-RTTI-NEXT: COMPLETION: float
- // CHECK-NO-RTTI-NEXT: COMPLETION: foo : [#void#]foo()
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : for(<#init-statement#>;<#condition#>;<#inc-expression#>){
- // CHECK-NO-RTTI: COMPLETION: Pattern : goto <#label#>
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : if(<#condition#>){<#statements#>
- // CHECK-NO-RTTI: COMPLETION: int
- // CHECK-NO-RTTI-NEXT: COMPLETION: long
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : new <#type#>(<#expressions#>)
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : new <#type#>[<#size#>](<#expressions#>)
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : [#bool#]noexcept(<#expression#>)
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : [#std::nullptr_t#]nullptr
- // CHECK-NO-RTTI-NEXT: COMPLETION: operator
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : reinterpret_cast<<#type#>>(<#expression#>)
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : return
- // CHECK-NO-RTTI-NEXT: COMPLETION: short
- // CHECK-NO-RTTI-NEXT: COMPLETION: signed
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : [#size_t#]sizeof(<#expression-or-type#>)
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : [#size_t#]sizeof...(<#parameter-pack#>)
- // CHECK-NO-RTTI-NEXT: COMPLETION: static
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : static_assert(<#expression#>, <#message#>)
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : static_cast<<#type#>>(<#expression#>)
- // CHECK-NO-RTTI-NEXT: COMPLETION: struct
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : switch(<#condition#>){
- // CHECK-NO-RTTI: COMPLETION: t : t
- // CHECK-NO-RTTI-NOT: throw
- // CHECK-NO-RTTI: COMPLETION: Pattern : [#bool#]true
- // CHECK-NO-RTTI-NOT: try
- // CHECK-NO-RTTI: COMPLETION: TYPEDEF : TYPEDEF
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : typedef <#type#> <#name#>
- // CHECK-NO-RTTI-NOT: typeid
- // CHECK-NO-RTTI: COMPLETION: Pattern : typename <#qualifier#>::<#name#>
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : typeof <#expression#>
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : typeof(<#type#>)
- // CHECK-NO-RTTI-NEXT: COMPLETION: union
- // CHECK-NO-RTTI-NEXT: COMPLETION: unsigned
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : using namespace <#identifier#>
- // CHECK-NO-RTTI-NEXT: COMPLETION: void
- // CHECK-NO-RTTI-NEXT: COMPLETION: volatile
- // CHECK-NO-RTTI-NEXT: COMPLETION: wchar_t
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : while(<#condition#>){<#statements#>
- // CHECK-NO-RTTI: COMPLETION: X : X
- // CHECK-NO-RTTI-NEXT: COMPLETION: y : [#int#]y
- // CHECK-NO-RTTI-NEXT: COMPLETION: z : [#void#]z(<#int#>)
diff --git a/test/CodeCompletion/ordinary-name.c b/test/CodeCompletion/ordinary-name.c
deleted file mode 100644
index 1352b70730d80..0000000000000
--- a/test/CodeCompletion/ordinary-name.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include <reserved.h>
-struct X { int x; };
-typedef struct t TYPEDEF;
-typedef struct t _TYPEDEF;
-void foo() {
- int y;
- // RUN: %clang_cc1 -isystem %S/Inputs -fsyntax-only -code-completion-at=%s:6:9 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1-NOT: __INTEGER_TYPE
- // CHECK-CC1: _Imaginary
- // CHECK-CC1: _MyPrivateType
- // CHECK-CC1: _TYPEDEF
- // CHECK-CC1: FLOATING_TYPE
- // CHECK-CC1: foo
- // CHECK-CC1: TYPEDEF
- // CHECK-CC1: y
-
- // PR8744
- // RUN: %clang_cc1 -isystem %S/Inputs -fsyntax-only -code-completion-at=%s:1:11 %s
diff --git a/test/CodeCompletion/ordinary-name.cpp b/test/CodeCompletion/ordinary-name.cpp
deleted file mode 100644
index ba613bc9152b9..0000000000000
--- a/test/CodeCompletion/ordinary-name.cpp
+++ /dev/null
@@ -1,228 +0,0 @@
-struct X { int x; };
-void z(int);
-typedef struct t TYPEDEF;
-
-void foo() {
- int y = 17;
- // RUN: %clang_cc1 -fsyntax-only -fcxx-exceptions -code-completion-patterns -code-completion-at=%s:6:14 -std=gnu++98 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: COMPLETION: bool
- // CHECK-CC1-NEXT: COMPLETION: char
- // CHECK-CC1-NEXT: COMPLETION: class
- // CHECK-CC1-NEXT: COMPLETION: const
- // CHECK-CC1-NEXT: COMPLETION: Pattern : const_cast<<#type#>>(<#expression#>)
- // CHECK-CC1: COMPLETION: Pattern : [#void#]delete <#expression#>
- // CHECK-CC1-NEXT: COMPLETION: Pattern : [#void#]delete [] <#expression#>
- // CHECK-CC1-NEXT: COMPLETION: Pattern : do{<#statements#>
- // CHECK-CC1: COMPLETION: double
- // CHECK-CC1-NEXT: COMPLETION: Pattern : dynamic_cast<<#type#>>(<#expression#>)
- // CHECK-CC1-NEXT: COMPLETION: enum
- // CHECK-CC1-NEXT: COMPLETION: extern
- // CHECK-CC1-NEXT: COMPLETION: Pattern : [#bool#]false
- // CHECK-CC1-NEXT: COMPLETION: float
- // CHECK-CC1-NEXT: COMPLETION: foo : [#void#]foo()
- // CHECK-CC1-NEXT: COMPLETION: Pattern : for(<#init-statement#>;<#condition#>;<#inc-expression#>){
- // CHECK-CC1: COMPLETION: Pattern : goto <#label#>
- // CHECK-CC1-NEXT: COMPLETION: Pattern : if(<#condition#>){<#statements#>
- // CHECK-CC1: COMPLETION: int
- // CHECK-CC1-NEXT: COMPLETION: long
- // CHECK-CC1-NEXT: COMPLETION: Pattern : new <#type#>(<#expressions#>)
- // CHECK-CC1-NEXT: COMPLETION: Pattern : new <#type#>[<#size#>](<#expressions#>)
- // CHECK-CC1-NEXT: COMPLETION: operator
- // CHECK-CC1-NEXT: COMPLETION: Pattern : reinterpret_cast<<#type#>>(<#expression#>)
- // CHECK-CC1-NEXT: COMPLETION: Pattern : return
- // CHECK-CC1-NEXT: COMPLETION: short
- // CHECK-CC1-NEXT: COMPLETION: signed
- // CHECK-CC1-NEXT: COMPLETION: Pattern : [#size_t#]sizeof(<#expression-or-type#>)
- // CHECK-CC1-NEXT: COMPLETION: static
- // CHECK-CC1-NEXT: COMPLETION: Pattern : static_cast<<#type#>>(<#expression#>)
- // CHECK-CC1-NEXT: COMPLETION: struct
- // CHECK-CC1-NEXT: COMPLETION: Pattern : switch(<#condition#>){
- // CHECK-CC1: COMPLETION: t : t
- // CHECK-CC1-NEXT: COMPLETION: Pattern : [#void#]throw <#expression#>
- // CHECK-CC1-NEXT: COMPLETION: Pattern : [#bool#]true
- // CHECK-CC1-NEXT: COMPLETION: Pattern : try{<#statements#>
- // CHECK-CC1: COMPLETION: TYPEDEF : TYPEDEF
- // CHECK-CC1-NEXT: COMPLETION: Pattern : typedef <#type#> <#name#>
- // CHECK-CC1-NEXT: COMPLETION: Pattern : [#std::type_info#]typeid(<#expression-or-type#>)
- // CHECK-CC1-NEXT: COMPLETION: Pattern : typename <#qualifier#>::<#name#>
- // CHECK-CC1-NEXT: COMPLETION: Pattern : typeof <#expression#>
- // CHECK-CC1-NEXT: COMPLETION: Pattern : typeof(<#type#>)
- // CHECK-CC1-NEXT: COMPLETION: union
- // CHECK-CC1-NEXT: COMPLETION: unsigned
- // CHECK-CC1-NEXT: COMPLETION: Pattern : using namespace <#identifier#>
- // CHECK-CC1-NEXT: COMPLETION: void
- // CHECK-CC1-NEXT: COMPLETION: volatile
- // CHECK-CC1-NEXT: COMPLETION: wchar_t
- // CHECK-CC1-NEXT: COMPLETION: Pattern : while(<#condition#>){<#statements#>
- // CHECK-CC1: COMPLETION: X : X
- // CHECK-CC1-NEXT: COMPLETION: y : [#int#]y
- // CHECK-CC1-NEXT: COMPLETION: z : [#void#]z(<#int#>)
-
- // RUN: %clang_cc1 -fsyntax-only -code-completion-patterns -code-completion-at=%s:4:1 -std=gnu++98 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
- // CHECK-CC2: COMPLETION: Pattern : asm(<#string-literal#>)
- // CHECK-CC2-NEXT: COMPLETION: bool
- // CHECK-CC2-NEXT: COMPLETION: char
- // CHECK-CC2-NEXT: COMPLETION: class
- // CHECK-CC2-NEXT: COMPLETION: const
- // CHECK-CC2-NEXT: COMPLETION: double
- // CHECK-CC2-NEXT: COMPLETION: enum
- // CHECK-CC2-NEXT: COMPLETION: extern
- // CHECK-CC2-NEXT: COMPLETION: float
- // CHECK-CC2-NEXT: COMPLETION: inline
- // CHECK-CC2-NEXT: COMPLETION: int
- // CHECK-CC2-NEXT: COMPLETION: long
- // CHECK-CC2-NEXT: COMPLETION: Pattern : namespace <#identifier#>{<#declarations#>
- // CHECK-CC2: COMPLETION: Pattern : namespace <#name#> = <#namespace#>
- // CHECK-CC2-NEXT: COMPLETION: operator
- // CHECK-CC2-NEXT: COMPLETION: short
- // CHECK-CC2-NEXT: COMPLETION: signed
- // CHECK-CC2-NEXT: COMPLETION: static
- // CHECK-CC2-NEXT: COMPLETION: struct
- // CHECK-CC2-NEXT: COMPLETION: t : t
- // CHECK-CC2-NEXT: COMPLETION: Pattern : template <#declaration#>
- // CHECK-CC2-NEXT: COMPLETION: Pattern : template<<#parameters#>>
- // CHECK-CC2-NEXT: COMPLETION: TYPEDEF : TYPEDEF
- // CHECK-CC2-NEXT: COMPLETION: Pattern : typedef <#type#> <#name#>
- // CHECK-CC2-NEXT: COMPLETION: Pattern : typename <#qualifier#>::<#name#>
- // CHECK-CC2-NEXT: COMPLETION: Pattern : typeof <#expression#>
- // CHECK-CC2-NEXT: COMPLETION: Pattern : typeof(<#type#>)
- // CHECK-CC2-NEXT: COMPLETION: union
- // CHECK-CC2-NEXT: COMPLETION: unsigned
- // CHECK-CC2-NEXT: COMPLETION: Pattern : using namespace <#identifier#>
- // CHECK-CC2-NEXT: COMPLETION: Pattern : using <#qualifier#>::<#name#>
- // CHECK-CC2-NEXT: COMPLETION: void
- // CHECK-CC2-NEXT: COMPLETION: volatile
- // CHECK-CC2-NEXT: COMPLETION: wchar_t
- // CHECK-CC2-NEXT: COMPLETION: X : X
-
- // RUN: %clang_cc1 -fsyntax-only -code-completion-patterns -code-completion-at=%s:1:19 -std=gnu++98 %s -o - | FileCheck -check-prefix=CHECK-CC3 %s
- // CHECK-CC3: COMPLETION: bool
- // CHECK-CC3-NEXT: COMPLETION: char
- // CHECK-CC3-NEXT: COMPLETION: class
- // CHECK-CC3-NEXT: COMPLETION: const
- // CHECK-CC3-NEXT: COMPLETION: double
- // CHECK-CC3-NEXT: COMPLETION: enum
- // CHECK-CC3-NEXT: COMPLETION: explicit
- // CHECK-CC3-NEXT: COMPLETION: extern
- // CHECK-CC3-NEXT: COMPLETION: float
- // CHECK-CC3-NEXT: COMPLETION: friend
- // CHECK-CC3-NEXT: COMPLETION: inline
- // CHECK-CC3-NEXT: COMPLETION: int
- // CHECK-CC3-NEXT: COMPLETION: long
- // CHECK-CC3-NEXT: COMPLETION: mutable
- // CHECK-CC3-NEXT: COMPLETION: operator
- // CHECK-CC3-NEXT: COMPLETION: Pattern : private:
- // CHECK-CC3-NEXT: COMPLETION: Pattern : protected:
- // CHECK-CC3-NEXT: COMPLETION: Pattern : public:
- // CHECK-CC3-NEXT: COMPLETION: short
- // CHECK-CC3-NEXT: COMPLETION: signed
- // CHECK-CC3-NEXT: COMPLETION: static
- // CHECK-CC3-NEXT: COMPLETION: struct
- // CHECK-CC3-NEXT: COMPLETION: Pattern : template<<#parameters#>>
- // CHECK-CC3-NEXT: COMPLETION: Pattern : typedef <#type#> <#name#>
- // CHECK-CC3-NEXT: COMPLETION: Pattern : typename <#qualifier#>::<#name#>
- // CHECK-CC3-NEXT: COMPLETION: Pattern : typeof <#expression#>
- // CHECK-CC3-NEXT: COMPLETION: Pattern : typeof(<#type#>)
- // CHECK-CC3-NEXT: COMPLETION: union
- // CHECK-CC3-NEXT: COMPLETION: unsigned
- // CHECK-CC3-NEXT: COMPLETION: Pattern : using <#qualifier#>::<#name#>
- // CHECK-CC3-NEXT: COMPLETION: virtual
- // CHECK-CC3-NEXT: COMPLETION: void
- // CHECK-CC3-NEXT: COMPLETION: volatile
- // CHECK-CC3-NEXT: COMPLETION: wchar_t
- // CHECK-CC3-NEXT: COMPLETION: X : X
-
- // RUN: %clang_cc1 -fsyntax-only -fcxx-exceptions -code-completion-patterns -code-completion-at=%s:6:11 -std=gnu++98 %s -o - | FileCheck -check-prefix=CHECK-CC4 %s
- // CHECK-CC4: COMPLETION: bool
- // CHECK-CC4-NEXT: COMPLETION: char
- // CHECK-CC4-NEXT: COMPLETION: class
- // CHECK-CC4-NEXT: COMPLETION: const
- // CHECK-CC4-NEXT: COMPLETION: Pattern : const_cast<<#type#>>(<#expression#>)
- // CHECK-CC4-NEXT: COMPLETION: Pattern : [#void#]delete <#expression#>
- // CHECK-CC4-NEXT: COMPLETION: Pattern : [#void#]delete [] <#expression#>
- // CHECK-CC4-NEXT: COMPLETION: double
- // CHECK-CC4-NEXT: COMPLETION: Pattern : dynamic_cast<<#type#>>(<#expression#>)
- // CHECK-CC4-NEXT: COMPLETION: enum
- // CHECK-CC4-NEXT: COMPLETION: Pattern : [#bool#]false
- // CHECK-CC4-NEXT: COMPLETION: float
- // CHECK-CC4-NEXT: COMPLETION: foo : [#void#]foo()
- // CHECK-CC4-NEXT: COMPLETION: int
- // CHECK-CC4-NEXT: COMPLETION: long
- // CHECK-CC4-NEXT: COMPLETION: Pattern : new <#type#>(<#expressions#>)
- // CHECK-CC4-NEXT: COMPLETION: Pattern : new <#type#>[<#size#>](<#expressions#>)
- // CHECK-CC4-NEXT: COMPLETION: operator
- // CHECK-CC4-NEXT: COMPLETION: Pattern : reinterpret_cast<<#type#>>(<#expression#>)
- // CHECK-CC4-NEXT: COMPLETION: short
- // CHECK-CC4-NEXT: COMPLETION: signed
- // CHECK-CC4-NEXT: COMPLETION: Pattern : [#size_t#]sizeof(<#expression-or-type#>)
- // CHECK-CC4-NEXT: COMPLETION: Pattern : static_cast<<#type#>>(<#expression#>)
- // CHECK-CC4-NEXT: COMPLETION: struct
- // CHECK-CC4-NEXT: COMPLETION: t : t
- // CHECK-CC4-NEXT: COMPLETION: Pattern : [#void#]throw <#expression#>
- // CHECK-CC4-NEXT: COMPLETION: Pattern : [#bool#]true
- // CHECK-CC4-NEXT: COMPLETION: TYPEDEF : TYPEDEF
- // CHECK-CC4-NEXT: COMPLETION: Pattern : [#std::type_info#]typeid(<#expression-or-type#>)
- // CHECK-CC4-NEXT: COMPLETION: Pattern : typename <#qualifier#>::<#name#>
- // CHECK-CC4-NEXT: COMPLETION: Pattern : typeof <#expression#>
- // CHECK-CC4-NEXT: COMPLETION: Pattern : typeof(<#type#>)
- // CHECK-CC4-NEXT: COMPLETION: union
- // CHECK-CC4-NEXT: COMPLETION: unsigned
- // CHECK-CC4-NEXT: COMPLETION: void
- // CHECK-CC4-NEXT: COMPLETION: volatile
- // CHECK-CC4-NEXT: COMPLETION: wchar_t
- // CHECK-CC4-NEXT: COMPLETION: X : X
- // CHECK-CC4-NEXT: COMPLETION: z : [#void#]z(<#int#>)
-
- // RUN: %clang_cc1 -fsyntax-only -fno-rtti -code-completion-patterns -code-completion-at=%s:6:14 -std=gnu++98 %s -o - | FileCheck -check-prefix=CHECK-NO-RTTI %s
- // CHECK-NO-RTTI: COMPLETION: bool
- // CHECK-NO-RTTI-NEXT: COMPLETION: char
- // CHECK-NO-RTTI-NEXT: COMPLETION: class
- // CHECK-NO-RTTI-NEXT: COMPLETION: const
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : const_cast<<#type#>>(<#expression#>)
- // CHECK-NO-RTTI: COMPLETION: Pattern : [#void#]delete <#expression#>
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : [#void#]delete [] <#expression#>
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : do{<#statements#>
- // CHECK-NO-RTTI: COMPLETION: double
- // CHECK-NO-RTTI-NOT: dynamic_cast
- // CHECK-NO-RTTI: COMPLETION: enum
- // CHECK-NO-RTTI-NEXT: COMPLETION: extern
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : [#bool#]false
- // CHECK-NO-RTTI-NEXT: COMPLETION: float
- // CHECK-NO-RTTI-NEXT: COMPLETION: foo : [#void#]foo()
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : for(<#init-statement#>;<#condition#>;<#inc-expression#>){
- // CHECK-NO-RTTI: COMPLETION: Pattern : goto <#label#>
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : if(<#condition#>){<#statements#>
- // CHECK-NO-RTTI: COMPLETION: int
- // CHECK-NO-RTTI-NEXT: COMPLETION: long
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : new <#type#>(<#expressions#>)
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : new <#type#>[<#size#>](<#expressions#>)
- // CHECK-NO-RTTI-NEXT: COMPLETION: operator
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : reinterpret_cast<<#type#>>(<#expression#>)
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : return
- // CHECK-NO-RTTI-NEXT: COMPLETION: short
- // CHECK-NO-RTTI-NEXT: COMPLETION: signed
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : [#size_t#]sizeof(<#expression-or-type#>)
- // CHECK-NO-RTTI-NEXT: COMPLETION: static
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : static_cast<<#type#>>(<#expression#>)
- // CHECK-NO-RTTI-NEXT: COMPLETION: struct
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : switch(<#condition#>){
- // CHECK-NO-RTTI: COMPLETION: t : t
- // CHECK-NO-RTTI-NOT: throw
- // CHECK-NO-RTTI: COMPLETION: Pattern : [#bool#]true
- // CHECK-NO-RTTI-NOT: try
- // CHECK-NO-RTTI: COMPLETION: TYPEDEF : TYPEDEF
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : typedef <#type#> <#name#>
- // CHECK-NO-RTTI-NOT: typeid
- // CHECK-NO-RTTI: COMPLETION: Pattern : typename <#qualifier#>::<#name#>
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : typeof <#expression#>
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : typeof(<#type#>)
- // CHECK-NO-RTTI-NEXT: COMPLETION: union
- // CHECK-NO-RTTI-NEXT: COMPLETION: unsigned
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : using namespace <#identifier#>
- // CHECK-NO-RTTI-NEXT: COMPLETION: void
- // CHECK-NO-RTTI-NEXT: COMPLETION: volatile
- // CHECK-NO-RTTI-NEXT: COMPLETION: wchar_t
- // CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : while(<#condition#>){<#statements#>
- // CHECK-NO-RTTI: COMPLETION: X : X
- // CHECK-NO-RTTI-NEXT: COMPLETION: y : [#int#]y
- // CHECK-NO-RTTI-NEXT: COMPLETION: z : [#void#]z(<#int#>)
diff --git a/test/CodeCompletion/overrides.cpp b/test/CodeCompletion/overrides.cpp
deleted file mode 100644
index 06cff6af4d12f..0000000000000
--- a/test/CodeCompletion/overrides.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
-class A {
- public:
- virtual void vfunc(bool param);
- virtual void vfunc(bool param, int p);
- void func(bool param);
-};
-class B : public A {
-virtual int ttt(bool param, int x = 3) const;
-void vfunc(bool param, int p) override;
-};
-class C : public B {
- public:
- void vfunc(bool param) override;
- void
-};
-
-// Runs completion at ^void.
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:14:3 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
-// CHECK-CC1: COMPLETION: Pattern : int ttt(bool param, int x = 3) const override{{$}}
-// CHECK-CC1: COMPLETION: Pattern : void vfunc(bool param, int p) override{{$}}
-// CHECK-CC1-NOT: COMPLETION: Pattern : void vfunc(bool param) override{{$}}
-//
-// Runs completion at vo^id.
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:14:5 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
-// CHECK-CC2: COMPLETION: Pattern : void vfunc(bool param, int p) override{{$}}
-// CHECK-CC2-NOT: COMPLETION: Pattern : int ttt(bool param, int x = 3) const override{{$}}
-// CHECK-CC2-NOT: COMPLETION: Pattern : void vfunc(bool param) override{{$}}
-//
-// Runs completion at void ^.
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:14:8 %s -o - | FileCheck -check-prefix=CHECK-CC3 %s
-// CHECK-CC3-NOT: COMPLETION: Pattern : int ttt(bool param, int x = 3) const override{{$}}
-// CHECK-CC3-NOT: COMPLETION: Pattern : void vfunc(bool param, int p) override{{$}}
-// CHECK-CC3-NOT: COMPLETION: Pattern : void vfunc(bool param) override{{$}}
diff --git a/test/CodeCompletion/paren_locs.cpp b/test/CodeCompletion/paren_locs.cpp
deleted file mode 100644
index 303264cff7252..0000000000000
--- a/test/CodeCompletion/paren_locs.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
-void foo(int a, int b);
-void foo(int a, int b, int c);
-
-void test() {
- foo(10, );
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:5:10 %s -o - \
- // RUN: | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: OPENING_PAREN_LOC: {{.*}}paren_locs.cpp:5:6
-
-#define FOO foo(
- FOO 10, );
-#undef FOO
- // RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:11:10 %s -o - \
- // RUN: | FileCheck -check-prefix=CHECK-CC2 %s
- // CHECK-CC2: OPENING_PAREN_LOC: {{.*}}paren_locs.cpp:11:3
-
- struct Foo {
- Foo(int a, int b);
- Foo(int a, int b, int c);
- };
- Foo a(10, );
- // RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:21:12 %s -o - \
- // RUN: | FileCheck -check-prefix=CHECK-CC3 %s
- // CHECK-CC3: OPENING_PAREN_LOC: {{.*}}paren_locs.cpp:21:8
- Foo(10, );
- // RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:25:10 %s -o - \
- // RUN: | FileCheck -check-prefix=CHECK-CC4 %s
- // CHECK-CC4: OPENING_PAREN_LOC: {{.*}}paren_locs.cpp:25:6
- new Foo(10, );
- // RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:29:15 %s -o - \
- // RUN: | FileCheck -check-prefix=CHECK-CC5 %s
- // CHECK-CC5: OPENING_PAREN_LOC: {{.*}}paren_locs.cpp:29:10
-}
diff --git a/test/CodeCompletion/pch-and-module.m b/test/CodeCompletion/pch-and-module.m
deleted file mode 100644
index 8361448c3a7eb..0000000000000
--- a/test/CodeCompletion/pch-and-module.m
+++ /dev/null
@@ -1,37 +0,0 @@
-#import "import_moduleA.h"
-static const int FROM_IMPL = 2;
-
-void test0(void) {
- int x =
-}
-// The lines above this point are sensitive to line/column changes.
-
-// ===--- None
-// RUN: c-index-test -code-completion-at=%s:5:11 %s -I %S/Inputs | FileCheck %s
-
-// ===--- Modules
-// RUN: rm -rf %t && mkdir %t
-// RUN: c-index-test -code-completion-at=%s:5:11 %s -I %S/Inputs -fmodules -fmodules-cache-path=%t/mcp | FileCheck %s
-
-// ===--- PCH
-// RUN: rm -rf %t && mkdir %t
-// RUN: c-index-test -write-pch %t/import_moduleA.pch -x objective-c-header %S/Inputs/import_moduleA.h -I %S/Inputs
-// RUN: c-index-test -code-completion-at=%s:5:11 %s -include-pch %t/import_moduleA.pch -I %S/Inputs | FileCheck %s
-
-// ===--- PCH + Modules
-// RUN: rm -rf %t && mkdir %t
-// RUN: c-index-test -write-pch %t/import_moduleA.pch -x objective-c-header %S/Inputs/import_moduleA.h -fmodules -fmodules-cache-path=%t/mcp -I %S/Inputs
-// RUN: c-index-test -code-completion-at=%s:5:11 %s -include-pch %t/import_moduleA.pch -I %S/Inputs -fmodules -fmodules-cache-path=%t/mcp | FileCheck %s
-
-// ===--- Preamble
-// RUN: rm -rf %t && mkdir %t
-// RUN: env CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:5:11 %s -I %S/Inputs | FileCheck %s
-
-// ===--- Preamble + Modules
-// RUN: rm -rf %t
-// RUN: env CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:5:11 %s -I %S/Inputs -fmodules -fmodules-cache-path=%t/mcp | FileCheck %s
-
-
-// CHECK: FROM_HEADER
-// CHECK: FROM_IMPL
-// CHECK: FROM_MODULE_A
diff --git a/test/CodeCompletion/pragma-macro-token-caching.c b/test/CodeCompletion/pragma-macro-token-caching.c
deleted file mode 100644
index 59b6621b56ad4..0000000000000
--- a/test/CodeCompletion/pragma-macro-token-caching.c
+++ /dev/null
@@ -1,18 +0,0 @@
-
-#define Outer(action) action
-
-void completeParam(int param) {
- ;
- Outer(__extension__({ _Pragma("clang diagnostic push") }));
- param;
-}
-
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:7:1 %s | FileCheck %s
-// CHECK: param : [#int#]param
-
-void completeParamPragmaError(int param) {
- Outer(__extension__({ _Pragma(2) })); // expected-error {{_Pragma takes a parenthesized string literal}}
- param; // expected-warning {{expression result unused}}
-}
-
-// RUN: %clang_cc1 -fsyntax-only -verify -code-completion-at=%s:16:1 %s | FileCheck %s
diff --git a/test/CodeCompletion/preamble.c b/test/CodeCompletion/preamble.c
deleted file mode 100644
index 90ed5656d176b..0000000000000
--- a/test/CodeCompletion/preamble.c
+++ /dev/null
@@ -1,7 +0,0 @@
-#include "some_struct.h"
-void foo() {
- struct X x;
- x.
-
-// RUN: env CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:4:5 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC1 %s
-// CHECK-CC1: FieldDecl:{ResultType int}{TypedText m} (35)
diff --git a/test/CodeCompletion/preferred-type.cpp b/test/CodeCompletion/preferred-type.cpp
deleted file mode 100644
index 5048dfac8954e..0000000000000
--- a/test/CodeCompletion/preferred-type.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-void test(bool x) {
- if (x) {}
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:2:7 %s | FileCheck %s
- // CHECK: PREFERRED-TYPE: _Bool
-
- while (x) {}
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:6:10 %s | FileCheck %s
-
- for (; x;) {}
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:9:10 %s | FileCheck %s
-
- // FIXME(ibiryukov): the condition in do-while is parsed as expression, so we
- // fail to detect it should be converted to bool.
- // do {} while (x);
-}
diff --git a/test/CodeCompletion/qualifiers-as-written.cpp b/test/CodeCompletion/qualifiers-as-written.cpp
deleted file mode 100644
index 90530ec65c97a..0000000000000
--- a/test/CodeCompletion/qualifiers-as-written.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-struct foo {
- typedef int type;
-
- type method(type, foo::type, ::foo::type, ::foo::foo::type);
-};
-
-namespace ns {
- struct bar {
- };
-
- struct baz {
- };
-
- int func(foo::type a, bar b, baz c);
-}
-
-typedef ns::bar bar;
-
-int func(foo a, bar b, ns::bar c, ns::baz d);
-using ns::func;
-
-void test() {
- foo().method(0, 0, 0, 0);
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:23:9 %s -o - | FileCheck %s --check-prefix=CHECK-1
- // CHECK-1: COMPLETION: method : [#type#]method(<#type#>, <#foo::type#>, <#::foo::type#>, <#::foo::foo::type#>)
- f
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:26:3 %s -o - | FileCheck %s --check-prefix=CHECK-2
- // FIXME(ibiryukov): We should get rid of CHECK-DAGs here when completion output is made deterministic (see PR35244).
- // CHECK-2-DAG: COMPLETION: func : [#int#]func(<#foo a#>, <#bar b#>, <#ns::bar c#>, <#ns::baz d#>
- // CHECK-2-DAG: COMPLETION: func : [#int#]func(<#foo::type a#>, <#bar b#>, <#baz c#>
-}
diff --git a/test/CodeCompletion/self-inits.cpp b/test/CodeCompletion/self-inits.cpp
deleted file mode 100644
index a64209534ae6f..0000000000000
--- a/test/CodeCompletion/self-inits.cpp
+++ /dev/null
@@ -1,3 +0,0 @@
-int foo = 10;
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:1:11 %s -o - | FileCheck --check-prefix=CC1 %s
-// CC1-NOT: foo
diff --git a/test/CodeCompletion/signatures-crash.cpp b/test/CodeCompletion/signatures-crash.cpp
deleted file mode 100644
index c58ae0cc2fd93..0000000000000
--- a/test/CodeCompletion/signatures-crash.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-struct map {
- void find(int);
- void find();
-};
-
-int main() {
- map *m;
- m->find(10);
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:8:11 %s -o - | FileCheck %s
- // CHECK: OVERLOAD: [#void#]find(<#int#>)
-
- // Also check when the lhs is an explicit pr-value.
- (m+0)->find(10);
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:13:15 %s -o - | FileCheck %s
-}
diff --git a/test/CodeCompletion/skip-auto-funcs.cpp b/test/CodeCompletion/skip-auto-funcs.cpp
deleted file mode 100644
index ab2465d7fb049..0000000000000
--- a/test/CodeCompletion/skip-auto-funcs.cpp
+++ /dev/null
@@ -1,61 +0,0 @@
-// We run clang in completion mode to force skipping of function bodies and
-// check if the function bodies were skipped by observing the warnings that
-// clang produces.
-// RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:60:1 %s -o - 2>&1 | FileCheck %s
-template <class T>
-auto not_skipped() {
- int x;
- if (x = 10) {}
- // Check that this function is not skipped.
- // CHECK: 8:9: warning: using the result of an assignment as a condition without parentheses
- return 1;
-}
-
-template <class T>
-auto lambda_not_skipped = []() {
- int x;
- if (x = 10) {}
- // Check that this function is not skipped.
- // CHECK: 17:9: warning: using the result of an assignment as a condition without parentheses
- return 1;
-}
-
-template <class T>
-auto skipped() -> T {
- int x;
- if (x = 10) {}
- // Check that this function is skipped.
- // CHECK-NOT: 26:9: warning: using the result of an assignment as a condition without parentheses
- return 1;
-};
-
-auto lambda_skipped = []() -> int {
- int x;
- if (x = 10) {}
- // This could potentially be skipped, but it isn't at the moment.
- // CHECK: 34:9: warning: using the result of an assignment as a condition without parentheses
- return 1;
-};
-
-template <class T>
-decltype(auto)** not_skipped_ptr() {
- int x;
- if (x = 10) {}
- // Check that this function is not skipped.
- // CHECK: 43:9: warning: using the result of an assignment as a condition without parentheses
- return T();
-}
-
-template <class T>
-decltype(auto) not_skipped_decltypeauto() {
- int x;
- if (x = 10) {}
- // Check that this function is not skipped.
- // CHECK: 52:9: warning: using the result of an assignment as a condition without parentheses
- return 1;
-}
-
-int test() {
- int complete_in_this_function;
- // CHECK: COMPLETION: complete_in_this_function
-}
diff --git a/test/CodeCompletion/some_struct.h b/test/CodeCompletion/some_struct.h
deleted file mode 100644
index 63aa2a39d3f41..0000000000000
--- a/test/CodeCompletion/some_struct.h
+++ /dev/null
@@ -1 +0,0 @@
-struct X { int m; };
diff --git a/test/CodeCompletion/stdin.c b/test/CodeCompletion/stdin.c
deleted file mode 100644
index dd7f0adab7917..0000000000000
--- a/test/CodeCompletion/stdin.c
+++ /dev/null
@@ -1,7 +0,0 @@
-enum X { x };
-enum Y { y };
-
-enum
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=-:4:6 < %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: X
- // CHECK-CC1: Y
diff --git a/test/CodeCompletion/tag.c b/test/CodeCompletion/tag.c
deleted file mode 100644
index 4a34c4c772222..0000000000000
--- a/test/CodeCompletion/tag.c
+++ /dev/null
@@ -1,12 +0,0 @@
-enum X { x };
-enum Y { y };
-struct Z { };
-
-void X();
-
-void test() {
- enum X { x };
- enum
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:9:8 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: X
- // CHECK-CC1: Y
diff --git a/test/CodeCompletion/tag.cpp b/test/CodeCompletion/tag.cpp
deleted file mode 100644
index d99ca05bda4ad..0000000000000
--- a/test/CodeCompletion/tag.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-class X { };
-struct Y { };
-
-namespace N {
- template<typename> class Z;
-}
-
-namespace M {
- class A;
-}
-using M::A;
-
-namespace N {
- class Y;
-
- void test() {
- class
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:17:11 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // FIXME: the redundant Y is really annoying... it needs qualification to
- // actually be useful. Here, it just looks redundant :(
- // CHECK-CC1: A
- // CHECK-CC1: M : M::
- // CHECK-CC1: N : N::
- // CHECK-CC1: X
- // CHECK-CC1: Y
- // CHECK-CC1: Y
- // CHECK-CC1: Z
diff --git a/test/CodeCompletion/templates.cpp b/test/CodeCompletion/templates.cpp
deleted file mode 100644
index 32a7b2125fec8..0000000000000
--- a/test/CodeCompletion/templates.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-namespace std {
- template<typename T>
- class allocator {
- public:
- void in_base();
- };
-
- template<typename T, typename Alloc = std::allocator<T> >
- class vector : Alloc {
- public:
- void foo();
- void stop();
- };
- template<typename Alloc> class vector<bool, Alloc>;
-}
-
-void f() {
- std::vector<int> v;
- v.foo();
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:18:8 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: allocator<<#typename T#>>
- // CHECK-CC1-NEXT: vector<<#typename T#>{#, <#typename Alloc#>#}>
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:19:5 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
- // CHECK-CC2: foo
- // CHECK-CC2: in_base
- // CHECK-CC2: stop
-
-
diff --git a/test/CodeCompletion/this-quals.cpp b/test/CodeCompletion/this-quals.cpp
deleted file mode 100644
index eeaed00aa8571..0000000000000
--- a/test/CodeCompletion/this-quals.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-class foo {
- void mut_func() {
- [this]() {
-
- }();
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:4:1 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: const_func
- // CHECK-CC1: mut_func
- }
-
- void const_func() const {
- [this]() {
-
- }();
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:13:1 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
- // CHECK-CC2-NOT: mut_func
- // CHECK-CC2: const_func
- };
-};
-
-
diff --git a/test/CodeCompletion/truncation.c b/test/CodeCompletion/truncation.c
deleted file mode 100644
index b6c41de024f1a..0000000000000
--- a/test/CodeCompletion/truncation.c
+++ /dev/null
@@ -1,15 +0,0 @@
-#include "truncation.c.h"
-
-/* foo */
-
-struct
-
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s.h:4:8 -o - %s | FileCheck -check-prefix=CHECK-CC1 %s
-// CHECK-CC1: X
-// CHECK-CC1-NEXT: Y
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:5:8 -o - %s | FileCheck -check-prefix=CHECK-CC2 %s
-// CHECK-CC2: X
-// CHECK-CC2: Xa
-// CHECK-CC2: Y
-
-// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:3:3 -o - %s
diff --git a/test/CodeCompletion/truncation.c.h b/test/CodeCompletion/truncation.c.h
deleted file mode 100644
index a5ebbacb34421..0000000000000
--- a/test/CodeCompletion/truncation.c.h
+++ /dev/null
@@ -1,5 +0,0 @@
-struct X { };
-struct Y { };
-
-struct Xa { };
-
diff --git a/test/CodeCompletion/uninstantiated_params.cpp b/test/CodeCompletion/uninstantiated_params.cpp
deleted file mode 100644
index 643f2f72553b1..0000000000000
--- a/test/CodeCompletion/uninstantiated_params.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-template <class T>
-struct unique_ptr {
- typedef T* pointer;
-
- void reset(pointer ptr = pointer());
-};
-
-void test() {
- unique_ptr<int> x;
- x.
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:10:5 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: [#void#]reset({#<#pointer ptr = pointer()#>#})
-}
diff --git a/test/CodeCompletion/using-namespace.cpp b/test/CodeCompletion/using-namespace.cpp
deleted file mode 100644
index 4b93d02388b53..0000000000000
--- a/test/CodeCompletion/using-namespace.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-namespace N4 {
- namespace N3 { }
-}
-
-class N3;
-
-namespace N2 {
- namespace I1 { }
- namespace I4 = I1;
- namespace I5 { }
- namespace I1 { }
-
- void foo() {
- using namespace
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:14:21 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: I1
- // CHECK-CC1: I4
- // CHECK-CC1: I5
- // CHECK-CC1: N2
- // CHECK-CC1-NEXT: N4
diff --git a/test/CodeCompletion/using.cpp b/test/CodeCompletion/using.cpp
deleted file mode 100644
index aaad8c976b825..0000000000000
--- a/test/CodeCompletion/using.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-namespace N4 {
- namespace N3 { }
-}
-
-class N3;
-
-namespace N2 {
- namespace I1 { }
- namespace I4 = I1;
- namespace I5 { }
- namespace I1 { }
-
- void foo() {
- int N3;
-
- using
- // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:16:11 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
- // CHECK-CC1: I1
- // CHECK-CC1: I4
- // CHECK-CC1: I5
- // CHECK-CC1: N2
- // CHECK-CC1: N3
- // CHECK-CC1-NEXT: N4
-