mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
See discussion: https://discord.com/channels/655572317891461132/655578254970716160/1432518191350808659 Part of #5245.
26 lines
748 B
C++
26 lines
748 B
C++
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
// Exceptions. See /LICENSE for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
#ifndef CARBON_TOOLCHAIN_SEM_IR_IMPORT_CPP_H_
|
|
#define CARBON_TOOLCHAIN_SEM_IR_IMPORT_CPP_H_
|
|
|
|
#include "common/raw_string_ostream.h"
|
|
#include "toolchain/sem_ir/typed_insts.h"
|
|
|
|
namespace Carbon::SemIR {
|
|
|
|
// Per `import Cpp` data.
|
|
struct ImportCpp : Printable<ImportCpp> {
|
|
auto Print(llvm::raw_ostream& out) const -> void {
|
|
out << "{node_id: " << node_id << ", library_id: " << library_id << "}";
|
|
}
|
|
|
|
Parse::ImportDeclId node_id;
|
|
StringLiteralValueId library_id;
|
|
};
|
|
|
|
} // namespace Carbon::SemIR
|
|
|
|
#endif // CARBON_TOOLCHAIN_SEM_IR_IMPORT_CPP_H_
|