Lines Matching defs:FM

369   auto &FM = Processed.fileManager();
371 EXPECT_FALSE(PI.shouldKeep(*FM.getOptionalFileRef("normal.h")));
372 EXPECT_FALSE(PI.shouldKeep(*FM.getOptionalFileRef("std/vector")));
375 EXPECT_TRUE(PI.shouldKeep(*FM.getOptionalFileRef("keep1.h")));
376 EXPECT_TRUE(PI.shouldKeep(*FM.getOptionalFileRef("keep2.h")));
377 EXPECT_TRUE(PI.shouldKeep(*FM.getOptionalFileRef("keep3.h")));
378 EXPECT_TRUE(PI.shouldKeep(*FM.getOptionalFileRef("keep4.h")));
379 EXPECT_TRUE(PI.shouldKeep(*FM.getOptionalFileRef("keep5.h")));
380 EXPECT_TRUE(PI.shouldKeep(*FM.getOptionalFileRef("keep6.h")));
381 EXPECT_TRUE(PI.shouldKeep(*FM.getOptionalFileRef("std/map")));
384 EXPECT_TRUE(PI.shouldKeep(*FM.getOptionalFileRef("export1.h")));
385 EXPECT_TRUE(PI.shouldKeep(*FM.getOptionalFileRef("export2.h")));
386 EXPECT_TRUE(PI.shouldKeep(*FM.getOptionalFileRef("export3.h")));
387 EXPECT_TRUE(PI.shouldKeep(*FM.getOptionalFileRef("std/set")));
487 auto &FM = Processed.fileManager();
489 EXPECT_THAT(PI.getExporters(*FM.getOptionalFileRef("private.h"), FM),
493 EXPECT_TRUE(PI.getExporters(*FM.getOptionalFileRef("export1.h"), FM).empty());
494 EXPECT_TRUE(PI.getExporters(*FM.getOptionalFileRef("export2.h"), FM).empty());
495 EXPECT_TRUE(PI.getExporters(*FM.getOptionalFileRef("export3.h"), FM).empty());
497 PI.getExporters(SM.getFileEntryForID(SM.getMainFileID()), FM).empty());
510 auto &FM = Processed.fileManager();
511 EXPECT_THAT(PI.getExporters(*tooling::stdlib::Header::named("<string>"), FM),
513 EXPECT_THAT(PI.getExporters(llvm::cantFail(FM.getFileRef("string")), FM),
541 auto &FM = Processed.fileManager();
551 auto Exporters = PI.getExporters(*FM.getOptionalFileRef("private1.h"), FM);
556 Exporters = PI.getExporters(*FM.getOptionalFileRef("private2.h"), FM);
560 Exporters = PI.getExporters(*FM.getOptionalFileRef("private3.h"), FM);
564 Exporters = PI.getExporters(*FM.getOptionalFileRef("foo.h"), FM);
567 Exporters = PI.getExporters(*FM.getOptionalFileRef("bar.h"), FM);
582 auto &FM = Processed.fileManager();
583 EXPECT_TRUE(PI.isSelfContained(*FM.getOptionalFileRef("guarded.h")));
584 EXPECT_FALSE(PI.isSelfContained(*FM.getOptionalFileRef("unguarded.h")));
598 auto &FM = Processed.fileManager();
599 EXPECT_TRUE(PI.shouldKeep(*FM.getOptionalFileRef("always_keep.h")));
600 EXPECT_FALSE(PI.shouldKeep(*FM.getOptionalFileRef("usual.h")));
630 auto *FM = Clang->createFileManager(VFS);
633 PI.getExporters(llvm::cantFail(FM->getFileRef("foo.h")), *FM),
634 testing::ElementsAre(llvm::cantFail(FM->getFileRef("exporter.h"))));
656 auto &FM = Processed.fileManager();
657 auto PrivateFE = FM.getOptionalFileRef("private.h");
661 auto Private2FE = FM.getOptionalFileRef("private2.h");
663 EXPECT_THAT(PI.getExporters(*Private2FE, FM),
664 testing::ElementsAre(llvm::cantFail(FM.getFileRef("public.h"))));
679 auto &FM = Processed.fileManager();
680 auto PrivateFE = FM.getOptionalFileRef("private.h");