diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-11-09 03:59:40 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-11-09 03:59:40 +0000 |
commit | 9b0ba87a5ee4d872ae60dbfe4cbd500e57b8a775 (patch) | |
tree | b91bd3eb04be93233a1a87ac45bfa91ca91c62bc /test/Index | |
parent | 46728793a250f93be0f1e67cebb6732cde800b4e (diff) |
Teach code completion not to include out-of-line declarations and
definitions in its results. The original declarations will be visible
wherever they are declared.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118484 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index')
-rw-r--r-- | test/Index/complete-exprs.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/Index/complete-exprs.cpp b/test/Index/complete-exprs.cpp index 1c99e7e7f8..b514c06bff 100644 --- a/test/Index/complete-exprs.cpp +++ b/test/Index/complete-exprs.cpp @@ -11,17 +11,19 @@ template<typename T> class vector { public: vector(const T &, unsigned n); - template<typename InputIterator> vector(InputIterator first, InputIterator last); + void push_back(const T&); }; - +template<typename T> void vector<T>::push_back(const T&) { } void f() { } // RUN: c-index-test -code-completion-at=%s:20:2 %s | FileCheck -check-prefix=CHECK-CC1 %s // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:20:2 %s | FileCheck -check-prefix=CHECK-CC1 %s +// CHECK-CC1: NotImplemented:{TypedText operator} (40) +// CHECK-CC1-NOT: push_back // CHECK-CC1: ClassDecl:{TypedText string} (50) // CHECK-CC1: CXXConstructor:{TypedText string}{LeftParen (}{RightParen )} (50) // CHECK-CC1: CXXConstructor:{TypedText string}{LeftParen (}{Placeholder const char *}{RightParen )} (50) |