Lines Matching refs:ToTU

168         auto *ToTU = Prev->getTranslationUnitDecl();  in CheckPreviousDecl()  local
170 ToTU, functionTemplateDecl()); in CheckPreviousDecl()
188 Decl *ToTU = ImportedD->getTranslationUnitDecl(); in TypedTest_PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition() local
190 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 1u); in TypedTest_PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition()
191 auto *ToD = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition()
205 Decl *ToTU = ImportedD->getTranslationUnitDecl(); in TypedTest_DefinitionShouldBeImportedAsADefinition() local
207 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 1u); in TypedTest_DefinitionShouldBeImportedAsADefinition()
208 auto *ToD = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_DefinitionShouldBeImportedAsADefinition()
224 Decl *ToTU = Imported0->getTranslationUnitDecl(); in TypedTest_ImportPrototypeAfterImportedPrototype() local
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()
246 Decl *ToTU = ImportedProto->getTranslationUnitDecl(); in TypedTest_ImportDefinitionAfterImportedPrototype() local
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()
268 Decl *ToTU = ImportedDef->getTranslationUnitDecl(); in TypedTest_ImportPrototypeAfterImportedDefinition() local
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()
291 Decl *ToTU = Imported0->getTranslationUnitDecl(); in TypedTest_ImportPrototypes() local
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()
314 Decl *ToTU = Imported0->getTranslationUnitDecl(); in TypedTest_ImportDefinitions() local
317 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 1u); in TypedTest_ImportDefinitions()
318 auto *To0 = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportDefinitions()
337 Decl *ToTU = ImportedDef->getTranslationUnitDecl(); in TypedTest_ImportDefinitionThenPrototype() local
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()
362 Decl *ToTU = ImportedDef->getTranslationUnitDecl(); in TypedTest_ImportPrototypeThenDefinition() local
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()
383 Decl *ToTU = ImportedD->getTranslationUnitDecl(); in TypedTest_WholeRedeclChainIsImportedAtOnce() local
386 EXPECT_EQ(DeclCounter<DeclTy>().match(ToTU, getPattern()), 2u); in TypedTest_WholeRedeclChainIsImportedAtOnce()
403 Decl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TypedTest_ImportPrototypeThenProtoAndDefinition() local
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()