diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-09-18 20:05:18 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-09-18 20:05:18 +0000 |
commit | c811ede9b7cb930a1463e2d9e9a077d62ee00107 (patch) | |
tree | 64fb0b308a16b57a946d20429fb4935113155b7f /clang/test/CodeCompletion/operator.cpp | |
parent | 722b1eefdb555ca102e6e64284d8c6842e8e0f5d (diff) | |
download | bcm5719-llvm-c811ede9b7cb930a1463e2d9e9a077d62ee00107.tar.gz bcm5719-llvm-c811ede9b7cb930a1463e2d9e9a077d62ee00107.zip |
C++ code completion after the "operator" keyword. Provide overloaded
operators, type specifiers, type names, and nested-name-specifiers.
llvm-svn: 82264
Diffstat (limited to 'clang/test/CodeCompletion/operator.cpp')
-rw-r--r-- | clang/test/CodeCompletion/operator.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/clang/test/CodeCompletion/operator.cpp b/clang/test/CodeCompletion/operator.cpp new file mode 100644 index 00000000000..808940526fb --- /dev/null +++ b/clang/test/CodeCompletion/operator.cpp @@ -0,0 +1,19 @@ +// RUN: clang-cc -fsyntax-only -code-completion-dump=1 %s -o - | FileCheck -check-prefix=CC1 %s && +// RUN: true + +class T { }; + +typedef int Integer; + +namespace N { } + +void f() { + typedef float Float; + + // CHECK-CC1: Float : 0 + // CHECK-CC1: + : 0 + // CHECK-CC1: short : 0 + // CHECK-CC1: Integer : 2 + // CHECK-CC1: T : 2 + // CHECK-CC1: N : 5 + operator |