install_paths_test_helpers.h 729 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_TOOLCHAIN_INSTALL_INSTALL_PATHS_TEST_HELPERS_H_
  5. #define CARBON_TOOLCHAIN_INSTALL_INSTALL_PATHS_TEST_HELPERS_H_
  6. #include "llvm/Support/VirtualFileSystem.h"
  7. #include "toolchain/install/install_paths.h"
  8. namespace Carbon::Testing {
  9. // Prepares the VFS with prelude files from the real filesystem.
  10. auto AddPreludeFilesToVfs(InstallPaths install_paths,
  11. llvm::vfs::InMemoryFileSystem* vfs) -> void;
  12. } // namespace Carbon::Testing
  13. #endif // CARBON_TOOLCHAIN_INSTALL_INSTALL_PATHS_TEST_HELPERS_H_