mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 06:28:31 +00: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:
1 parent
7b3f120f97
commit
14b72f16da
4 files changed
+103
-20
No files matched your search
@@ -80,7 +80,7 @@ static auto AddNameToScope(Context& context, SemIR::NameScopeId scope_id,
|
||||
}
|
||||
|
||||
// Maps a Clang name to a Carbon `NameId`.
|
||||
static auto AddIdentifierName(Context& context, llvm::StringRef name)
|
||||
auto AddIdentifierName(Context& context, llvm::StringRef name)
|
||||
-> SemIR::NameId {
|
||||
return SemIR::NameId::ForIdentifier(context.identifiers().Add(name));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user