diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-12-19 01:39:02 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-12-19 01:39:02 +0000 |
commit | c83c2300e1946fea78ecd3c2e93d9c2dd2638a2b (patch) | |
tree | 5f7c649d837df75ff3bcfaf0b76501c610f55ce1 /test/Index/recursive-cxx-member-calls.cpp | |
parent | 9fcc2ab2ec5e00802880e205568ff3afbd70a773 (diff) |
PR13470: Ensure that copy-list-initialization isntantiates as
copy-list-initialization (and doesn't add an additional copy step):
Fill in the ListInitialization bit when creating a CXXConstructExpr. Use it
when instantiating initializers in order to correctly handle instantiation of
copy-list-initialization. Teach TreeTransform that function arguments are
initializations, and so need this special treatment too. Finally, remove some
hacks which were working around SubstInitializer's shortcomings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170489 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/recursive-cxx-member-calls.cpp')
-rw-r--r-- | test/Index/recursive-cxx-member-calls.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Index/recursive-cxx-member-calls.cpp b/test/Index/recursive-cxx-member-calls.cpp index 501dc2954f..3f68614fbe 100644 --- a/test/Index/recursive-cxx-member-calls.cpp +++ b/test/Index/recursive-cxx-member-calls.cpp @@ -831,9 +831,9 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo * Name) { // CHECK-tokens: Punctuation: ")" [87:38 - 87:39] CXXConstructor=StringSwitch<T, R>:87:12 (Definition) // CHECK-tokens: Punctuation: ":" [87:40 - 87:41] CXXConstructor=StringSwitch<T, R>:87:12 (Definition) // CHECK-tokens: Identifier: "Str" [87:42 - 87:45] MemberRef=Str:84:13 -// CHECK-tokens: Punctuation: "(" [87:45 - 87:46] UnexposedExpr= +// CHECK-tokens: Punctuation: "(" [87:45 - 87:46] CallExpr=StringRef:38:7 // CHECK-tokens: Identifier: "Str" [87:46 - 87:49] DeclRefExpr=Str:87:35 -// CHECK-tokens: Punctuation: ")" [87:49 - 87:50] UnexposedExpr= +// CHECK-tokens: Punctuation: ")" [87:49 - 87:50] CallExpr=StringRef:38:7 // CHECK-tokens: Punctuation: "," [87:50 - 87:51] CXXConstructor=StringSwitch<T, R>:87:12 (Definition) // CHECK-tokens: Identifier: "Result" [87:52 - 87:58] MemberRef=Result:85:12 // CHECK-tokens: Punctuation: "(" [87:58 - 87:59] UnexposedExpr= @@ -1843,7 +1843,7 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo * Name) { // CHECK: 87:35: ParmDecl=Str:87:35 (Definition) Extent=[87:25 - 87:38] // CHECK: 87:25: TypeRef=class llvm::StringRef:38:7 Extent=[87:25 - 87:34] // CHECK: 87:42: MemberRef=Str:84:13 Extent=[87:42 - 87:45] -// CHECK: 87:45: UnexposedExpr= Extent=[87:45 - 87:50] +// CHECK: 87:42: CallExpr=StringRef:38:7 Extent=[87:42 - 87:50] // CHECK: 87:46: DeclRefExpr=Str:87:35 Extent=[87:46 - 87:49] // CHECK: 87:52: MemberRef=Result:85:12 Extent=[87:52 - 87:58] // CHECK: 87:58: UnexposedExpr= Extent=[87:58 - 87:61] |