Improve code completion by introducing patterns for the various C and
C++ grammatical constructs that show up in top-level (namespace-level)
declarations, member declarations, template declarations, statements,
expressions, conditions, etc. For example, we now provide a pattern
for
static_cast<type>(expr)
when we can have an expression, or
using namespace identifier;
when we can have a using directive.
Also, improves the results of code completion at the beginning of a
top-level declaration. Previously, we would see value names (function
names, global variables, etc.); now we see types, namespace names,
etc., but no values.
llvm-svn: 93134
2010-01-11 07:08:15 +08:00
|
|
|
struct X { int x; };
|
|
|
|
void z(int);
|
|
|
|
typedef struct t TYPEDEF;
|
|
|
|
|
|
|
|
void foo() {
|
|
|
|
int y = 17;
|
2015-08-28 02:49:15 +08:00
|
|
|
// 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
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC1: COMPLETION: bool
|
|
|
|
// CHECK-CC1-NEXT: COMPLETION: char
|
|
|
|
// CHECK-CC1-NEXT: COMPLETION: class
|
|
|
|
// CHECK-CC1-NEXT: COMPLETION: const
|
2010-05-28 08:22:41 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : const_cast<<#type#>>(<#expression#>)
|
2011-10-19 05:20:17 +08:00
|
|
|
// CHECK-CC1: COMPLETION: Pattern : [#void#]delete <#expression#>
|
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : [#void#]delete [] <#expression#>
|
2019-05-28 22:33:16 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : do{
|
|
|
|
// CHECK-CC1-NEXT: <#statements#>
|
|
|
|
// CHECK-CC1-NEXT: }
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC1: COMPLETION: double
|
2010-05-28 08:22:41 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : dynamic_cast<<#type#>>(<#expression#>)
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: enum
|
|
|
|
// CHECK-CC1-NEXT: COMPLETION: extern
|
2011-10-19 05:20:17 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : [#bool#]false
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: float
|
|
|
|
// CHECK-CC1-NEXT: COMPLETION: foo : [#void#]foo()
|
2010-10-09 04:39:29 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : for(<#init-statement#>;<#condition#>;<#inc-expression#>){
|
2019-05-28 22:33:16 +08:00
|
|
|
// CHECK-CC1-NEXT: <#statements#>{{$}}
|
|
|
|
// CHECK-CC1-NEXT: }
|
2019-05-06 21:18:00 +08:00
|
|
|
// CHECK-CC1: COMPLETION: Pattern : goto <#label#>;
|
2019-05-28 22:33:16 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : if(<#condition#>){
|
|
|
|
// CHECK-CC1-NEXT: <#statements#>{{$}}
|
|
|
|
// CHECK-CC1-NEXT: }
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC1: COMPLETION: int
|
|
|
|
// CHECK-CC1-NEXT: COMPLETION: long
|
2010-05-28 08:22:41 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : new <#type#>(<#expressions#>)
|
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : new <#type#>[<#size#>](<#expressions#>)
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: operator
|
2010-05-28 08:22:41 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : reinterpret_cast<<#type#>>(<#expression#>)
|
2019-05-06 21:18:00 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : return;
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: short
|
|
|
|
// CHECK-CC1-NEXT: COMPLETION: signed
|
2011-10-19 05:20:17 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : [#size_t#]sizeof(<#expression-or-type#>)
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: static
|
2010-05-28 08:22:41 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : static_cast<<#type#>>(<#expression#>)
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: struct
|
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : switch(<#condition#>){
|
|
|
|
// CHECK-CC1: COMPLETION: t : t
|
2011-10-19 05:20:17 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : [#void#]throw <#expression#>
|
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : [#bool#]true
|
2019-05-28 22:33:16 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : try{
|
|
|
|
// CHECK-CC1-NEXT: <#statements#>
|
|
|
|
// CHECK-CC1-NEXT: }catch(<#declaration#>){
|
|
|
|
// CHECK-CC1-NEXT: <#statements#>
|
|
|
|
// CHECK-CC1-NEXT: }
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC1: COMPLETION: TYPEDEF : TYPEDEF
|
2010-05-28 08:22:41 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : typedef <#type#> <#name#>
|
2011-10-19 05:20:17 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : [#std::type_info#]typeid(<#expression-or-type#>)
|
2010-05-28 08:22:41 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : typename <#qualifier#>::<#name#>
|
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : typeof <#expression#>
|
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : typeof(<#type#>)
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: union
|
|
|
|
// CHECK-CC1-NEXT: COMPLETION: unsigned
|
2019-05-06 21:18:00 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : using namespace <#identifier#>;
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: void
|
|
|
|
// CHECK-CC1-NEXT: COMPLETION: volatile
|
|
|
|
// CHECK-CC1-NEXT: COMPLETION: wchar_t
|
2019-05-28 22:33:16 +08:00
|
|
|
// CHECK-CC1-NEXT: COMPLETION: Pattern : while(<#condition#>){
|
|
|
|
// CHECK-CC1-NEXT: <#statements#>
|
|
|
|
// CHECK-CC1-NEXT: }
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC1: COMPLETION: X : X
|
|
|
|
// CHECK-CC1-NEXT: COMPLETION: y : [#int#]y
|
|
|
|
// CHECK-CC1-NEXT: COMPLETION: z : [#void#]z(<#int#>)
|
|
|
|
|
2015-08-28 02:49:15 +08:00
|
|
|
// 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
|
2010-04-07 04:11:37 +08:00
|
|
|
// CHECK-CC2: COMPLETION: Pattern : asm(<#string-literal#>)
|
2010-01-14 07:24:38 +08:00
|
|
|
// 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
|
2019-05-28 22:33:16 +08:00
|
|
|
// CHECK-CC2-NEXT: COMPLETION: Pattern : namespace <#identifier#>{
|
|
|
|
// CHECK-CC2-NEXT: <#declarations#>
|
|
|
|
// CHECK-CC2-NEXT: }
|
2019-05-06 21:18:00 +08:00
|
|
|
// CHECK-CC2: COMPLETION: Pattern : namespace <#name#> = <#namespace#>;
|
2010-01-14 07:24:38 +08:00
|
|
|
// 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
|
2010-04-07 04:11:37 +08:00
|
|
|
// CHECK-CC2-NEXT: COMPLETION: Pattern : template <#declaration#>
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC2-NEXT: COMPLETION: Pattern : template<<#parameters#>>
|
|
|
|
// CHECK-CC2-NEXT: COMPLETION: TYPEDEF : TYPEDEF
|
2010-05-28 08:22:41 +08:00
|
|
|
// 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#>)
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC2-NEXT: COMPLETION: union
|
|
|
|
// CHECK-CC2-NEXT: COMPLETION: unsigned
|
2019-05-06 21:18:00 +08:00
|
|
|
// CHECK-CC2-NEXT: COMPLETION: Pattern : using namespace <#identifier#>;
|
|
|
|
// CHECK-CC2-NEXT: COMPLETION: Pattern : using <#qualifier#>::<#name#>;
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC2-NEXT: COMPLETION: void
|
|
|
|
// CHECK-CC2-NEXT: COMPLETION: volatile
|
|
|
|
// CHECK-CC2-NEXT: COMPLETION: wchar_t
|
|
|
|
// CHECK-CC2-NEXT: COMPLETION: X : X
|
|
|
|
|
2015-08-28 02:49:15 +08:00
|
|
|
// 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
|
2010-01-14 07:24:38 +08:00
|
|
|
// 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#>>
|
2010-05-28 08:22:41 +08:00
|
|
|
// 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#>)
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC3-NEXT: COMPLETION: union
|
|
|
|
// CHECK-CC3-NEXT: COMPLETION: unsigned
|
2019-05-06 21:18:00 +08:00
|
|
|
// CHECK-CC3-NEXT: COMPLETION: Pattern : using <#qualifier#>::<#name#>;
|
2010-01-14 07:24:38 +08:00
|
|
|
// 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
|
|
|
|
|
2015-08-28 02:49:15 +08:00
|
|
|
// 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
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC4: COMPLETION: bool
|
|
|
|
// CHECK-CC4-NEXT: COMPLETION: char
|
|
|
|
// CHECK-CC4-NEXT: COMPLETION: class
|
|
|
|
// CHECK-CC4-NEXT: COMPLETION: const
|
2010-05-28 08:22:41 +08:00
|
|
|
// CHECK-CC4-NEXT: COMPLETION: Pattern : const_cast<<#type#>>(<#expression#>)
|
2011-10-19 05:20:17 +08:00
|
|
|
// CHECK-CC4-NEXT: COMPLETION: Pattern : [#void#]delete <#expression#>
|
|
|
|
// CHECK-CC4-NEXT: COMPLETION: Pattern : [#void#]delete [] <#expression#>
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC4-NEXT: COMPLETION: double
|
2010-05-28 08:22:41 +08:00
|
|
|
// CHECK-CC4-NEXT: COMPLETION: Pattern : dynamic_cast<<#type#>>(<#expression#>)
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC4-NEXT: COMPLETION: enum
|
2011-10-19 05:20:17 +08:00
|
|
|
// CHECK-CC4-NEXT: COMPLETION: Pattern : [#bool#]false
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC4-NEXT: COMPLETION: float
|
|
|
|
// CHECK-CC4-NEXT: COMPLETION: foo : [#void#]foo()
|
|
|
|
// CHECK-CC4-NEXT: COMPLETION: int
|
|
|
|
// CHECK-CC4-NEXT: COMPLETION: long
|
2010-05-28 08:22:41 +08:00
|
|
|
// CHECK-CC4-NEXT: COMPLETION: Pattern : new <#type#>(<#expressions#>)
|
|
|
|
// CHECK-CC4-NEXT: COMPLETION: Pattern : new <#type#>[<#size#>](<#expressions#>)
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC4-NEXT: COMPLETION: operator
|
2010-05-28 08:22:41 +08:00
|
|
|
// CHECK-CC4-NEXT: COMPLETION: Pattern : reinterpret_cast<<#type#>>(<#expression#>)
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC4-NEXT: COMPLETION: short
|
|
|
|
// CHECK-CC4-NEXT: COMPLETION: signed
|
2011-10-19 05:20:17 +08:00
|
|
|
// CHECK-CC4-NEXT: COMPLETION: Pattern : [#size_t#]sizeof(<#expression-or-type#>)
|
2010-05-28 08:22:41 +08:00
|
|
|
// CHECK-CC4-NEXT: COMPLETION: Pattern : static_cast<<#type#>>(<#expression#>)
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC4-NEXT: COMPLETION: struct
|
|
|
|
// CHECK-CC4-NEXT: COMPLETION: t : t
|
2011-10-19 05:20:17 +08:00
|
|
|
// CHECK-CC4-NEXT: COMPLETION: Pattern : [#void#]throw <#expression#>
|
|
|
|
// CHECK-CC4-NEXT: COMPLETION: Pattern : [#bool#]true
|
2010-01-14 07:24:38 +08:00
|
|
|
// CHECK-CC4-NEXT: COMPLETION: TYPEDEF : TYPEDEF
|
2011-10-19 05:20:17 +08:00
|
|
|
// CHECK-CC4-NEXT: COMPLETION: Pattern : [#std::type_info#]typeid(<#expression-or-type#>)
|
2010-05-28 08:22:41 +08:00
|
|
|
// CHECK-CC4-NEXT: COMPLETION: Pattern : typename <#qualifier#>::<#name#>
|
|
|
|
// CHECK-CC4-NEXT: COMPLETION: Pattern : typeof <#expression#>
|
|
|
|
// CHECK-CC4-NEXT: COMPLETION: Pattern : typeof(<#type#>)
|
2010-01-14 07:24:38 +08:00
|
|
|
// 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#>)
|
2011-04-12 10:47:21 +08:00
|
|
|
|
2015-08-28 02:49:15 +08:00
|
|
|
// 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
|
2011-04-12 10:47:21 +08:00
|
|
|
// 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#>)
|
2011-10-19 05:20:17 +08:00
|
|
|
// CHECK-NO-RTTI: COMPLETION: Pattern : [#void#]delete <#expression#>
|
|
|
|
// CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : [#void#]delete [] <#expression#>
|
2019-05-28 22:33:16 +08:00
|
|
|
// CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : do{
|
2011-04-12 10:47:21 +08:00
|
|
|
// CHECK-NO-RTTI: COMPLETION: double
|
|
|
|
// CHECK-NO-RTTI-NOT: dynamic_cast
|
|
|
|
// CHECK-NO-RTTI: COMPLETION: enum
|
|
|
|
// CHECK-NO-RTTI-NEXT: COMPLETION: extern
|
2011-10-19 05:20:17 +08:00
|
|
|
// CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : [#bool#]false
|
2011-04-12 10:47:21 +08:00
|
|
|
// 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#>){
|
2019-05-06 21:18:00 +08:00
|
|
|
// CHECK-NO-RTTI: COMPLETION: Pattern : goto <#label#>;
|
2019-05-28 22:33:16 +08:00
|
|
|
// CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : if(<#condition#>){
|
2011-04-12 10:47:21 +08:00
|
|
|
// 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#>)
|
2019-05-06 21:18:00 +08:00
|
|
|
// CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : return;
|
2011-04-12 10:47:21 +08:00
|
|
|
// CHECK-NO-RTTI-NEXT: COMPLETION: short
|
|
|
|
// CHECK-NO-RTTI-NEXT: COMPLETION: signed
|
2011-10-19 05:20:17 +08:00
|
|
|
// CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : [#size_t#]sizeof(<#expression-or-type#>)
|
2011-04-12 10:47:21 +08:00
|
|
|
// 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
|
2011-10-19 05:20:17 +08:00
|
|
|
// CHECK-NO-RTTI: COMPLETION: Pattern : [#bool#]true
|
2011-04-12 10:47:21 +08:00
|
|
|
// 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
|
2019-05-06 21:18:00 +08:00
|
|
|
// CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : using namespace <#identifier#>;
|
2011-04-12 10:47:21 +08:00
|
|
|
// CHECK-NO-RTTI-NEXT: COMPLETION: void
|
|
|
|
// CHECK-NO-RTTI-NEXT: COMPLETION: volatile
|
|
|
|
// CHECK-NO-RTTI-NEXT: COMPLETION: wchar_t
|
2019-05-28 22:33:16 +08:00
|
|
|
// CHECK-NO-RTTI-NEXT: COMPLETION: Pattern : while(<#condition#>){
|
2011-04-12 10:47:21 +08:00
|
|
|
// CHECK-NO-RTTI: COMPLETION: X : X
|
|
|
|
// CHECK-NO-RTTI-NEXT: COMPLETION: y : [#int#]y
|
|
|
|
// CHECK-NO-RTTI-NEXT: COMPLETION: z : [#void#]z(<#int#>)
|