file_system.h 596 B

12345678910111213141516171819
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #ifndef CARBON_TESTING_FILE_TEST_FILE_SYSTEM_H_
  5. #define CARBON_TESTING_FILE_TEST_FILE_SYSTEM_H_
  6. #include "common/error.h"
  7. #include "llvm/Support/VirtualFileSystem.h"
  8. namespace Carbon::Testing {
  9. // Adds a file to the fs.
  10. auto AddFile(llvm::vfs::InMemoryFileSystem& fs, llvm::StringRef path)
  11. -> ErrorOr<Success>;
  12. } // namespace Carbon::Testing
  13. #endif // CARBON_TESTING_FILE_TEST_FILE_SYSTEM_H_