mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 10:54:49 +01:00
SemIR::Namespace->clang::NamespaceDecl interop (#6935)
Rough-in with TODO for caching and scoping/nesting, this only handles top level namespaces and doesn't nest them appropriately.
This commit is contained in:
@@ -87,6 +87,8 @@ auto GetClangIdentifierInfo(Context& context, SemIR::NameId name_id)
|
||||
auto GetAsClangVarDecl(Context& context, SemIR::InstId inst_id)
|
||||
-> clang::VarDecl*;
|
||||
|
||||
// Maps a Clang name to a Carbon `NameId`.
|
||||
auto AddIdentifierName(Context& context, llvm::StringRef name) -> SemIR::NameId;
|
||||
} // namespace Carbon::Check
|
||||
|
||||
#endif // CARBON_TOOLCHAIN_CHECK_CPP_IMPORT_H_
|
||||
|
||||
Reference in New Issue
Block a user