@@ -4197,9 +4197,8 @@ ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(
4197
4197
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(
4198
4198
RedeclChain, Variable, ,
4199
4199
PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition)
4200
- // FIXME Enable this test, once we import function templates chains correctly.
4201
4200
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(
4202
- RedeclChain, FunctionTemplate, DISABLED_ ,
4201
+ RedeclChain, FunctionTemplate, ,
4203
4202
PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition)
4204
4203
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(
4205
4204
RedeclChain, ClassTemplate, ,
@@ -4214,9 +4213,8 @@ ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(
4214
4213
RedeclChain, Class, , DefinitionShouldBeImportedAsADefinition)
4215
4214
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(
4216
4215
RedeclChain, Variable, , DefinitionShouldBeImportedAsADefinition)
4217
- // FIXME Enable this test, once we import function templates chains correctly.
4218
4216
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(
4219
- RedeclChain, FunctionTemplate, DISABLED_ ,
4217
+ RedeclChain, FunctionTemplate, ,
4220
4218
DefinitionShouldBeImportedAsADefinition)
4221
4219
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(
4222
4220
RedeclChain, ClassTemplate, , DefinitionShouldBeImportedAsADefinition)
@@ -4230,9 +4228,7 @@ ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, Class, ,
4230
4228
ImportPrototypeAfterImportedPrototype)
4231
4229
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, Variable, ,
4232
4230
ImportPrototypeAfterImportedPrototype)
4233
- // FIXME Enable this test, once we import function templates chains correctly.
4234
- ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, FunctionTemplate,
4235
- DISABLED_,
4231
+ ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, FunctionTemplate, ,
4236
4232
ImportPrototypeAfterImportedPrototype)
4237
4233
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, ClassTemplate, ,
4238
4234
ImportPrototypeAfterImportedPrototype)
@@ -4245,9 +4241,7 @@ ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, Class, ,
4245
4241
ImportDefinitionAfterImportedPrototype)
4246
4242
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, Variable, ,
4247
4243
ImportDefinitionAfterImportedPrototype)
4248
- // FIXME Enable this test, once we import function templates chains correctly.
4249
- ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, FunctionTemplate,
4250
- DISABLED_,
4244
+ ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, FunctionTemplate, ,
4251
4245
ImportDefinitionAfterImportedPrototype)
4252
4246
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, ClassTemplate, ,
4253
4247
ImportDefinitionAfterImportedPrototype)
@@ -4260,9 +4254,7 @@ ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, Class, ,
4260
4254
ImportPrototypeAfterImportedDefinition)
4261
4255
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, Variable, ,
4262
4256
ImportPrototypeAfterImportedDefinition)
4263
- // FIXME Enable this test, once we import function templates chains correctly.
4264
- ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, FunctionTemplate,
4265
- DISABLED_,
4257
+ ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, FunctionTemplate, ,
4266
4258
ImportPrototypeAfterImportedDefinition)
4267
4259
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, ClassTemplate, ,
4268
4260
ImportPrototypeAfterImportedDefinition)
@@ -4274,9 +4266,8 @@ ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, Function, ,
4274
4266
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, Class, , ImportPrototypes)
4275
4267
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, Variable, ,
4276
4268
ImportPrototypes)
4277
- // FIXME Enable this test, once we import function templates chains correctly.
4278
- ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, FunctionTemplate,
4279
- DISABLED_, ImportPrototypes)
4269
+ ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, FunctionTemplate, ,
4270
+ ImportPrototypes)
4280
4271
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, ClassTemplate, ,
4281
4272
ImportPrototypes)
4282
4273
// FIXME This does not pass, possible error with Spec import.
@@ -4289,9 +4280,8 @@ ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, Class, ,
4289
4280
ImportDefinitions)
4290
4281
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, Variable, ,
4291
4282
ImportDefinitions)
4292
- // FIXME Enable this test, once we import function templates chains correctly.
4293
- ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, FunctionTemplate,
4294
- DISABLED_, ImportDefinitions)
4283
+ ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, FunctionTemplate, ,
4284
+ ImportDefinitions)
4295
4285
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, ClassTemplate, ,
4296
4286
ImportDefinitions)
4297
4287
// FIXME This does not pass, possible error with Spec import.
@@ -4304,9 +4294,7 @@ ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, Class, ,
4304
4294
ImportDefinitionThenPrototype)
4305
4295
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, Variable, ,
4306
4296
ImportDefinitionThenPrototype)
4307
- // FIXME Enable this test, once we import function templates chains correctly.
4308
- ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, FunctionTemplate,
4309
- DISABLED_,
4297
+ ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, FunctionTemplate, ,
4310
4298
ImportDefinitionThenPrototype)
4311
4299
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, ClassTemplate, ,
4312
4300
ImportDefinitionThenPrototype)
@@ -4321,9 +4309,7 @@ ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, Class, ,
4321
4309
ImportPrototypeThenDefinition)
4322
4310
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, Variable, ,
4323
4311
ImportPrototypeThenDefinition)
4324
- // FIXME Enable this test, once we import function templates chains correctly.
4325
- ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, FunctionTemplate,
4326
- DISABLED_,
4312
+ ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, FunctionTemplate, ,
4327
4313
ImportPrototypeThenDefinition)
4328
4314
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, ClassTemplate, ,
4329
4315
ImportPrototypeThenDefinition)
@@ -4336,9 +4322,7 @@ ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, Function, ,
4336
4322
WholeRedeclChainIsImportedAtOnce)
4337
4323
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, Variable, ,
4338
4324
WholeRedeclChainIsImportedAtOnce)
4339
- // FIXME Enable this test, once we import function templates chains correctly.
4340
- ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, FunctionTemplate,
4341
- DISABLED_,
4325
+ ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, FunctionTemplate, ,
4342
4326
WholeRedeclChainIsImportedAtOnce)
4343
4327
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, FunctionTemplateSpec, ,
4344
4328
WholeRedeclChainIsImportedAtOnce)
@@ -4347,9 +4331,7 @@ ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, Function, ,
4347
4331
ImportPrototypeThenProtoAndDefinition)
4348
4332
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, Variable, ,
4349
4333
ImportPrototypeThenProtoAndDefinition)
4350
- // FIXME Enable this test, once we import function templates chains correctly.
4351
- ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, FunctionTemplate,
4352
- DISABLED_,
4334
+ ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, FunctionTemplate, ,
4353
4335
ImportPrototypeThenProtoAndDefinition)
4354
4336
// FIXME This does not pass, possible error with Spec import.
4355
4337
ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, FunctionTemplateSpec,
@@ -5442,9 +5424,7 @@ TEST_P(ImportFriendFunctionTemplates, LookupShouldFindPreviousFriend) {
5442
5424
FromTU, functionTemplateDecl (hasName (" foo" )));
5443
5425
auto *Imported = Import (FromFoo, Lang_CXX);
5444
5426
5445
- // FIXME Currently chains of FunctionTemplateDecls are not implemented.
5446
- // EXPECT_EQ(Imported->getPreviousDecl(), Friend);
5447
- EXPECT_EQ (Imported, Friend);
5427
+ EXPECT_EQ (Imported->getPreviousDecl (), Friend);
5448
5428
}
5449
5429
5450
5430
INSTANTIATE_TEST_CASE_P (ParameterizedTests, ASTImporterLookupTableTest,
0 commit comments