export.h 804 B

12345678910111213141516171819202122
  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_CPP_EXPORT_H_
  5. #define CARBON_TOOLCHAIN_CHECK_CPP_EXPORT_H_
  6. #include "clang/AST/Decl.h"
  7. #include "toolchain/check/context.h"
  8. #include "toolchain/sem_ir/ids.h"
  9. namespace Carbon::Check {
  10. // Get a `clang::FunctionDecl` that can be used to call a Carbon function.
  11. auto GetReverseInteropFunctionDecl(Context& context, SemIR::LocId loc_id,
  12. clang::DeclContext& decl_context,
  13. SemIR::FunctionId function_id)
  14. -> clang::FunctionDecl*;
  15. } // namespace Carbon::Check
  16. #endif // CARBON_TOOLCHAIN_CHECK_CPP_EXPORT_H_