diff options
author | Abramo Bagnara <abramo.bagnara@gmail.com> | 2011-03-08 08:55:46 +0000 |
---|---|---|
committer | Abramo Bagnara <abramo.bagnara@gmail.com> | 2011-03-08 08:55:46 +0000 |
commit | ff676cb48fe8bf7be2feaa251dc7c5fb15af4730 (patch) | |
tree | 980c79f4bb390f3c84823e06a04ef25f6a3ff27f /test/Index/recursive-cxx-member-calls.cpp | |
parent | 36784e78bcce1dbaf35f94a655394e348b4d9ac7 (diff) |
Fixed source range for all DeclaratorDecl's.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127225 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 | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/test/Index/recursive-cxx-member-calls.cpp b/test/Index/recursive-cxx-member-calls.cpp index 1fc1acb035..0f39c7472b 100644 --- a/test/Index/recursive-cxx-member-calls.cpp +++ b/test/Index/recursive-cxx-member-calls.cpp @@ -823,7 +823,7 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo * Name) { // CHECK-tokens: Punctuation: ";" [85:18 - 85:19] ClassTemplate=StringSwitch:83:47 (Definition) // CHECK-tokens: Keyword: "public" [86:1 - 86:7] UnexposedDecl=:86:1 (Definition) // CHECK-tokens: Punctuation: ":" [86:7 - 86:8] UnexposedDecl=:86:1 (Definition) -// CHECK-tokens: Keyword: "explicit" [87:3 - 87:11] ClassTemplate=StringSwitch:83:47 (Definition) +// CHECK-tokens: Keyword: "explicit" [87:3 - 87:11] CXXConstructor=StringSwitch<T, R>:87:12 (Definition) // CHECK-tokens: Identifier: "StringSwitch" [87:12 - 87:24] CXXConstructor=StringSwitch<T, R>:87:12 (Definition) // CHECK-tokens: Punctuation: "(" [87:24 - 87:25] CXXConstructor=StringSwitch<T, R>:87:12 (Definition) // CHECK-tokens: Identifier: "StringRef" [87:25 - 87:34] TypeRef=class llvm::StringRef:38:7 @@ -1531,16 +1531,16 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo * Name) { // CHECK: 4:44: ClassTemplate=pair:4:44 (Definition) Extent=[4:3 - 4:64] // CHECK: 4:20: TemplateTypeParameter=_T1:4:20 (Definition) Extent=[4:14 - 4:23] // CHECK: 4:31: TemplateTypeParameter=_T2:4:31 (Definition) Extent=[4:25 - 4:34] -// CHECK: 4:55: FieldDecl=second:4:55 (Definition) Extent=[4:55 - 4:61] +// CHECK: 4:55: FieldDecl=second:4:55 (Definition) Extent=[4:51 - 4:61] // CHECK: 6:8: UnexposedDecl=:6:8 (Definition) Extent=[6:8 - 9:2] -// CHECK: 7:7: FunctionDecl=memcmp:7:7 Extent=[7:7 - 7:49] -// CHECK: 7:26: ParmDecl=:7:26 (Definition) Extent=[7:20 - 7:27] -// CHECK: 7:40: ParmDecl=:7:40 (Definition) Extent=[7:34 - 7:41] +// CHECK: 7:7: FunctionDecl=memcmp:7:7 Extent=[7:3 - 7:49] +// CHECK: 7:26: ParmDecl=:7:26 (Definition) Extent=[7:14 - 7:27] +// CHECK: 7:40: ParmDecl=:7:40 (Definition) Extent=[7:28 - 7:41] // CHECK: 7:48: ParmDecl=:7:48 (Definition) Extent=[7:42 - 7:49] // CHECK: 7:42: TypeRef=size_t:2:25 Extent=[7:42 - 7:48] -// CHECK: 8:10: FunctionDecl=strlen:8:10 Extent=[8:10 - 8:30] +// CHECK: 8:10: FunctionDecl=strlen:8:10 Extent=[8:3 - 8:30] // CHECK: 8:3: TypeRef=size_t:2:25 Extent=[8:3 - 8:9] -// CHECK: 8:29: ParmDecl=:8:29 (Definition) Extent=[8:23 - 8:30] +// CHECK: 8:29: ParmDecl=:8:29 (Definition) Extent=[8:17 - 8:30] // CHECK: 10:17: Namespace=clang:10:17 (Definition) Extent=[10:17 - 35:2] // CHECK: 11:9: ClassDecl=IdentifierInfo:11:9 Extent=[11:3 - 11:23] // CHECK: 12:9: ClassDecl=AttributeList:12:9 (Definition) Extent=[12:3 - 34:4] @@ -1616,18 +1616,18 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo * Name) { // CHECK: 30:40: EnumConstantDecl=AT_init_priority:30:40 (Definition) Extent=[30:40 - 30:56] // CHECK: 31:7: EnumConstantDecl=IgnoredAttribute:31:7 (Definition) Extent=[31:7 - 31:23] // CHECK: 31:25: EnumConstantDecl=UnknownAttribute:31:25 (Definition) Extent=[31:25 - 31:41] -// CHECK: 33:17: CXXMethod=getKind:33:17 Extent=[33:17 - 33:53] +// CHECK: 33:17: CXXMethod=getKind:33:17 Extent=[33:5 - 33:53] // CHECK: 33:12: TypeRef=enum clang::AttributeList::Kind:13:10 Extent=[33:12 - 33:16] -// CHECK: 33:48: ParmDecl=Name:33:48 (Definition) Extent=[33:31 - 33:52] +// CHECK: 33:48: ParmDecl=Name:33:48 (Definition) Extent=[33:25 - 33:52] // CHECK: 33:31: TypeRef=class clang::IdentifierInfo:66:7 Extent=[33:31 - 33:45] -// CHECK: 36:8: FunctionDecl=magic_length:36:8 Extent=[36:8 - 36:35] +// CHECK: 36:8: FunctionDecl=magic_length:36:8 Extent=[36:1 - 36:35] // CHECK: 36:1: TypeRef=size_t:2:25 Extent=[36:1 - 36:7] -// CHECK: 36:33: ParmDecl=s:36:33 (Definition) Extent=[36:27 - 36:34] +// CHECK: 36:33: ParmDecl=s:36:33 (Definition) Extent=[36:21 - 36:34] // CHECK: 37:11: Namespace=llvm:37:11 (Definition) Extent=[37:11 - 64:2] // CHECK: 38:7: ClassDecl=StringRef:38:7 (Definition) Extent=[38:1 - 63:2] // CHECK: 39:1: UnexposedDecl=:39:1 (Definition) Extent=[39:1 - 39:8] // CHECK: 40:23: TypedefDecl=iterator:40:23 (Definition) Extent=[40:3 - 40:31] -// CHECK: 41:23: VarDecl=npos:41:23 Extent=[41:16 - 41:40] +// CHECK: 41:23: VarDecl=npos:41:23 Extent=[41:3 - 41:40] // CHECK: 41:16: TypeRef=size_t:2:25 Extent=[41:16 - 41:22] // CHECK: 41:30: UnexposedExpr= Extent=[41:30 - 41:40] // CHECK: 41:31: UnexposedExpr= Extent=[41:31 - 41:40] @@ -1635,10 +1635,10 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo * Name) { // CHECK: 41:38: UnexposedExpr= Extent=[41:38 - 41:39] // CHECK: 41:38: UnexposedExpr= Extent=[41:38 - 41:39] // CHECK: 42:1: UnexposedDecl=:42:1 (Definition) Extent=[42:1 - 42:9] -// CHECK: 43:15: FieldDecl=Data:43:15 (Definition) Extent=[43:15 - 43:19] -// CHECK: 44:10: FieldDecl=Length:44:10 (Definition) Extent=[44:10 - 44:16] +// CHECK: 43:15: FieldDecl=Data:43:15 (Definition) Extent=[43:3 - 43:19] +// CHECK: 44:10: FieldDecl=Length:44:10 (Definition) Extent=[44:3 - 44:16] // CHECK: 44:3: TypeRef=size_t:2:25 Extent=[44:3 - 44:9] -// CHECK: 45:17: CXXMethod=min:45:17 (Definition) Extent=[45:17 - 45:66] +// CHECK: 45:17: CXXMethod=min:45:17 (Definition) Extent=[45:3 - 45:66] // CHECK: 45:10: TypeRef=size_t:2:25 Extent=[45:10 - 45:16] // CHECK: 45:28: ParmDecl=a:45:28 (Definition) Extent=[45:21 - 45:29] // CHECK: 45:21: TypeRef=size_t:2:25 Extent=[45:21 - 45:27] @@ -1662,7 +1662,7 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo * Name) { // CHECK: 47:32: UnexposedExpr= Extent=[47:32 - 47:33] // CHECK: 47:35: UnexposedStmt= Extent=[47:35 - 47:37] // CHECK: 48:3: CXXConstructor=StringRef:48:3 (Definition) Extent=[48:3 - 48:71] -// CHECK: 48:25: ParmDecl=Str:48:25 (Definition) Extent=[48:19 - 48:28] +// CHECK: 48:25: ParmDecl=Str:48:25 (Definition) Extent=[48:13 - 48:28] // CHECK: 48:32: MemberRef=Data:43:15 Extent=[48:32 - 48:36] // CHECK: 48:37: DeclRefExpr=Str:48:25 Extent=[48:37 - 48:40] // CHECK: 48:43: MemberRef=Length:44:10 Extent=[48:43 - 48:49] @@ -1672,7 +1672,7 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo * Name) { // CHECK: 48:63: DeclRefExpr=Str:48:25 Extent=[48:63 - 48:66] // CHECK: 48:69: UnexposedStmt= Extent=[48:69 - 48:71] // CHECK: 49:3: CXXConstructor=StringRef:49:3 (Definition) Extent=[49:3 - 49:77] -// CHECK: 49:25: ParmDecl=data:49:25 (Definition) Extent=[49:19 - 49:29] +// CHECK: 49:25: ParmDecl=data:49:25 (Definition) Extent=[49:13 - 49:29] // CHECK: 49:38: ParmDecl=length:49:38 (Definition) Extent=[49:31 - 49:44] // CHECK: 49:31: TypeRef=size_t:2:25 Extent=[49:31 - 49:37] // CHECK: 49:48: MemberRef=Data:43:15 Extent=[49:48 - 49:52] @@ -1680,17 +1680,17 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo * Name) { // CHECK: 49:60: MemberRef=Length:44:10 Extent=[49:60 - 49:66] // CHECK: 49:67: DeclRefExpr=length:49:38 Extent=[49:67 - 49:73] // CHECK: 49:75: UnexposedStmt= Extent=[49:75 - 49:77] -// CHECK: 50:12: CXXMethod=end:50:12 (Definition) Extent=[50:12 - 50:40] +// CHECK: 50:12: CXXMethod=end:50:12 (Definition) Extent=[50:3 - 50:40] // CHECK: 50:3: TypeRef=iterator:40:23 Extent=[50:3 - 50:11] // CHECK: 50:24: UnexposedStmt= Extent=[50:24 - 50:40] // CHECK: 50:26: UnexposedStmt= Extent=[50:26 - 50:37] // CHECK: 50:33: MemberRefExpr=Data:43:15 Extent=[50:33 - 50:37] -// CHECK: 51:10: CXXMethod=size:51:10 (Definition) Extent=[51:10 - 51:41] +// CHECK: 51:10: CXXMethod=size:51:10 (Definition) Extent=[51:3 - 51:41] // CHECK: 51:3: TypeRef=size_t:2:25 Extent=[51:3 - 51:9] // CHECK: 51:23: UnexposedStmt= Extent=[51:23 - 51:41] // CHECK: 51:25: UnexposedStmt= Extent=[51:25 - 51:38] // CHECK: 51:32: MemberRefExpr=Length:44:10 Extent=[51:32 - 51:38] -// CHECK: 52:8: CXXMethod=startswith:52:8 (Definition) Extent=[52:8 - 55:4] +// CHECK: 52:8: CXXMethod=startswith:52:8 (Definition) Extent=[52:3 - 55:4] // CHECK: 52:29: ParmDecl=Prefix:52:29 (Definition) Extent=[52:19 - 52:35] // CHECK: 52:19: TypeRef=class llvm::StringRef:38:7 Extent=[52:19 - 52:28] // CHECK: 52:43: UnexposedStmt= Extent=[52:43 - 55:4] @@ -1713,7 +1713,7 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo * Name) { // CHECK: 54:44: MemberRefExpr=Length:44:10 Extent=[54:37 - 54:50] // CHECK: 54:37: DeclRefExpr=Prefix:52:29 Extent=[54:37 - 54:43] // CHECK: 54:55: UnexposedExpr= Extent=[54:55 - 54:56] -// CHECK: 56:8: CXXMethod=endswith:56:8 (Definition) Extent=[56:8 - 59:4] +// CHECK: 56:8: CXXMethod=endswith:56:8 (Definition) Extent=[56:3 - 59:4] // CHECK: 56:27: ParmDecl=Suffix:56:27 (Definition) Extent=[56:17 - 56:33] // CHECK: 56:17: TypeRef=class llvm::StringRef:38:7 Extent=[56:17 - 56:26] // CHECK: 56:41: UnexposedStmt= Extent=[56:41 - 59:4] @@ -1740,7 +1740,7 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo * Name) { // CHECK: 58:57: MemberRefExpr=Length:44:10 Extent=[58:50 - 58:63] // CHECK: 58:50: DeclRefExpr=Suffix:56:27 Extent=[58:50 - 58:56] // CHECK: 58:68: UnexposedExpr= Extent=[58:68 - 58:69] -// CHECK: 60:13: CXXMethod=substr:60:13 (Definition) Extent=[60:13 - 62:4] +// CHECK: 60:13: CXXMethod=substr:60:13 (Definition) Extent=[60:3 - 62:4] // CHECK: 60:3: TypeRef=class llvm::StringRef:38:7 Extent=[60:3 - 60:12] // CHECK: 60:27: ParmDecl=Start:60:27 (Definition) Extent=[60:20 - 60:32] // CHECK: 60:20: TypeRef=size_t:2:25 Extent=[60:20 - 60:26] @@ -1769,7 +1769,7 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo * Name) { // CHECK: 66:7: ClassDecl=IdentifierInfo:66:7 (Definition) Extent=[66:1 - 80:2] // CHECK: 67:1: UnexposedDecl=:67:1 (Definition) Extent=[67:1 - 67:8] // CHECK: 67:8: CXXConstructor=IdentifierInfo:67:8 Extent=[67:8 - 67:24] -// CHECK: 68:15: CXXMethod=getNameStart:68:15 (Definition) Extent=[68:15 - 71:4] +// CHECK: 68:15: CXXMethod=getNameStart:68:15 (Definition) Extent=[68:3 - 71:4] // CHECK: 68:36: UnexposedStmt= Extent=[68:36 - 71:4] // CHECK: 69:5: UnexposedStmt= Extent=[69:5 - 69:65] // CHECK: 69:54: TypedefDecl=actualtype:69:54 (Definition) Extent=[69:5 - 69:64] @@ -1781,14 +1781,14 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo * Name) { // CHECK: 70:13: UnexposedExpr= Extent=[70:13 - 70:38] // CHECK: 70:20: TypeRef=actualtype:69:54 Extent=[70:20 - 70:30] // CHECK: 70:34: UnexposedExpr= Extent=[70:34 - 70:38] -// CHECK: 72:12: CXXMethod=getLength:72:12 (Definition) Extent=[72:12 - 76:4] +// CHECK: 72:12: CXXMethod=getLength:72:12 (Definition) Extent=[72:3 - 76:4] // CHECK: 72:30: UnexposedStmt= Extent=[72:30 - 76:4] // CHECK: 73:5: UnexposedStmt= Extent=[73:5 - 73:65] // CHECK: 73:54: TypedefDecl=actualtype:73:54 (Definition) Extent=[73:5 - 73:64] // CHECK: 73:18: TemplateRef=pair:4:44 Extent=[73:18 - 73:22] // CHECK: 73:25: TypeRef=class clang::IdentifierInfo:66:7 Extent=[73:25 - 73:39] // CHECK: 74:5: UnexposedStmt= Extent=[74:5 - 74:61] -// CHECK: 74:17: VarDecl=p:74:17 (Definition) Extent=[74:11 - 74:60] +// CHECK: 74:17: VarDecl=p:74:17 (Definition) Extent=[74:5 - 74:60] // CHECK: 74:21: UnexposedExpr= Extent=[74:21 - 74:60] // CHECK: 74:21: UnexposedExpr=second:4:55 Extent=[74:21 - 74:56] // CHECK: 74:50: MemberRefExpr=second:4:55 Extent=[74:21 - 74:56] @@ -1820,7 +1820,7 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo * Name) { // CHECK: 75:55: UnexposedExpr= Extent=[75:55 - 75:56] // CHECK: 75:61: UnexposedExpr= Extent=[75:61 - 75:62] // CHECK: 75:61: UnexposedExpr= Extent=[75:61 - 75:62] -// CHECK: 77:19: CXXMethod=getName:77:19 (Definition) Extent=[77:19 - 79:4] +// CHECK: 77:19: CXXMethod=getName:77:19 (Definition) Extent=[77:3 - 79:4] // CHECK: 77:35: UnexposedStmt= Extent=[77:35 - 79:4] // CHECK: 78:5: UnexposedStmt= Extent=[78:5 - 78:56] // CHECK: 78:12: CallExpr= Extent=[78:12 - 78:56] @@ -1835,11 +1835,11 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo * Name) { // CHECK: 83:47: ClassTemplate=StringSwitch:83:47 (Definition) Extent=[83:1 - 95:2] // CHECK: 83:21: TemplateTypeParameter=T:83:21 (Definition) Extent=[83:12 - 83:22] // CHECK: 83:33: TemplateTypeParameter=R:83:33 (Definition) Extent=[83:24 - 83:38] -// CHECK: 84:13: FieldDecl=Str:84:13 (Definition) Extent=[84:13 - 84:16] +// CHECK: 84:13: FieldDecl=Str:84:13 (Definition) Extent=[84:3 - 84:16] // CHECK: 84:3: TypeRef=class llvm::StringRef:38:7 Extent=[84:3 - 84:12] -// CHECK: 85:12: FieldDecl=Result:85:12 (Definition) Extent=[85:12 - 85:18] +// CHECK: 85:12: FieldDecl=Result:85:12 (Definition) Extent=[85:3 - 85:18] // CHECK: 86:1: UnexposedDecl=:86:1 (Definition) Extent=[86:1 - 86:8] -// CHECK: 87:12: CXXConstructor=StringSwitch<T, R>:87:12 (Definition) Extent=[87:12 - 87:64] +// CHECK: 87:12: CXXConstructor=StringSwitch<T, R>:87:12 (Definition) Extent=[87:3 - 87:64] // 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] @@ -1851,23 +1851,23 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo * Name) { // CHECK: 87:62: UnexposedStmt= Extent=[87:62 - 87:64] // CHECK: 88:42: FunctionTemplate=Case:88:42 (Definition) Extent=[88:3 - 91:4] // CHECK: 88:23: NonTypeTemplateParameter=N:88:23 (Definition) Extent=[88:14 - 88:24] -// CHECK: 88:60: ParmDecl=S:88:60 (Definition) Extent=[88:53 - 88:61] +// CHECK: 88:60: ParmDecl=S:88:60 (Definition) Extent=[88:47 - 88:61] // CHECK: 88:63: DeclRefExpr=N:88:23 Extent=[88:63 - 88:64] -// CHECK: 89:57: ParmDecl=Value:89:57 (Definition) Extent=[89:53 - 89:62] +// CHECK: 89:57: ParmDecl=Value:89:57 (Definition) Extent=[89:47 - 89:62] // CHECK: 89:64: UnexposedStmt= Extent=[89:64 - 91:4] // CHECK: 90:5: UnexposedStmt= Extent=[90:5 - 90:17] // CHECK: 90:12: UnexposedExpr= Extent=[90:12 - 90:17] // CHECK: 90:13: UnexposedExpr= Extent=[90:13 - 90:17] -// CHECK: 92:5: CXXMethod=Default:92:5 (Definition) Extent=[92:5 - 94:4] -// CHECK: 92:23: ParmDecl=Value:92:23 (Definition) Extent=[92:19 - 92:28] +// CHECK: 92:5: CXXMethod=Default:92:5 (Definition) Extent=[92:3 - 94:4] +// CHECK: 92:23: ParmDecl=Value:92:23 (Definition) Extent=[92:13 - 92:28] // CHECK: 92:36: UnexposedStmt= Extent=[92:36 - 94:4] // CHECK: 93:5: UnexposedStmt= Extent=[93:5 - 93:17] // CHECK: 93:12: DeclRefExpr=Value:92:23 Extent=[93:12 - 93:17] // CHECK: 98:17: UsingDirective=:98:17 Extent=[98:1 - 98:22] // CHECK: 98:17: NamespaceRef=clang:10:17 Extent=[98:17 - 98:22] -// CHECK: 100:36: CXXMethod=getKind:100:36 (Definition) Extent=[100:36 - 186:2] +// CHECK: 100:36: CXXMethod=getKind:100:36 (Definition) Extent=[100:1 - 186:2] // CHECK: 100:21: TypeRef=class clang::AttributeList:12:9 Extent=[100:21 - 100:34] -// CHECK: 100:67: ParmDecl=Name:100:67 (Definition) Extent=[100:50 - 100:71] +// CHECK: 100:67: ParmDecl=Name:100:67 (Definition) Extent=[100:44 - 100:71] // CHECK: 100:50: TypeRef=class clang::IdentifierInfo:66:7 Extent=[100:50 - 100:64] // CHECK: 100:73: UnexposedStmt= Extent=[100:73 - 186:2] // CHECK: 101:3: UnexposedStmt= Extent=[101:3 - 101:46] |