diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-04-05 16:10:30 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-04-05 16:10:30 +0000 |
commit | f3df985ba781c71c2cc83f481ae2b1a2a70afce2 (patch) | |
tree | ea87899610d26b6b81c0d7784f32eeaf7deabf9f /clang/test/Index/complete-macros.c | |
parent | faa4905e0c5e40b5131793cab909f3ecd913dd9b (diff) | |
download | bcm5719-llvm-f3df985ba781c71c2cc83f481ae2b1a2a70afce2.tar.gz bcm5719-llvm-f3df985ba781c71c2cc83f481ae2b1a2a70afce2.zip |
Code completion results that refer to macros now get the cursor kind
of macro definitions when passed to CIndex. Add test for code
completion of macros via CIndex.
llvm-svn: 100431
Diffstat (limited to 'clang/test/Index/complete-macros.c')
-rw-r--r-- | clang/test/Index/complete-macros.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/Index/complete-macros.c b/clang/test/Index/complete-macros.c new file mode 100644 index 00000000000..c33d8c02e13 --- /dev/null +++ b/clang/test/Index/complete-macros.c @@ -0,0 +1,11 @@ +// Note: the run lines follow their respective tests, since line/column +// matter in this test. + +#define FOO(Arg1,Arg2) foobar + +void f() { + +} + +// RUN: c-index-test -code-completion-at=%s:7:1 %s | FileCheck -check-prefix=CHECK-CC1 %s +// CHECK-CC1: macro definition:{TypedText FOO}{LeftParen (}{Placeholder Arg1}{Comma , }{Placeholder Arg2}{RightParen )} |