import_cpp.h 829 B

1234567891011121314151617181920212223
  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_CHECK_IMPORT_CPP_H_
  5. #define CARBON_TOOLCHAIN_CHECK_IMPORT_CPP_H_
  6. #include "llvm/ADT/StringRef.h"
  7. #include "toolchain/check/context.h"
  8. #include "toolchain/check/diagnostic_helpers.h"
  9. namespace Carbon::Check {
  10. // Generates a C++ header that includes the imported cpp files, parses it and
  11. // report errors and warnings.
  12. auto ImportCppFiles(
  13. Context& context, llvm::StringRef importing_file_path,
  14. llvm::ArrayRef<std::pair<llvm::StringRef, SemIRLoc>> imports,
  15. llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> fs) -> void;
  16. } // namespace Carbon::Check
  17. #endif // CARBON_TOOLCHAIN_CHECK_IMPORT_CPP_H_