import_cpp.h 763 B

123456789101112131415161718192021
  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. // Parses the C++ code and report errors and warnings.
  11. auto ImportCppFile(Context& context, SemIRLoc loc,
  12. llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> fs,
  13. llvm::StringRef file_path, llvm::StringRef code) -> void;
  14. } // namespace Carbon::Check
  15. #endif // CARBON_TOOLCHAIN_CHECK_IMPORT_CPP_H_