brintos

brintos / llvm-project-archived public Read only

0
0
Text · 624 B · 9863031 Raw
16 lines · cpp
1#define FUNC(X) X2#define FUNCTOR3using FUNCTION = int();4// We should get all three completions when the cursor is at the beginning,5// middle, or end.6FUNC(int) a = 10;7// ^FUNC(int)8// RUN: %clang_cc1 -code-completion-at=%s:%(line-2):1 -code-completion-macros %s | FileCheck %s9// FU^NC(int)10// RUN: %clang_cc1 -code-completion-at=%s:%(line-4):3 -code-completion-macros %s | FileCheck %s11// FUNC^(int)12// RUN: %clang_cc1 -code-completion-at=%s:%(line-6):5 -code-completion-macros %s | FileCheck %s13 14// CHECK: COMPLETION: FUNC : FUNC(<#X#>)15// CHECK: COMPLETION: FUNCTION : FUNCTION16// CHECK: COMPLETION: FUNCTOR : FUNCTOR