install_paths_test_helpers.h 733 B

1234567891011121314151617181920
  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_BASE_INSTALL_PATHS_TEST_HELPERS_H_
  5. #define CARBON_TOOLCHAIN_BASE_INSTALL_PATHS_TEST_HELPERS_H_
  6. #include "llvm/Support/VirtualFileSystem.h"
  7. #include "toolchain/base/install_paths.h"
  8. namespace Carbon::Testing {
  9. // Prepares the VFS with prelude files from the real filesystem.
  10. auto AddPreludeFilesToVfs(
  11. const InstallPaths& install_paths,
  12. llvm::IntrusiveRefCntPtr<llvm::vfs::InMemoryFileSystem>& vfs) -> void;
  13. } // namespace Carbon::Testing
  14. #endif // CARBON_TOOLCHAIN_BASE_INSTALL_PATHS_TEST_HELPERS_H_