location.h 633 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_CHECK_CPP_LOCATION_H_
  5. #define CARBON_TOOLCHAIN_CHECK_CPP_LOCATION_H_
  6. #include "toolchain/check/context.h"
  7. #include "toolchain/sem_ir/ids.h"
  8. namespace Carbon::Check {
  9. // Maps a Carbon source location into an equivalent Clang source location.
  10. auto GetCppLocation(Context& context, SemIR::LocId loc_id)
  11. -> clang::SourceLocation;
  12. } // namespace Carbon::Check
  13. #endif // CARBON_TOOLCHAIN_CHECK_CPP_LOCATION_H_