reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/Support/VirtualFileSystem.h
  439   bool addFile(const Twine &Path, time_t ModificationTime,

References

lib/Support/VirtualFileSystem.cpp
  799   return addFile(P, ModificationTime,
tools/clang/lib/Basic/SourceManager.cpp
 2175   InMemoryFileSystem->addFile(
tools/clang/lib/Frontend/PrecompiledPreamble.cpp
   59   PCHFS->addFile(PCHFilename, 0, std::move(PCHBuffer));
tools/clang/lib/Tooling/Core/Replacement.cpp
  592   InMemoryFileSystem->addFile(
tools/clang/lib/Tooling/Tooling.cpp
  211   InMemoryFileSystem->addFile(FileName, 0,
  216     InMemoryFileSystem->addFile(
  458         InMemoryFileSystem->addFile(
  524             InMemoryFileSystem->addFile(
  637   InMemoryFileSystem->addFile(FileName, 0,
tools/clang/tools/extra/clang-tidy/ExpandModularHeadersPPCallbacks.cpp
   34     InMemoryFs.addFile(File->getName(), /*ModificationTime=*/0,
tools/clang/tools/extra/clangd/unittests/IndexActionTests.cpp
  101     InMemoryFileSystem->addFile(Path, 0,
tools/clang/tools/extra/clangd/unittests/SymbolCollectorTests.cpp
  276     InMemoryFileSystem->addFile(TestHeaderName, 0,
  278     InMemoryFileSystem->addFile(TestFileName, 0,
 1038   InMemoryFileSystem->addFile(IncFile, 0,
 1057   InMemoryFileSystem->addFile(IncFile, 0,
 1077   InMemoryFileSystem->addFile(IncFile, 0,
tools/clang/tools/extra/clangd/unittests/TestFS.cpp
   29     MemFS->addFile(
tools/clang/tools/extra/clangd/unittests/TweakTests.cpp
   62     MemFS->addFile(Path, 0, llvm::MemoryBuffer::getMemBuffer("", Path));
tools/clang/tools/extra/unittests/clang-include-fixer/IncludeFixerTest.cpp
   38   InMemoryFileSystem->addFile(FileName, 0,
   41   InMemoryFileSystem->addFile("foo.h", 0,
   43   InMemoryFileSystem->addFile("dir/bar.h", 0,
   45   InMemoryFileSystem->addFile("dir/otherdir/qux.h", 0,
   47   InMemoryFileSystem->addFile("header.h", 0,
tools/clang/tools/extra/unittests/clang-include-fixer/find-all-symbols/FindAllSymbolsTests.cpp
   89     InMemoryFileSystem->addFile(
   91     InMemoryFileSystem->addFile(InternalHeader, 0,
  103     InMemoryFileSystem->addFile(HeaderName, 0,
  117     InMemoryFileSystem->addFile(
  125     InMemoryFileSystem->addFile(FileName, 0,
tools/clang/tools/extra/unittests/clang-tidy/ClangTidyTest.h
  124   InMemoryFileSystem->addFile(Filename, 0,
  127     InMemoryFileSystem->addFile(
tools/clang/unittests/AST/ASTImporterFixtures.cpp
   32   MFS->addFile(FileName, 0, std::move(Buffer));
tools/clang/unittests/Driver/DistroTest.cpp
   29   UbuntuTrustyFileSystem.addFile("/etc/debian_version", 0,
   31   UbuntuTrustyFileSystem.addFile("/etc/lsb-release", 0,
   36   UbuntuTrustyFileSystem.addFile("/etc/os-release", 0,
   56   UbuntuYakketyFileSystem.addFile("/etc/debian_version", 0,
   58   UbuntuYakketyFileSystem.addFile("/etc/lsb-release", 0,
   63   UbuntuYakketyFileSystem.addFile("/etc/os-release", 0,
   88   Fedora25FileSystem.addFile("/etc/system-release-cpe", 0,
   91   Fedora25FileSystem.addFile("/etc/system-release", 0,
   93   Fedora25FileSystem.addFile("/etc/redhat-release", 0,
   95   Fedora25FileSystem.addFile("/etc/fedora-release", 0,
   97   Fedora25FileSystem.addFile("/etc/os-release", 0,
  121   CentOS7FileSystem.addFile("/etc/system-release-cpe", 0,
  124   CentOS7FileSystem.addFile("/etc/system-release", 0,
  126   CentOS7FileSystem.addFile("/etc/redhat-release", 0,
  128   CentOS7FileSystem.addFile("/etc/centos-release", 0,
  130   CentOS7FileSystem.addFile("/etc/centos-release-upstream", 0,
  132   CentOS7FileSystem.addFile("/etc/os-release", 0,
  160   OpenSUSELeap421FileSystem.addFile("/etc/SuSE-release", 0,
  165   OpenSUSELeap421FileSystem.addFile("/etc/os-release", 0,
  186   OpenSUSE132FileSystem.addFile("/etc/SuSE-release", 0,
  191   OpenSUSE132FileSystem.addFile("/etc/os-release", 0,
  212   SLES10FileSystem.addFile("/etc/SuSE-release", 0,
  216   SLES10FileSystem.addFile("/etc/lsb_release", 0,
  231   DebianJessieFileSystem.addFile("/etc/debian_version", 0,
  233   DebianJessieFileSystem.addFile("/etc/os-release", 0,
  252   DebianStretchSidFileSystem.addFile("/etc/debian_version", 0,
  254   DebianStretchSidFileSystem.addFile("/etc/os-release", 0,
  273   ExherboFileSystem.addFile("/etc/exherbo-release", 0, // (ASCII art)
  275   ExherboFileSystem.addFile("/etc/os-release", 0,
  295   ArchLinuxFileSystem.addFile("/etc/arch-release", 0, // (empty)
  297   ArchLinuxFileSystem.addFile("/etc/os-release", 0,
  317   GentooFileSystem.addFile(
  320   GentooFileSystem.addFile(
tools/clang/unittests/Driver/ToolChainTest.cpp
   59     InMemoryFileSystem->addFile(Path, 0,
   99     InMemoryFileSystem->addFile(Path, 0,
tools/clang/unittests/Format/FormatTest.cpp
14280       FS.addFile("/a/.clang-format", 0,
14283       FS.addFile("/a/test.cpp", 0, llvm::MemoryBuffer::getMemBuffer("int i;")));
14290       FS.addFile("/b/test.cpp", 0, llvm::MemoryBuffer::getMemBuffer("int i;")));
14302   ASSERT_TRUE(FS.addFile("/b/.clang-format", 0,
14315       FS.addFile("/c/.clang-format", 0,
14317   ASSERT_TRUE(FS.addFile("/c/sub/sub/sub/test.cpp", 0,
14340       FS.addFile("/d/.clang-format", 0,
14344       FS.addFile("/d/test.cpp", 0, llvm::MemoryBuffer::getMemBuffer("int i;")));
tools/clang/unittests/Frontend/PCHPreambleTest.cpp
   72     VFS->addFile(Filename, now, MemoryBuffer::getMemBufferCopy(Contents, Filename));
tools/clang/unittests/Lex/HeaderSearchTest.cpp
   40     VFS->addFile(Dir, 0, llvm::MemoryBuffer::getMemBuffer(""), /*User=*/None,
tools/clang/unittests/Lex/PPCallbacksTest.cpp
  143     InMemoryFileSystem->addFile(HeaderPath, 0,
tools/clang/unittests/Tooling/DependencyScannerTest.cpp
   90   VFS->addFile(HeaderPath, 0, llvm::MemoryBuffer::getMemBuffer("\n"));
   92   VFS->addFile(TestPath, 0,
  138   VFS->addFile(HeaderPath, 0,
  141   VFS->addFile(TestPath, 0,
  144   VFS->addFile(Test2Path, 0,
  176   VFS->addFile(HeaderPath, 0, llvm::MemoryBuffer::getMemBuffer("\n"));
  178   VFS->addFile(
tools/clang/unittests/Tooling/RefactoringTest.cpp
 1045   EXPECT_TRUE(VFS->addFile(Path1, 0, llvm::MemoryBuffer::getMemBuffer("")));
 1046   EXPECT_TRUE(VFS->addFile(Path2, 0, llvm::MemoryBuffer::getMemBuffer("")));
 1066   EXPECT_TRUE(VFS->addFile(Path1, 0, llvm::MemoryBuffer::getMemBuffer("")));
 1067   EXPECT_TRUE(VFS->addFile(Path2, 0, llvm::MemoryBuffer::getMemBuffer("")));
tools/clang/unittests/Tooling/RewriterTestContext.h
   57     InMemoryFileSystem->addFile(Name, 0, std::move(Source));
tools/clang/unittests/Tooling/Syntax/TokensTest.cpp
  118     FS->addFile(FileName, time_t(), llvm::MemoryBuffer::getMemBufferCopy(""));
  149     if (!FS->addFile(Path, time_t(),
tools/clang/unittests/Tooling/Syntax/TreeTest.cpp
   77     FS->addFile(FileName, time_t(), llvm::MemoryBuffer::getMemBufferCopy(""));
  105     if (!FS->addFile(Path, time_t(),
tools/clang/unittests/Tooling/ToolingTest.cpp
  165   InMemoryFileSystem->addFile(
  167   InMemoryFileSystem->addFile("def/abc", 0,
  191   InMemoryFileSystem->addFile(
  193   InMemoryFileSystem->addFile("def/abc", 0,
  197   InMemoryFileSystem->addFile("def/module.map", 0,
  440   InMemoryFileSystem->addFile(
unittests/Support/VirtualFileSystemTest.cpp
  904   Base->addFile("/a", 0, MemoryBuffer::getMemBuffer("test"));
  964   FS.addFile("c:/windows/system128/foo.cpp", 0, MemoryBuffer::getMemBuffer(""));
  971   FS.addFile("d:/windows/foo.cpp", 0, MemoryBuffer::getMemBuffer(""));
  977   FS.addFile("/a", 0, MemoryBuffer::getMemBuffer("a"));
  978   NormalizedFS.addFile("/a", 0, MemoryBuffer::getMemBuffer("a"));
  999   FS.addFile("/a", 0, MemoryBuffer::getMemBuffer("a"));
 1000   FS.addFile("././c", 0, MemoryBuffer::getMemBuffer("c"));
 1001   FS.addFile("./d/../d", 0, MemoryBuffer::getMemBuffer("d"));
 1002   NormalizedFS.addFile("/a", 0, MemoryBuffer::getMemBuffer("a"));
 1003   NormalizedFS.addFile("././c", 0, MemoryBuffer::getMemBuffer("c"));
 1004   NormalizedFS.addFile("./d/../d", 0, MemoryBuffer::getMemBuffer("d"));
 1026   ASSERT_TRUE(FS.addFile("/a", 0, MemoryBuffer::getMemBuffer("a")));
 1027   ASSERT_FALSE(FS.addFile("/a/b", 0, MemoryBuffer::getMemBuffer("a")));
 1028   ASSERT_TRUE(FS.addFile("/a", 0, MemoryBuffer::getMemBuffer("a")));
 1029   ASSERT_FALSE(FS.addFile("/a", 0, MemoryBuffer::getMemBuffer("b")));
 1033   FS.addFile("/a", 0, MemoryBuffer::getMemBuffer(""));
 1034   FS.addFile("/b/c", 0, MemoryBuffer::getMemBuffer(""));
 1059   FS.addFile("c", 0, MemoryBuffer::getMemBuffer(""));
 1080   FS.addFile("c", 0, MemoryBuffer::getMemBuffer(""));
 1114   FS.addFile("/a/b/c", 0, MemoryBuffer::getMemBuffer("abc"), 0xFEEDFACE);
 1131   FS.addFile("/a/b/c", 0, MemoryBuffer::getMemBuffer("abc"), None, 0xDABBAD00);
 1148   FS.addFile("/a/b/c", 0, MemoryBuffer::getMemBuffer("abc"), None, None,
 1163   FS.addFile("/a/b/c", 0, MemoryBuffer::getMemBuffer("abc"), None, None, None,
 1185   FS.addFile("/a", 0, MemoryBuffer::getMemBuffer(""), /*User=*/None,
 1187   FS.addFile("/a/b", 0, MemoryBuffer::getMemBuffer("abc"), /*User=*/None,
 1200   NormalizedFS.addFile("/a/b/c", 0, MemoryBuffer::getMemBuffer("abc"),
 1233   FS.addFile(Target, 0, MemoryBuffer::getMemBuffer("content of target"));
 1246   FS.addFile(Target, 0, MemoryBuffer::getMemBuffer("content of target file"));
 1262   FS.addFile(Target, 0, MemoryBuffer::getMemBuffer("content of target"));
 1263   FS.addFile(Link, 0, MemoryBuffer::getMemBuffer("content of link"));
 1270   FS.addFile(Target, 0, MemoryBuffer::getMemBuffer("content of target"));
 1279   EXPECT_TRUE(FS.addFile(Target, 0, MemoryBuffer::getMemBuffer(Content)));
 1281   EXPECT_TRUE(FS.addFile(Link, 0, MemoryBuffer::getMemBuffer(Content)));
 1289   EXPECT_TRUE(FS.addFile(Target, 0, MemoryBuffer::getMemBuffer(Content)));
 1291   EXPECT_FALSE(FS.addFile(Link, 0, MemoryBuffer::getMemBuffer(LinkContent)));
 1299   EXPECT_TRUE(FS.addFile(File, 0, MemoryBuffer::getMemBuffer(Content)));
 1307   EXPECT_TRUE(FS.addFile(Target, 0, MemoryBuffer::getMemBuffer(Content)));
 1313   FS.addFile("/a/b", 0, MemoryBuffer::getMemBuffer(CommonContent));
 1314   FS.addFile("/c/d", 0, MemoryBuffer::getMemBuffer(CommonContent));
 1320   FS.addFile("/a/b", 0, MemoryBuffer::getMemBuffer("content string"));