Skip to content
This repository was archived by the owner on Jul 30, 2020. It is now read-only.

Commit 322fccd

Browse files
committed
Index tests need to be CRLF
1 parent ee01f8c commit 322fccd

39 files changed

+221
-222
lines changed

.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44
*.cc text eol=auto
55

66
# Tests must always be crlf
7-
full_tests/** text eol=crlf
8-
tests/** text eol=crlf
7+
index_tests/** text eol=crlf

index_tests/constructors/constructor.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void foo() {
6060
}],
6161
"vars": [{
6262
"id": 0,
63-
"usr": "c:constructor.cc@50@F@foo#@f",
63+
"usr": "c:constructor.cc@56@F@foo#@f",
6464
"short_name": "f",
6565
"detailed_name": "Foo f",
6666
"definition_spelling": "7:7-7:8",
@@ -70,7 +70,7 @@ void foo() {
7070
"uses": ["7:7-7:8"]
7171
}, {
7272
"id": 1,
73-
"usr": "c:constructor.cc@59@F@foo#@f2",
73+
"usr": "c:constructor.cc@66@F@foo#@f2",
7474
"short_name": "f2",
7575
"detailed_name": "Foo *f2",
7676
"definition_spelling": "8:8-8:10",

index_tests/constructors/destructor.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void foo() {
8080
}],
8181
"vars": [{
8282
"id": 0,
83-
"usr": "c:destructor.cc@63@F@foo#@f",
83+
"usr": "c:destructor.cc@70@F@foo#@f",
8484
"short_name": "f",
8585
"detailed_name": "Foo f",
8686
"definition_spelling": "8:7-8:8",

index_tests/constructors/implicit_constructor.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void Make() {
5959
}],
6060
"vars": [{
6161
"id": 0,
62-
"usr": "c:implicit_constructor.cc@46@F@Make#@foo0",
62+
"usr": "c:implicit_constructor.cc@51@F@Make#@foo0",
6363
"short_name": "foo0",
6464
"detailed_name": "Type foo0",
6565
"definition_spelling": "6:8-6:12",
@@ -69,7 +69,7 @@ void Make() {
6969
"uses": ["6:8-6:12"]
7070
}, {
7171
"id": 1,
72-
"usr": "c:implicit_constructor.cc@59@F@Make#@foo1",
72+
"usr": "c:implicit_constructor.cc@65@F@Make#@foo1",
7373
"short_name": "foo1",
7474
"detailed_name": "Type foo1",
7575
"definition_spelling": "7:8-7:12",

index_tests/constructors/make_functions.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ OUTPUT: make_functions.cc
129129
"skipped_by_preprocessor": [],
130130
"types": [{
131131
"id": 0,
132-
"usr": "c:make_functions.cc@39",
132+
"usr": "c:make_functions.cc@41",
133133
"short_name": "T",
134134
"detailed_name": "T",
135135
"definition_spelling": "3:20-3:21",
@@ -143,7 +143,7 @@ OUTPUT: make_functions.cc
143143
"uses": ["4:1-4:2", "3:20-3:21"]
144144
}, {
145145
"id": 1,
146-
"usr": "c:make_functions.cc@51",
146+
"usr": "c:make_functions.cc@53",
147147
"short_name": "Args",
148148
"detailed_name": "Args",
149149
"definition_spelling": "3:35-3:39",
@@ -157,7 +157,7 @@ OUTPUT: make_functions.cc
157157
"uses": ["3:35-3:39", "4:15-4:19"]
158158
}, {
159159
"id": 2,
160-
"usr": "c:make_functions.cc@132",
160+
"usr": "c:make_functions.cc@139",
161161
"short_name": "T",
162162
"detailed_name": "T",
163163
"definition_spelling": "8:20-8:21",
@@ -171,7 +171,7 @@ OUTPUT: make_functions.cc
171171
"uses": ["9:1-9:2", "8:20-8:21"]
172172
}, {
173173
"id": 3,
174-
"usr": "c:make_functions.cc@144",
174+
"usr": "c:make_functions.cc@151",
175175
"short_name": "Args",
176176
"detailed_name": "Args",
177177
"definition_spelling": "8:35-8:39",
@@ -301,7 +301,7 @@ OUTPUT: make_functions.cc
301301
}],
302302
"vars": [{
303303
"id": 0,
304-
"usr": "c:make_functions.cc@83@FT@>2#T#pTMakeUnique#P&&t0.1#*t0.0#@args",
304+
"usr": "c:make_functions.cc@86@FT@>2#T#pTMakeUnique#P&&t0.1#*t0.0#@args",
305305
"short_name": "args",
306306
"detailed_name": "Args &&... args",
307307
"definition_spelling": "4:25-4:29",
@@ -310,7 +310,7 @@ OUTPUT: make_functions.cc
310310
"uses": ["4:25-4:29"]
311311
}, {
312312
"id": 1,
313-
"usr": "c:make_functions.cc@177@FT@>2#T#pTmaKE_NoRefs#Pt0.1#*t0.0#@args",
313+
"usr": "c:make_functions.cc@185@FT@>2#T#pTmaKE_NoRefs#Pt0.1#*t0.0#@args",
314314
"short_name": "args",
315315
"detailed_name": "Args... args",
316316
"definition_spelling": "9:24-9:28",

index_tests/declaration_vs_definition/func_associated_function_params.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ int foo(int a, int b) { return 0; }
4242
}],
4343
"vars": [{
4444
"id": 0,
45-
"usr": "c:func_associated_function_params.cc@87@F@foo#I#I#@a",
45+
"usr": "c:func_associated_function_params.cc@91@F@foo#I#I#@a",
4646
"short_name": "a",
4747
"detailed_name": "int a",
4848
"definition_spelling": "5:13-5:14",
@@ -51,7 +51,7 @@ int foo(int a, int b) { return 0; }
5151
"uses": ["5:13-5:14"]
5252
}, {
5353
"id": 1,
54-
"usr": "c:func_associated_function_params.cc@94@F@foo#I#I#@b",
54+
"usr": "c:func_associated_function_params.cc@98@F@foo#I#I#@b",
5555
"short_name": "b",
5656
"detailed_name": "int b",
5757
"definition_spelling": "5:20-5:21",

index_tests/inheritance/class_inherit_templated_parent.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class Derived : Base1<3>, Base2<Derived>, Derived1<4>, Derived2<Derived> {};
7575
"uses": ["11:7-11:15", "13:56-13:64"]
7676
}, {
7777
"id": 4,
78-
"usr": "c:class_inherit_templated_parent.cc@145",
78+
"usr": "c:class_inherit_templated_parent.cc@154",
7979
"short_name": "T",
8080
"detailed_name": "T",
8181
"definition_spelling": "10:19-10:20",
@@ -105,7 +105,7 @@ class Derived : Base1<3>, Base2<Derived>, Derived1<4>, Derived2<Derived> {};
105105
"funcs": [],
106106
"vars": [{
107107
"id": 0,
108-
"usr": "c:class_inherit_templated_parent.cc@89",
108+
"usr": "c:class_inherit_templated_parent.cc@95",
109109
"short_name": "T",
110110
"detailed_name": "unsigned int T",
111111
"definition_spelling": "7:23-7:24",

index_tests/lambdas/lambda.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void foo() {
1818
"skipped_by_preprocessor": [],
1919
"types": [{
2020
"id": 0,
21-
"usr": "c:lambda.cc@44@F@foo#@Sa",
21+
"usr": "c:lambda.cc@47@F@foo#@Sa",
2222
"short_name": "",
2323
"detailed_name": "",
2424
"parents": [],
@@ -46,7 +46,7 @@ void foo() {
4646
}, {
4747
"id": 1,
4848
"is_operator": false,
49-
"usr": "c:lambda.cc@54@F@foo#@Sa@F@operator()#I#1",
49+
"usr": "c:lambda.cc@57@F@foo#@Sa@F@operator()#I#1",
5050
"short_name": "",
5151
"detailed_name": "",
5252
"declarations": [],
@@ -58,7 +58,7 @@ void foo() {
5858
}],
5959
"vars": [{
6060
"id": 0,
61-
"usr": "c:lambda.cc@15@F@foo#@x",
61+
"usr": "c:lambda.cc@16@F@foo#@x",
6262
"short_name": "x",
6363
"detailed_name": "int x",
6464
"definition_spelling": "2:7-2:8",
@@ -67,7 +67,7 @@ void foo() {
6767
"uses": ["2:7-2:8", "5:7-5:8", "4:24-4:25"]
6868
}, {
6969
"id": 1,
70-
"usr": "c:lambda.cc@25@F@foo#@dosomething",
70+
"usr": "c:lambda.cc@28@F@foo#@dosomething",
7171
"short_name": "dosomething",
7272
"detailed_name": "lambda dosomething",
7373
"definition_spelling": "4:8-4:19",
@@ -77,7 +77,7 @@ void foo() {
7777
"uses": ["4:8-4:19", "9:3-9:14", "10:3-10:14", "11:3-11:14"]
7878
}, {
7979
"id": 2,
80-
"usr": "c:lambda.cc@49@F@foo#@Sa@F@operator()#I#1@y",
80+
"usr": "c:lambda.cc@52@F@foo#@Sa@F@operator()#I#1@y",
8181
"short_name": "y",
8282
"detailed_name": "int y",
8383
"definition_spelling": "4:31-4:32",

index_tests/macros/foo.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ int x = A;
6464
"uses": ["1:9-1:10", "8:9-8:10"]
6565
}, {
6666
"id": 2,
67-
"usr": "c:foo.cc@20@macro@DISALLOW",
67+
"usr": "c:foo.cc@21@macro@DISALLOW",
6868
"short_name": "DISALLOW",
6969
"detailed_name": "DISALLOW",
7070
"hover": "#define DISALLOW(type) type(type&&) = delete;",

index_tests/namespaces/namespace_alias.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void func() {
4545
"uses": ["4:18-4:21", "12:26-12:29", "13:16-13:19"]
4646
}, {
4747
"id": 1,
48-
"usr": "c:namespace_alias.cc@156@F@func#@a",
48+
"usr": "c:namespace_alias.cc@167@F@func#@a",
4949
"short_name": "a",
5050
"detailed_name": "int a",
5151
"definition_spelling": "12:7-12:8",
@@ -54,7 +54,7 @@ void func() {
5454
"uses": ["12:7-12:8"]
5555
}, {
5656
"id": 2,
57-
"usr": "c:namespace_alias.cc@186@F@func#@b",
57+
"usr": "c:namespace_alias.cc@198@F@func#@b",
5858
"short_name": "b",
5959
"detailed_name": "int b",
6060
"definition_spelling": "13:7-13:8",

index_tests/namespaces/namespace_reference.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void Runner() {
5555
"uses": ["2:7-2:10", "7:18-7:21", "9:10-9:13"]
5656
}, {
5757
"id": 1,
58-
"usr": "c:namespace_reference.cc@40@N@ns@F@Accept#I#@a",
58+
"usr": "c:namespace_reference.cc@42@N@ns@F@Accept#I#@a",
5959
"short_name": "a",
6060
"detailed_name": "int a",
6161
"definition_spelling": "3:19-3:20",

0 commit comments

Comments
 (0)