Lines Matching refs:getPattern
24 BindableMatcher<Decl> getPattern() { in getPattern() function
33 BindableMatcher<Decl> getPattern() { in getPattern() function
42 BindableMatcher<Decl> getPattern() { in getPattern() function
51 BindableMatcher<Decl> getPattern() { return varDecl(hasName("X")); } in getPattern() function
63 BindableMatcher<Decl> getPattern() { in getPattern() function
72 BindableMatcher<Decl> getPattern() { in getPattern() function
85 BindableMatcher<Decl> getPattern() { in getPattern() function
111 BindableMatcher<Decl> getPattern() { in getPattern() function
128 BindableMatcher<Decl> getPattern() { in getPattern() function
150 BindableMatcher<Decl> getPattern() { in getPattern() function
161 BindableMatcher<Decl> getPattern() const { return TypeParam().getPattern(); } in getPattern() function
205 auto *FromD = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition()
211 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 1u); in TypedTest_PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition()
212 auto *ToD = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition()
222 auto *FromD = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_DefinitionShouldBeImportedAsADefinition()
228 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 1u); in TypedTest_DefinitionShouldBeImportedAsADefinition()
229 auto *ToD = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_DefinitionShouldBeImportedAsADefinition()
238 auto *From0 = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_ImportPrototypeAfterImportedPrototype()
239 auto *From1 = LastDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_ImportPrototypeAfterImportedPrototype()
247 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 2u); in TypedTest_ImportPrototypeAfterImportedPrototype()
248 auto *To0 = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportPrototypeAfterImportedPrototype()
249 auto *To1 = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportPrototypeAfterImportedPrototype()
260 auto *FromProto = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_ImportDefinitionAfterImportedPrototype()
261 auto *FromDef = LastDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_ImportDefinitionAfterImportedPrototype()
269 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 2u); in TypedTest_ImportDefinitionAfterImportedPrototype()
270 auto *ToProto = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportDefinitionAfterImportedPrototype()
271 auto *ToDef = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportDefinitionAfterImportedPrototype()
282 auto *FromDef = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_ImportPrototypeAfterImportedDefinition()
283 auto *FromProto = LastDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_ImportPrototypeAfterImportedDefinition()
291 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 2u); in TypedTest_ImportPrototypeAfterImportedDefinition()
292 auto *ToDef = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportPrototypeAfterImportedDefinition()
293 auto *ToProto = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportPrototypeAfterImportedDefinition()
305 auto *From0 = FirstDeclMatcher<DeclTy>().match(FromTU0, getPattern()); in TypedTest_ImportPrototypes()
306 auto *From1 = FirstDeclMatcher<DeclTy>().match(FromTU1, getPattern()); in TypedTest_ImportPrototypes()
314 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 2u); in TypedTest_ImportPrototypes()
315 auto *To0 = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportPrototypes()
316 auto *To1 = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportPrototypes()
328 auto *From0 = FirstDeclMatcher<DeclTy>().match(FromTU0, getPattern()); in TypedTest_ImportDefinitions()
329 auto *From1 = FirstDeclMatcher<DeclTy>().match(FromTU1, getPattern()); in TypedTest_ImportDefinitions()
338 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 1u); in TypedTest_ImportDefinitions()
339 auto *To0 = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportDefinitions()
350 auto *FromDef = FirstDeclMatcher<DeclTy>().match(FromTUDef, getPattern()); in TypedTest_ImportDefinitionThenPrototype()
352 FirstDeclMatcher<DeclTy>().match(FromTUProto, getPattern()); in TypedTest_ImportDefinitionThenPrototype()
361 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 2u); in TypedTest_ImportDefinitionThenPrototype()
362 auto *ToDef = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportDefinitionThenPrototype()
363 auto *ToProto = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportDefinitionThenPrototype()
376 FirstDeclMatcher<DeclTy>().match(FromTUProto, getPattern()); in TypedTest_ImportPrototypeThenDefinition()
377 auto *FromDef = FirstDeclMatcher<DeclTy>().match(FromTUDef, getPattern()); in TypedTest_ImportPrototypeThenDefinition()
386 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 2u); in TypedTest_ImportPrototypeThenDefinition()
387 auto *ToProto = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportPrototypeThenDefinition()
388 auto *ToDef = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportPrototypeThenDefinition()
400 LastDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_WholeRedeclChainIsImportedAtOnce()
407 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 2u); in TypedTest_WholeRedeclChainIsImportedAtOnce()
414 auto *FromD = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_ImportPrototypeThenProtoAndDefinition()
420 auto *FromD = FirstDeclMatcher<DeclTy>().match(FromTU, getPattern()); in TypedTest_ImportPrototypeThenProtoAndDefinition()
426 ASSERT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 3u); in TypedTest_ImportPrototypeThenProtoAndDefinition()
427 DeclTy *ProtoD = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportPrototypeThenProtoAndDefinition()
430 DeclTy *DefinitionD = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportPrototypeThenProtoAndDefinition()