Lines Matching refs:DeclTy
21 using DeclTy = FunctionDecl; typedef
30 using DeclTy = CXXRecordDecl; typedef
39 using DeclTy = EnumDecl; typedef
48 using DeclTy = VarDecl; typedef
55 using DeclTy = FunctionTemplateDecl; typedef
69 using DeclTy = ClassTemplateDecl; typedef
78 using DeclTy = VarTemplateDecl; typedef
93 using DeclTy = FunctionDecl; typedef
118 using DeclTy = ClassTemplateSpecializationDecl; typedef
137 using DeclTy = typename TypeParam::DeclTy; typedef
184 auto *FromD = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition()
190 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 1u); in TypedTest_PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition()
191 auto *ToD = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition()
201 auto *FromD = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_DefinitionShouldBeImportedAsADefinition()
207 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 1u); in TypedTest_DefinitionShouldBeImportedAsADefinition()
208 auto *ToD = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_DefinitionShouldBeImportedAsADefinition()
217 auto *From0 = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_ImportPrototypeAfterImportedPrototype()
218 auto *From1 = LastDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_ImportPrototypeAfterImportedPrototype()
226 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 2u); in TypedTest_ImportPrototypeAfterImportedPrototype()
227 auto *To0 = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportPrototypeAfterImportedPrototype()
228 auto *To1 = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportPrototypeAfterImportedPrototype()
239 auto *FromProto = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_ImportDefinitionAfterImportedPrototype()
240 auto *FromDef = LastDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_ImportDefinitionAfterImportedPrototype()
248 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 2u); in TypedTest_ImportDefinitionAfterImportedPrototype()
249 auto *ToProto = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportDefinitionAfterImportedPrototype()
250 auto *ToDef = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportDefinitionAfterImportedPrototype()
261 auto *FromDef = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_ImportPrototypeAfterImportedDefinition()
262 auto *FromProto = LastDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_ImportPrototypeAfterImportedDefinition()
270 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 2u); in TypedTest_ImportPrototypeAfterImportedDefinition()
271 auto *ToDef = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportPrototypeAfterImportedDefinition()
272 auto *ToProto = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportPrototypeAfterImportedDefinition()
284 auto *From0 = FirstDeclMatcher<DeclTy>().match(FromTU0, getPattern()); in TypedTest_ImportPrototypes()
285 auto *From1 = FirstDeclMatcher<DeclTy>().match(FromTU1, getPattern()); in TypedTest_ImportPrototypes()
293 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 2u); in TypedTest_ImportPrototypes()
294 auto *To0 = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportPrototypes()
295 auto *To1 = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportPrototypes()
307 auto *From0 = FirstDeclMatcher<DeclTy>().match(FromTU0, getPattern()); in TypedTest_ImportDefinitions()
308 auto *From1 = FirstDeclMatcher<DeclTy>().match(FromTU1, getPattern()); in TypedTest_ImportDefinitions()
317 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 1u); in TypedTest_ImportDefinitions()
318 auto *To0 = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportDefinitions()
329 auto *FromDef = FirstDeclMatcher<DeclTy>().match(FromTUDef, getPattern()); in TypedTest_ImportDefinitionThenPrototype()
331 FirstDeclMatcher<DeclTy>().match(FromTUProto, getPattern()); in TypedTest_ImportDefinitionThenPrototype()
340 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 2u); in TypedTest_ImportDefinitionThenPrototype()
341 auto *ToDef = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportDefinitionThenPrototype()
342 auto *ToProto = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportDefinitionThenPrototype()
355 FirstDeclMatcher<DeclTy>().match(FromTUProto, getPattern()); in TypedTest_ImportPrototypeThenDefinition()
356 auto *FromDef = FirstDeclMatcher<DeclTy>().match(FromTUDef, getPattern()); in TypedTest_ImportPrototypeThenDefinition()
365 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 2u); in TypedTest_ImportPrototypeThenDefinition()
366 auto *ToProto = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportPrototypeThenDefinition()
367 auto *ToDef = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportPrototypeThenDefinition()
379 LastDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_WholeRedeclChainIsImportedAtOnce()
386 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 2u); in TypedTest_WholeRedeclChainIsImportedAtOnce()
387 EXPECT_TRUE(cast<DeclTy>(ImportedD)->isThisDeclarationADefinition()); in TypedTest_WholeRedeclChainIsImportedAtOnce()
393 auto *FromD = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_ImportPrototypeThenProtoAndDefinition()
399 auto *FromD = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_ImportPrototypeThenProtoAndDefinition()
405 ASSERT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 3u); in TypedTest_ImportPrototypeThenProtoAndDefinition()
406 DeclTy *ProtoD = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportPrototypeThenProtoAndDefinition()
409 DeclTy *DefinitionD = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportPrototypeThenProtoAndDefinition()