Lines Matching defs:Search
36 Search(std::make_shared<HeaderSearchOptions>(), SourceMgr, Diags,
49 Search.AddSearchPath(DL, /*isAngled=*/false);
61 Search.AddSystemSearchPath(DL);
63 Search.AddSearchPath(DL, /*isAngled=*/true);
79 Search.AddSearchPath(DL, isAngled);
91 HeaderSearch Search;
96 EXPECT_EQ(Search.search_dir_size(), 0u);
97 EXPECT_EQ(Search.suggestPathToFileForDiagnostics("/x/y/z", /*WorkingDir=*/"",
105 EXPECT_EQ(Search.suggestPathToFileForDiagnostics("/x/y/z", /*WorkingDir=*/"",
109 EXPECT_EQ(Search.suggestPathToFileForDiagnostics("/a/b/c", /*WorkingDir=*/"",
116 EXPECT_EQ(Search.suggestPathToFileForDiagnostics("/a/b/c/x/y/z",
124 EXPECT_EQ(Search.suggestPathToFileForDiagnostics("/x/y/./z",
129 EXPECT_EQ(Search.suggestPathToFileForDiagnostics("/m/n/./c/z",
139 Search.suggestPathToFileForDiagnostics("/root/some/foo.h",
144 Search.suggestPathToFileForDiagnostics("../foo.h",
153 EXPECT_EQ(Search.suggestPathToFileForDiagnostics("C:\\x\\y\\z\\t",
161 EXPECT_EQ(Search.suggestPathToFileForDiagnostics("C:\\x\\y\\z\\t",
170 EXPECT_EQ(Search.suggestPathToFileForDiagnostics("/y/z",
178 EXPECT_EQ(Search.suggestPathToFileForDiagnostics("/x/../y/z",
185 EXPECT_EQ(Search.suggestPathToFileForDiagnostics("/y/z/t.h",
191 EXPECT_EQ(Search.suggestPathToFileForDiagnostics("/y/z/t.h",
201 EXPECT_EQ(Search.suggestPathToFileForDiagnostics(
211 EXPECT_EQ(Search.suggestPathToFileForDiagnostics(
224 EXPECT_EQ(Search.suggestPathToFileForDiagnostics(
241 auto FoundFile = Search.LookupFile(
250 auto FI = Search.getExistingFileInfo(FE);
253 EXPECT_EQ(Search.getIncludeNameForHeader(FE), "Foo/Foo.h");
276 EXPECT_EQ(Search.suggestPathToFileForDiagnostics("/a/b/c.h",
309 auto FoundFile = Search.LookupFile(
319 auto FI = Search.getExistingFileInfo(FE);
322 EXPECT_EQ(Search.getIncludeNameForHeader(FE), "Foo/Foo.h");
353 Search.SetExternalSource(ExternalSource.get());
358 EXPECT_TRUE(Search.getExistingFileInfo(ModularFE)->External);
359 EXPECT_TRUE(Search.getExistingFileInfo(TextualFE)->External);
362 Search.MarkFileModuleHeader(ModularFE, ModuleMap::NormalHeader,
364 Search.MarkFileModuleHeader(TextualFE, ModuleMap::TextualHeader,
366 EXPECT_TRUE(Search.getExistingFileInfo(ModularFE)->External);
367 EXPECT_TRUE(Search.getExistingFileInfo(TextualFE)->External);
371 Search.MarkFileModuleHeader(ModularFE, ModuleMap::TextualHeader,
373 Search.MarkFileModuleHeader(TextualFE, ModuleMap::NormalHeader,
375 auto ModularFI = Search.getExistingFileInfo(ModularFE);
376 auto TextualFI = Search.getExistingFileInfo(TextualFE);
385 Search.MarkFileModuleHeader(ModularFE, ModuleMap::NormalHeader,
387 Search.MarkFileModuleHeader(TextualFE, ModuleMap::NormalHeader,
389 EXPECT_FALSE(Search.getExistingFileInfo(ModularFE)->External);
390 EXPECT_FALSE(Search.getExistingFileInfo(TextualFE)->External);